Hyperlinks with Dynamic Content from Records
To use dynamic content from a record in a hyperlink, you must:
- Determine the dynamic content to include in the hyperlink.
- Construct the hyperlink with field selectors representing the dynamic content.
Open and close field selectors in hyperlinks by using # (pound). Precede the name of the field selector with @. Separate multiple field selectors with semicolons. For example:
#@SUBJECT-SHORT;AUTHOR#NOTE
In addition to the field selectors representing record fields, hyperlinks that display in the Encore/WebPAC accept a system-generated field selector USERSEARCH, which represents the user's most recently-used search terms.
- Enter the hyperlink in the Link text text box of the resource definition.
NOTE
Hyperlinks appearing in the Encore/WebPAC browse screen (i.e., those entered in the Browse Linking section of the resource definition) accept only the USERSEARCH field selector.
Bibliographic Record Linking Example
For example, to create a hyperlink that takes the SUBJECT-SHORT and AUTHOR fields from the record displayed in the Encore/WebPAC and incorporates them into a hyperlink, enter:
Search #@SUBJECT-SHORT;AUTHOR# at #LinkText#
In this example, if a user in the Encore/WebPAC full record display requests resources, and Google is an unsuppressed resource, the system:
- replaces #@SUBJECT-SHORT;AUTHOR# with the content of the record fields SUBJECT-SHORT and AUTHOR
- replaces #LinkText# with "Google"
- displays the hyperlink to the user in the Encore/WebPAC full record display
The hyperlink displayed to the user might read, for example:
Browse Linking Example
As another example, to create a hyperlink for resources requested from the Encore/WebPAC browse screen, enter:
Search "#@USERSEARCH#" at #LinkText#
In this example, if a user in the Encore/WebPAC browse screen requests resources after searching the Encore/WebPAC using the search term "dogs", and Google is an unsuppressed resource, the system:
- replaces #@USERSEARCH# with the search terms used in the user's last Encore/WebPAC search ("dogs," in this case)
- replaces #LinkText# with "Google"
- displays the hyperlink to the user in the Encore/WebPAC browse screen
The hyperlink displayed to the user might read, for example:
Search "dogs" at Google