Documentation Center

Defining a new search screen

Custom search screens can be defined such as, a specific search for graphics.

Adding search screens

All search screens are configured in the configuration file named SearchMenubar.xml located in the ASP/XSL folder of the web server. Each <menuitem> element defines one distinct search screen. In the example below, two search screens are defined: a generic and a graphic specific search screen.

What the search screen looks like is specified inside another configuration file. However, you have to provide the name of this configuration file here. In the example below, the SearchXml parameter specifies that configuration file (for example, SearchNewGeneral.xml).

Restrict accessibility based on user role

Access to the defined search screens can be restricted on user role. Users only have access to the search screen when they have at least one of these user roles. When no <userrole> elements are defined, the search screens will be available for all users. You can find all defined user roles in the Capabilities LOV (Settings > List of values).

Example


<searchmenubar>
  <menuitem label="Search" 
               action="SearchNew.asp?SearchXml=SearchNewGeneral&Title=Search">
    <userrole>Administrator</userrole>
    <userrole>Author</userrole>
    <userrole>Reviewer</userrole>
    <userrole>Translator</userrole>
  </menuitem>
  <menuitem label="Graphics" 
               action="SearchNew.asp?SearchXml=SearchIllustrations&Title=Graphics">
    <userrole>graphic designer</userrole>
    <userrole>administrator</userrole>
  </menuitem>
</searchmenubar>