Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Community Knowledge
    4. How to add HTML tags using Normalization Rules to create a link within a display field

    How to add HTML tags using Normalization Rules to create a link within a display field

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    Created By: Richard Robertson
    Created on: 2/26/2019



    In order to build a link into a record’s display fields, you could use a combination of normalisation rules to mark-up the link with HTML tags.
     
    For this example, the source field content is: 'For more information about this collection, please visit: https://website.com'
     
    Rule 1:
    Transformation:
    Drop String (use reg. exp) – create or find a regular expression (regex) that matches on a URL
    Result:
    “For more information about this collection, please visit: ”
     
    Rule 2:
    Transformations:
    Add to beginning of string: <a href="
    Take string (use reg. exp.) – use the same regex, but this time takes only the URL
    Add to end of string: ">
    Result:
    <a href="https://website.com">
     
    Rule 3:
    Transformations:
    Take string (use reg. exp.) – same regex takes only the URL
    Add to end of string: </a>
    Result:
    https://website.com</a>
     
    Each rule is set to merge, so the final result would be:
    For more information about this collection, please visit: <a href="https://website.com">https://website.com</a>
     
    More information regarding HTML tags via normalisation rules:
    https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/Technical_Guide/020Working_with_Normalization_Rules/070How_to_Edit_the_Normalization_Rules#Inserting_HTML_Tags_into_PNX_Records



    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to – Force records from external data sources to be updated or deleted in Primo VE
      • How to add Information beyond Resource Type and Title to Collection Discovery in Primo VE
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Language
      English
      Product
      Primo
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved