Wednesday, June 11, 2008

Genie: Advanced vs. Simple search screens in OPAC

Another example of using the Heading= option:

Some sites would prefer not to have a drop-down list of search screens on their OPAC search screen. Instead they want a link to their advanced search screen.

To do this, modify MyQueries.config as follows:

  1. To remove the drop-down list showing the search screens, edit the following section to comment out the opac_search screen, as shown below

    <!-- ** Note: Use special TextbaseName="Opac" to specify the screens listed in the opac.aspx -->
    <inmg:QueryScreens TextbaseName="Opac">
    <inmg:QueryScreen Name="simple_opac_search"></inmg:QueryScreen>
    <!-- <inmg:QueryScreen Name="opac_search"></inmg:QueryScreen> -->
    </inmg:QueryScreens>

  2. To add the link to the advanced search screen, add the Heading= parameter to the first line of the simple_opac_search screen as follows.

    <inmg:QueryScreen Name="simple_opac_search" Title="Simple Catalog Search" BrowseButtonText=" Browse " BooleanAnd="AND" BooleanOr="OR" BooleanNot="NOT" Heading="Catalog&lt;p&gt;&lt;a href=&quot;/InmagicGenie/opac.aspx?QueryScreen=opac_search&quot;&gt;Advanced Search&lt;/a&gt;">

  3. Make the corresponding change to the opac_search screen to add a link back to the simple search screen.

No comments: