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

    Database Search

    Translatable

    Introduction

    The Database Search page (new Primo UI only) allows users to search for databases or to browse for databases that start with either a number (0-9), a letter (A-Z), or another non-Latin character (OTHERS). The Languages drop-down list allows you to specify the language of the links listed below the search box. For configuration information, see General Configuration. With the expanded DB Search capability enabled, users can search by all data fields (not just the title) and categories (see Expanded DB Search).
    Primo_DB_Search_Link.png
    Database Search

    Unlike Primo VE, Primo does not provide auto-complete suggestions for databases enabled in Alma.

    The maximum number of results per page is 20 (which is not configurable), and each result contains the following information: title, publisher, date, description, availability, and actions (such as Citation and Email).

    Primo_DB_Search_Categories_Disabled.png

    Database Search Results Page with Database Categories Disabled

    General Configuration for DB Search

    The following table describes the general Back Office settings that support the Database Search page.
    Configuration Options for Database Search
    Element Description
       
    Normalization rules

    Out of the box, normalization rules exist in the Alma MARC Template to support this functionality. To provide this functionality for other sources, ensure you include the following mappings:

    • Map the database source records to the Database resource type in Primo. For example, the following configuration maps Alma source records, which use ECT subfield a:

      DatabaseAZ_DisplayType_NormRule.png

      Add Resource Type Rule
    • Create a dedicated search scope for databases (AZDB<institution>).

      SearchScope_AZDB.png

      Add Search Scope Rule
    • The following rule for the facets/atoz field creates the A-Z facet that the system uses to search via the A-Z values list. The content of the facet should be the first character of the title that is normalized via a dedicated normalization table (A-Z Characters Transformations) by using the Assign To AZ List transformation.

      Primo_AtoZ_Facet.png

      Add Rule for Facet
    Views Wizard - Main Menu tile (modified)
    Defines the Database Search link that displays on the Main menu in the new UI.
    DB_SEARCH_MenuButtonConfig.png
    Views Wizard - Edit Main Menu Tile
    Search Tile code table
    The following codes configure the display labels associated with Database Search:
    • default.nui.databasesearch.title: Database Search
    • default.nui.databasesearch.searchbox.helpabcChecked: Letter {0} is chosen. Presents titles starting with {0}
    • default.nui.databasesearch.searchbox.helpabcSearch titles starting with {0}
    • default.nui.databasesearch.searchbox.helpEnter database name
    • default.nui.databasesearch.searchbox.expanded – Enter a search term
    View Labels code table
    The following codes configure the display labels associated with Database Search in the Main menu:
    • default.nui.mainmenu.label.databasesearch: Database Search
    • default.nui.mainmenu.description.databasesearch: Database Search
    A to Z List code table
    Defines the labels that are associated with the A-Z links that display below the Database Search search box.

    Expanded DB Search

    The Expanded DB Search functionality is enabled by default and expands DB searches to DB categories and all fields (such as Subject and Author), not just the Title field.

    Primo_DB_Search_AnyField_Example.png

    Expanded Database Search

    Configuration Options - Expanded DB Search

    This functionality is enabled by default, but searching by DB categories requires additional configuration and re-indexing. The following table lists the configuration options associated with this functionality.

    Configuration Page Description

    Institution Properties mapping table (Primo Home > Advanced Configuration > All Mapping Tables)

    The expanded Database Search functionality is enabled by default. If you prefer to search by title only, set the new expanded_db_search parameter to false.

    Normalization Set Editor (Primo Home > Local Data > Normalization Sets)

    The search/dbsearch field in the following templates allow you to map DB categories from your source records: Alma MARC - Template and Alma UNIMARC - Template.

    To enable searching by DB category, you must create a normalization rule for search/dbsearch that includes the following mapping information:

    • The MARC field (6XX and 9XX) that holds the DB category information in the source.

    • The Use code table transformation, which maps translation information that you have defined in the DB Search code table.

    For example:

    Primo_NormRule_Search_DBSearch.png

    DB Search code table (Primo Home > Advanced Configuration > All Code Tables)

    If you want to permit searching by DB category, add additional codes and translations for any DB categories that include the following characters: dot (.), ampersand (&), and apostrophe ('). For more details, see Creating Display Labels and Translations for Categories.

    Search Tile code table (Primo Home > Advanced Configuration > All Code Tables)

    The following code defines the display label that appears in the search box on the Database Search page when the expanded DB Search functionality is enabled:

    default.nui.databasesearch.searchbox.expanded – Enter a search term

    Browse Databases by Category 

    URM-83375

    When configured (see Assigning Categories to the Database Records), the Database Search page allows users to display a list of databases by clicking specific categories and subcategories, up to three levels.

    Primo_DB_Search_DB_Categories_Enabled.png

    Database Search Results Page with Database Categories Enabled

    When the Database Search page opens, the categories display the first category level only. Users can select the PVE_NextLevelIcon.png icon to display the category's next level.

    Assigning Categories to the Database Records

    This feature requires you to apply database categories, which can contain up to three category levels, to the bibliographic records of your local databases.

    To assign categories to your local database records:
    1. In Alma, choose a local bibliographic field (for example, select any 6XX or 9XX field for MARC21) in which to store the database categories in your local bibliographic records, and then enter that field in the db_categories_field parameter on the Alma Customer Parameters page (Configuration Menu > Resources > General > Other Settings).

      Administrators require one of the following roles to update the above parameter:

      • Catalog Administrator

      • Repository Administrator

      • General System Administrator

    2. For each local database, use the Metadata Editor (Resources > Cataloging > Open Metadata Editor) to add the chosen MARC field with the following subfields to assign up to three category levels: $$a (level 1), $$b (level 2), and $$c (level 3). For example:

      699 ##$aEducation $bMedical $cFitness

      699 ##$aEducation $bHealth

      As shown in the example above, a database can belong to more than one category/subcategory.

      If you provide translations for DB categories and plan to use the Expanded DB Search functionality (which is the default), ensure that all categories do not include a dot (.). For example, if you want to display the M.B.A. category, replace all dots with an underscore (_) in the source record. For example:

      699 ##$aM_B_A_

    3. Wait for the Creates DB Categories File job (Admin > Monitor Jobs > Scheduled tab) under the Discovery filter to update the record's categories for discovery in Primo. This job is scheduled to run daily. For more details, see Scheduled Jobs in Alma.

    4. Edit your normalization rules set in Primo, update the facets/dbcategory rule to map the category information from the source records to Primo, and then deploy your changes to the Front End (Primo Home > Advanced Configuration > Full Normalization Rule Configuration). Note that you must include the subfield delimiter (U+2500).

      For example:

      Primo_Facets_DBCategory_2.png

      Update Facets/dbcategory Normalization Rule from Alma MARC Template
    5. If you are using the Expanded DB Search functionality, update the search/dbsearch rule to map the category information from the source records to Primo, and then deploy your changes to the Front End (Primo Home > Advanced Configuration > Full Normalization Rule Configuration). For more details, see Expanded DB Search.

    6. In the Institution Wizard (Primo Home > Ongoing Configuration Wizard > Institution Wizard), enter the same value that you used for the API base URL in the new DB Category field under the Delivery Base URLs section.

      Primo_InstWizard_DBC.png

      DB Category Base URL in the Institution Wizard

      Clear this field if you want to disable categories in the view.

    7. Run a regular pipe and then re-index to see the database categories on the Database Search page in the new Primo UI.

    Customizing the Display Labels on the Database Search Page

    The DB Search code table (Primo Home > Advanced Configuration > All Code Tables > Front End subsystem) defines the display labels (including all customer-defined categories) that appear on the Database Search page. Out of the box, the following labels appear on the Database Search page:

    Code Description

    default.dbcategories.databases

    Search for databases

    default.dbcategories.description

    To search for databases, do the following:

    default.dbcategories.option1

    Enter keywords in the search box.

    default.dbcategories.option2

    Click a letter above.

    default.dbcategories.option3

    Browse databases by category.

    default.dbcategories.results

    Databases found for

    default.dbcategories.title

    Databases by category

    Creating Display Labels and Translations for Categories

    In addition to the labels that appear on the Database Search page, the DB Search code table allows you to translate the display labels used for your categories. The display label that appears for a category and its translations is based on the value mapped from the MARC subfield. To specify a different display value or provide a translation for a category, you must create a row definition for each language:

    • Code – Specify the value of the MARC subfield that is to be mapped from the source record. Ensure each space in the mapped value is converted to an underscore (_). For example, if your category is Medicine and Technology, the value of this field should be set to default.dbcategories.Medicine_and_Technology.

      If you plan to use the Expanded DB Search functionality (which is the default):

      • Ensure that all categories defined in the source do not include a dot, and configure their codes identically in the DB Categories code table so that they are indexed properly. For example, if you want to configure M.B.A., replace all dots with an underscore (_):

        default.dbcategories.M_B_A_

      • For each DB category that contains ampersands (&) and apostrophes ('), create an additional row in the DB category that replaces these characters with their HTML character code. For example, if you are defining the categories Guns & Roses and Women's and Gender Studies, define the following codes for each:

        default.dbcategories.Guns_&_Roses

        default.dbcategories.Guns_&amp;_Roses

         

        default.dbcategories.Women's_and_Gender_Studies

        default.dbcategories.Women&pos;s_and_Gender_Studies

    • Description – Specify the value of the category/translation to display in the UI. For example, if you are creating the Spanish translation for Medicine and Technology, specify Medicina y Tecnología.

    • Language – Specify the browser language for which the translation displays.

    Primo_DB_Categories_Translations.png

    English and Spanish Display Labels for Category

    If a row definition does not exist, Primo displays the value from the MARC subfield.

    • Was this article helpful?