Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Configuring Dynamic URLs for Electronic Collections and Portfolios

    Translatable
    To work with electronic resources, you must have the following roles:
    • Electronic Inventory Operator
    • Electronic Inventory Operator Extended (required for delete operations)
    • Repository Manager
    Instead of managing static links for local electronic collections and portfolios, you can create sophisticated dynamic URLs for local electronic collections and portfolios and embed OpenURL metadata information dynamically. In addition, you can use dynamic URLs to override linking provided by the community knowledge base.
    The Electronic Service Editor and Electronic Portfolio Editor pages enable you to define a list of conditions that are used to select a linking URL for the service or portfolio, respectively.
    Dynamic_URL_Linking_Information_Conditions_Example_NewUI_06_TC.png
    Dynamic URL Linking Information Conditions Example
    When using dynamic URLs, each condition must start with an IF statement that checks for the existence of ContextObject and OpenURL parameters. If all parameters exist for a condition starting at the top of the list, the specified URL for that condition is used for linking. Otherwise, the next condition will be checked, and so forth. To catch any case (use this to match if all other checks fail), use IF () <url>.
    For example:
    IF (rft.issn, rft.year, rft.volume)
    http://www.publisher.com/{rft.issn}/{rft.year}/{rft.volume}
    IF (rft.issn, rft.year)
    http://www.publisher.com/{rft.issn}/{rft.year}
    IF (rft.issn) http://www.publisher.com/{rft.issn}
    IF ()
    http://www.publisher.com
    If the first condition is met in the above example, the resulting dynamic URL may look something like the following:
    http://www.publisher.com/1364-0321/2010/2
    In addition to rft.year, you can also use rft.month, rft.day, and rft.date attributes.
    Test dynamic URL syntax enables you to verify the syntax of your conditions.
    For more information about configuring dynamic URLs for electronic collections, see the Dynamic URLs For Electronic Collections video (2:33 mins).

    See Commonly Used OpenURL Attributes for the URL Template for more information.

    URL Functions

    In addition, the dynamic URL may include any of the following functions to manipulate the values returned in the specified parameters:
    • SUBSTR (string, from, length) - Return a substring of the specified string, based on the starting position and length of the string. If {rft.date} contains 2010-08-01, and the first four characters from the beginning of the string are specified, as follows:
      http://www.publisher.com/{rft.issn}/SUBSTR({rft.date},0,4)
      Alma uses the following URL:
      http://www.publisher.com/1824-6321/2010
    • REPLACE (string, search, replace) - Replace text in the specified string, based on search and replacement text. If {rft.isbn} contains dashes (for example, 978-1-285-13563-2) and no replacement text is specified, as follows:
      http://www.publisher.com/REPLACE({rft.isbn},-)
      Alma uses the following URL:
      http://www.publisher.com/9781285135632
    • URLENCODE (string) - Encode special characters in the specified string. If {rft.atitle} contains the title The Grapes of Wrath, and encoding is requested, as follows:
      http://www.publisher.com/URLENCODE({rft.atitle})
      Alma uses the following URL:
      http://www.publisher.com/The%20Grapes%20of%20Wrath
    Electronic collections are available (to be published to Primo) after they have been activated. The exception to this is database type electronic collections, which are available to be published as soon as they are defined by a URL and an associated unsuppressed bibliographic record.
    You can define portfolios as standalone entities or as part of an electronic collection. The procedure for adding electronic collections and their associated portfolios is provided in Adding a Local Electronic Collection. The procedure for adding a portfolio independent of adding an electronic collection is provided in Managing Local Portfolios.
    • Was this article helpful?