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

    Customizing Static HTML Files - Classic UI Only

    This page is specific to Primo's classic UI. For customization information that is specific to the new Primo UI and Primo VE, see the following documents, respectively:
     

    Primo's Front End UI contains tiles that allow you to display additional information that is a specific to your institution (such as hours of operation, sign-in information, available services, and so forth). The information that displays in these tiles is defined in the following out-of-the-box files, which are stored under the static_htmls folder (see Primo Customization Directories): news.html, singin.html, service.html, featured.html, header.html, footer.html, ideasbrief.jsp, browse.html, noResults.htmlatoz.html, signin_tips.html, and ideasfull.jsp.
    The Edit HTML Attributes page in the Views wizard of the Back Office defines the paths for each of the static HTML files. Changing the paths allows you to rename static HTML files and place them in other locations.
    EditHTML_Attributes.png
    Edit HTML Attributes - Static HTML Tile
    • The procedures in this section use the File Uploader utility to upload and mange files on the server. The utility places the files in a view-specific subdirectory under the uploaded_files directory. For more information, see The File Uploader Tool. For customers who have access to the Back Office server, you can enter the following commands to access the static files, but it is recommended to use the File Uploader utility to manage customized files:
      fe_web
      cd static_htmls
    • If you are updating the files under the static_htmls directory on the Back Office server, back up your customized files to prevent them from being overwritten during a SP or hot fix update. After the update, you may need to reapply your changes. Files stored under the uploaded_files directory will not be overwritten during a SP or hot fix update.
    • Locale-specific files are applied automatically when users set their preferences to a locale-specific language on Primo's Front End UI.
    To customize the content of the Static HTML pages:
    1. Click the links listed above to download a local copy of the files that you want to customize.
      If you have already customized and uploaded the file to the server, you can use the File Uploader utility to download the latest version to modify.
    2. Enter the following command to edit the static HTML file, where <filename> is the name of the file to be modified:
      vi <filename>
    3. Modify and save your changes to the file.
    4. Use the File Uploader utility (Primo Home > Primo Utilities > File Uploader) to upload your customized static HTML file.
      FileUploaderCustomizeFiles.png
      File Uploader Utility
    5. In the Views Wizard (Primo Home > Ongoing Configuration Wizards > Views Wizard), update the paths in the Static HTML tile to access the files placed under the uploaded_files directory. For more information, see The File Uploader Tool.
      PDS_Cust_EditHTML_Attributes.png
      Edit HTML Attributes - Static HTML Tile
    6. Save and deploy your changes to the view.
    To customize locale-specific Static HTML pages:
    1. Download the corresponding static HTML file to use as a template.
    2. Change the name of the file using the following naming convention:
      <default name>_<locale>.html
      For example, if you have customized the header.html file and you want to create a French version, you must name the file header_fr_FR.html.
    3. Modify and save your changes to the file.
    4. Use the File Uploader utility (Primo Home > Primo Utilities > File Uploader) to upload your customized static HTML file. For more information, see The File Uploader Tool.