Customizing Resource Panels at the WebPAC Origin

Make the resource links in the panel accessible by setting the RESLINK Web option to display the WebPAC resource panel.

NOTE

WebPAC resource panels do not appear unless this option is defined.

An example of a RESLINK setting is:

RESLINK=bibresourcetop|posttopbrowsemenu||

Customize the WebPAC resource panel by editing the wp_panel.html form.

To customize resource links within the resource panel, edit the wp_resource.html form.

NOTE

The wp_panel.html file and associated graphics cannot be staged. This file and all associated graphics must reside in your live/screens directory to display correctly.

The wp_panel.html File Format

The wp_panel.html form is not a full HTML file. The system generates a full HTML file on-the-fly when resources are requested. Opening and closing tags for HTML, TITLE, HEAD, and BODY elements of the full HTML file are automatically created. The contents you enter in the wp_panel.html file are inserted in the BODY element of the automatically-generated full HTML file.

The system inserts in the HEAD element of the automatically-generated full HTML file a link to the style sheet that you define in the STYLESHEET Web option. Use the wbbody class in the style sheet to format the BODY of wp_panel.html.

The wp_panel.html File for Consortia

If you use the version of WebBridge intended for consortia, you can have wp_panel.html files for each member library. Each file can be customized separately. The file name convention is wp_panel_<affiliation>.html. For example:

wp_panel_WEST.html
wp_panel_EAST.html

The wp_panel.html form uses the following tokens:

Token Description
<!--{ifnoresources}--> If the list of relevant resources is empty, the system can display a message.
<!--{else}--> If there is a list of relevant resources, use the following tokens.
<!--{ifnoaffiliation}--> For use by consortia. If scopes are not used or the patron unscoped the search, the system can offer a list of affiliations. The user can choose an affiliation and resubmit the search.
<!--{resubmitopenurl}--> For use by consortia. If scopes are not used or the patron unscoped the search, offers the user a list of affiliations.
<!--{submit:[text with HTML markup or image location with IMG SRC tag]}--> For use by consortia. Resubmits the search with the user-selected affiliation label.
<!--{xif}--> For use by consortia. Closes the <!--{ifnoaffiliation}--> block.
<!--{header}--> The system replaces the <!--{header}--> token with the setting for the WBHEADERTEXT Web option, if defined.
<!--{resourcelist}--> The system replaces the <!--{resourcelist}--> token with a list of relevant resources.
<!--{xif}--> Closes the <!--{ifnoresources}--> block.
<!--{ret2cat}--> The system replaces the <!--{ret2cat}--> token with the setting for the BUT_RET2CAT Web option, if defined.
<!--{closewindow}--> The system replaces the <!--{closewindow}--> token with the setting for the BUT_CLOSEWINDOW Web option, if defined.

Customize the panel as follows:

  1. Insert the <!--{resourcelist}--> token.
  2. If your library uses the version of WebBridge intended for consortia:
    1. Set the WBCONSORT and ICON_WBCONSORT_SUBMIT Web options.
    2. Insert the <!--{ifnoaffiliation}--> token so that a message displays if the search is unscoped.

      For example:
      <!--{ifnoaffiliation}-->Begin "ifnoaffiliation" block.
      <DIV>More resources might be available.
      Select a member library and choose "Submit.":</DIV>
      Message.
      <!--{resubmitopenurl}-->Display drop-down list of affiliations.
      <!--{submit: <img src="Resources/Images/submit.gif">}-->Resubmit the search with the user-selected affiliation.
      <!--{xif}-->End "ifnoresources" block.
  3. To display a message if there are no resources, wrap the <!--{resourcelist}--> token in a <!--{ifnoresources}--> block.

    For example:
    <!--{ifnoresources}-->Begin "ifnoresources" block.
    <P>No resources available</P>Message.
    <!--{else}-->Else statement of "ifnoresources" block.
    <!--{resourcelist}-->Insert resource links.
    <!--{xif}-->End "ifnoresources" block.
  4. To display a header in the resource panel:
    1. Set the WBHEADERTEXT Web option.
    2. Add the <!--{header}--> token to the WebPAC resource panel.
    3. Add the wbheading class to the style sheet.
  5. To display a subheading in the resource panel:
    1. Insert #HEADER# in the WBHEADERTEXT Web option.

      The system substitutes the title from the bibliographic record for the #HEADER# token.
      NOTE

      The wp_panel.html file is used to display resource links in response to requests from resources from browse and full record displays. However, the system does not display subheadings in browse displays.

      If your library offers resources from both browse and full record displays, make heading and subheading text independent.

    2. Add the wbsubheading class to the style sheet.
  6. To display a "Return to Catalog" button in the resource panel:
    1. Set the BUT_RET2CAT Web option.
    2. Add the <!--{ret2cat}--> token to the WebPAC resource panel.
  7. To display a "Close Window" button in the resource panel:
    1. Set the BUT_CLOSEWINDOW Web option.
    2. Add the <!--{closewindow}--> token to the WebPAC resource panel.

An example of a customized wp_panel.html form is:

<HTML>

<HEAD>
    <TITLE>WebBridge Resolution Server</TITLE>
    <link rel="stylesheet" type="text/css" href="styles.css">
</HEAD>

<BODY>
  <!--{ifnoresources}-->
    <P>
      <SPAN STYLE="color: red">No resources available</SPAN>
    </P>

  <!--{else}-->

  <!--{header}-->
    <P>
      <STRONG>The following resources may provide additional information:</STRONG>
    </P>

  <!--{resourcelist}-->

  <!--{xif}-->

  <!--{ret2cat}-->
  <!--{closewindow}-->
</BODY>

</HTML>
See also:
Customizable Web Forms
Maintaining WebPAC