Skip to content

Bibdata (marc_liberation) Integration

carolyncole edited this page Mar 17, 2020 · 2 revisions

Config File

Bibdata information about holdings is retrieved from the url defined by the bibdata_base in the config/requests.yml. For local development change ALL bibdata_base setting to your local copy including defailt and dev For example is bibdata is running on port 3003 locally your config file would look like

# requests.yml

defaults: &defaults
  umlaut_base: https://getit.princeton.edu
  bibdata_base: http://localhost:3003
  proxy_base: https://library.princeton.edu/resolve/lookup?url=
  voyager_api_base: https://webvoyage.princeton.edu:7014
  pulsearch_base: https://catalog.princeton.edu
  aeon_base: https://lib-aeon.princeton.edu/aeon/aeon.dll
  gfa_base: http://libweb5.princeton.edu/ReCAPNoUI/Default.aspx
  ill_base: https://lib-illiad.princeton.edu/illiad/illiad.dll/OpenURL
  scsb_base: https://scsb.recaplib.org:9093
development:
  <<: *defaults
  voyager_ub_id: 1@DB
  bibdata_base: http://localhost:3003
test:
  <<: *defaults
  voyager_ub_id: 1@DB
  bibdata_base: https://bibdata-staging.princeton.edu
production:
  <<: *defaults
staging:
  <<: *defaults
  bibdata_base: https://bibdata.princeton.edu # change back when ready to merge

Clear the Cache

The data is also cached in the Rails Cache for 24 hours. To get the system to retrieve a new version you must clear the rails cache

rails c
Rails.cache.clear
Clone this wiki locally