Customizing Resource Panels at the External Origin

The resource panels are pop-up windows that display resource links. You can customize the resource panels by editing their files.

To customize the resource panel that displays in response to a request from an external origin, edit the resserv_panel.html file. This form is customized in the same way as a WebPAC customizable form. For more information about customizing forms, see Customizable WebPAC Forms.

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

NOTE

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

resserv_panel_panel_WEST.html
resserv_panel_panel_EAST.html

The resserv_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}--> If the OpenURL does not contain an affiliation label in the &req_dat=<affiliation> element, the system can offer a list of affiliations. The user can choose an affiliation and resubmit the OpenURL. For use by consortia.
<!--{resubmitopenurl}--> If the OpenURL does not contain an affiliation label in the &req_dat=<affiliation> element, offers the user a list of affiliations. For use by consortia.
<!--{submit: [text with HTML markup
or image location with IMG SRC tag]
}-->
Resubmits the OpenURL with the user-selected affiliation label appended. For use by consortia.
<!--{xif}--> Closes the <!--{ifnoaffiliation}--> block. For use by consortia.
<!--{ifopenurl:<X>}--> The system performs this block of commands if the OpenURL contains the element specified by <X>. You can follow this with a statement that formats and identifies the OpenURL element (see example).
<!--{openurl:<X>}--> The system replaces the token with an OpenURL element <X>.
<!--{xif}--> Closes the <!--{ifopenurl}--> block.
<!--{resourcelist}--> The system replaces the <!--{resourcelist}--> token with a list of target resources.
<!--{xif}--> Closes the <!--{ifnoresources}--> block.

An example of a customized resserv_panel.html form is:

	  
<HTML>
  <HEAD>
  <TITLE>Resolution Server</TITLE>
    <LINK REL="stylesheet" TYPE="text/css" HREF="/stylesheet.css">

  </HEAD>

  <BODY>
      <img src="Resources/Images//map.gif" BORDER="0">
<!--{ifnoresources}-->
      <P>
      <SPAN STYLE="color: red">No resources available</SPAN>

      </P>

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

<!--{ifopenurl:title}-->
<b>Title:</b>
<!--{openurl:title}-->
<!--{xif}-->

<!--{resourcelist}-->
<!--{xif}-->
  </BODY>

</HTML>

An example of a customized resserv_panel_<affiliation>.html form is:

<HTML>

  <HEAD>
  <TITLE>Resolution Server</TITLE>
    <LINK REL="stylesheet" TYPE="text/css" HREF="/stylesheet.css">
  </HEAD>

  <BODY>

      <img src="Resources/Images//map.gif" BORDER="0">
<!--{ifnoresources}-->
      <P>
      <SPAN STYLE="color: red">No resources available</SPAN>
      </P>


<!--{else}-->

<!--{ifnoaffiliation}-->
      <DIV>
      More resources might be available through your institution. 
      Select a member library and choose "Submit.":
      </DIV>
<!--{resubmitopenurl}-->
<!--{submit: <img src="Resources/Images/submit.gif">}-->

<!--{xif}-->

      <P>
      <STRONG>The following resources may provide additional information:</STRONG>
      </P>

<!--{ifopenurl:title}-->

<b>Title:</b>
<!--{openurl:title}-->
<!--{xif}-->

<!--{resourcelist}-->
<!--{xif}-->
  </BODY>
</HTML>

Customizing the List of Links

Resource panel files contain <!--{resourcelist}--> tokens. The system replaces the <!--{resourcelist}--> token with the applicable categories and resource links.

An example of a category inserted by the <!--{resourcelist}--> token is:

Category inserted by the <!--{resourcelist}--> token

The content of categories are drawn from the Name text box in the category definitions.

The format of categories is controlled by style sheet classes. The classes used are:

Style sheet class Tag type Applies to:
wbresourcelist div all category and resource links
wbcategory span each category

An example of a resource link inserted by the <!--{resourcelist}--> token is:

Resource links

The content of resource links is drawn from the Link text text box in the Link Resolver menu of the resource definition and from the coverage database (holdings).

The format of resource links is controlled by style sheet classes. The classes used are:

Style sheet class Tag type Applies to:
wbresourcelist div all category and resource links
wblinkdisplay div each resource link
wblinkfield span each field selector in a Link text text box in the Link Resolver menu of the resource definition, with the exception of #LinkText#
wblinktext span each #LinkText# in the a Link text text box in the Link Resolver menu of the resource definition
NOTE

The Link text text box in the Link Resolver menu of the resource definition accepts HTML code. If you enter HTML code in the Link Display text box and define a wblinkdisplay style, the conflict is resolved by the browser. Although there is a standard for resolving conflicts, browsers differ in their implementation of the standard. Results of the conflict, therefore, differ by browser.

Innovative recommends that you define styles in the style sheet whenever possible.