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

    Configuring Dynamic URLs for Electronic Collections and Portfolios

    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
    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){rft.issn}/{rft.year}/{rft.volume}
    IF (rft.issn, rft.year){rft.issn}/{rft.year}
    IF (rft.issn){rft.issn}
    IF ()
    If the first condition is met in the above example, the resulting dynamic URL may look something like the following:
    In addition to rft.year, you can also use rft.month,, and 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 {} contains 2010-08-01, and the first four characters from the beginning of the string are specified, as follows:{rft.issn}/SUBSTR({},0,4)
      Alma uses the following URL:
    • 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:{rft.isbn},-)
      Alma uses the following URL:
    • 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:{rft.atitle})
      Alma uses the following URL:
    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?