Disable the Edit XML Source view

As an Inspire administrator, you can set permissions to grant or deny users and roles access to a specific module. By default, when a user opens a component in the Oxygen editor, they see content in a graphic user interface with a rich set of toolbars, side panels, and a breadcrumb to manage the document's structure. The user can also switch to a view where they can simply edit the XML code. If you want to configure Oxygen behavior for a user or role so that the graphic user interface is the only one that can be used, you can add them to the Content Browser module's disable_xml_view property in Module Access Management.

The disable_xml_view property hides the option in the Oxygen editor to Edit XML Source.

  • By default, this option is available to all users when working in the Oxygen editor.
  • The user can select the More... menu, and then Edit XML Source.
  • If you add a non-administrator user or role to this property, then the user or role cannot select this option, and cannot see or work in the XML Source view.

    Disabling this option does not prevent a user from exporting the component, editing the XML source in another application, and the importing it back into Inspire.

The settings for these properties do not apply when editing a component in a review.

To disable the Edit XML Source view for a specific user or role:

  1. From the Security menu, select Module access management.
  2. On the Module access management tab, select Content Browser, and then at the end of that row click Update pencil_icon.
  3. On the Update Module Access Permissions screen, select the Properties tab.
  4. In Module Properties, select disable_xml_view.
  5. In Users/Roles, click Add.
    On the Select Users screen, if the list is large or you only want to see a certain type of user, you can narrow the list in the following ways:

    • To see only names that contain a word or specific letters, in Filter, enter text. For example you can find names that contain "admin", or "review". You can't search for text in any other column except Name.
    • To see all users sorted by Name, Security Type, or User Type, click the column heading and then click the grey arrow. To sort by Name or User Type you can also use the Sort By drop-down box.
    • By default, names with a User Type of Support are not included in the list. To see these users, select the Include support users option.
  6. After you finish selecting users or roles, click Select.
    Results:
    • You see your selection(s) added to the Users/Roles list.
    • You return to the Permissions tab of the Update Module Access Permissions screen.
  7. On the Update Module Access Permissions screen, click Save.
    Results:
    • You are returned to Module Access Management screen.
    • Any users whose access you changed must log out and back in to see the changes.