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. Product Documentation
    4. Primo
    5. Interoperability Guide
    6. Importing User Data from Aleph and MetaLib
    7. Importing MetaLib e-Shelf Records to Primo

    Importing MetaLib e-Shelf Records to Primo

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    This information is not applicable to Primo VE environments. For more details on Primo VE configuration, see Primo VE.
    Return to menu
    With Primo 3.1.2 and later releases, you can use the import_eshelf_metalib.sh script to import MetaLib e-Shelf records into Primo.
    To import MetaLib e-Shelf records to Primo:
    1. Run the export script in MetaLib.
      MetaLib creates two types of files: a list of all exported records and an XML file per record. For more information, see the MetaLib System Configuration and Administration Guide.
    2. Transfer all of the files that were exported on the MetaLib server to the Back Office server. The files should be added to a directory from which the Primo import script can read.
    3. In the Back Office server, enter the following commands to access the imshelf directory:
      be_profile
      cd imshelf
    4. Add the following parameters to the ImportMetalibBasket.properties file.
      • source_path – The full path of the list of records file.
      • source_folder – The full path of the folder in which the XML files per record are stored.
      If the source folder is the same as the directory that contains the list of records file, it is not necessary to enter this parameter.
    5. Enter the following command to open the hibernate.cfg.xml file:
      vi hibernate.cfg.xml
    6. Modify the following lines in the file:
      <property name="hibernate.connection.url">jdbc:oracle:thin:@{hostname of DB server}:{DB port}:{SID}</property>
      <property name="hibernate.connection.username">{oracle login}</property>
      <property name="hibernate.connection.password">{oracle password}</property>
      For example:
      <property name="hibernate.connection.url">jdbc:oracle:thin:@il-primo12:1521:prm2</property>
      <property name="hibernate.connection.username">P42_PRM00</property>
      <property name="hibernate.connection.password">P42_PRM00</property>
    7. Enter the following commands to create the backup files for the e-Shelf tables:
      be_bin
      backup_basket_tables.sh <target directory of backup file>
      If you need to restore the backup files, enter the following commands:
      be_bin
      restore_basket_tables.sh <target directory of backup file>
      This script will check to see that the backup file exists and then request confirmation to continue. Upon confirmation, it will delete the e-Shelf from the database and then import it from the backup file.
    8. Enter the following command to perform the import:
      be_bin
      import_eshelf_metalib.sh
      For Windows, enter the following script:
      primo_home\system\publish\bin\import_eshelf_metalib.bat
      The system will display the log on the screen and save it in the following file:
      be_log/publish_server.log
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Importing Aleph e-Shelf Records to Primo
      • Importing MetaLib QuickSets to Primo
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Primo
    2. Tags
      1. contype:docum
      2. Importing User Data from Aleph and MetaLib
      3. Interoperability Guide
      4. Prod:Primo
    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