Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:ils:multibackend_driver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configuration:ils:multibackend_driver [2016/01/20 11:55] – [Indexing Your Data] emaijala | configuration:ils:multibackend_driver [2024/02/14 19:16] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MultiBackend Driver ====== | ====== MultiBackend Driver ====== | ||
- | The MultiBackend driver allows you to connect a single | + | The MultiBackend driver allows you to connect a single |
===== Indexing Your Data ===== | ===== Indexing Your Data ===== | ||
- | The MultiBackend driver determines which records are associated with which ILS backends by looking for a prefix on ID values. | + | The MultiBackend driver determines which records are associated with which ILS backends by looking for a prefix on ID values. |
Record 12345 from library A: instance1.12345 | Record 12345 from library A: instance1.12345 | ||
Line 12: | Line 12: | ||
The same prefix must be used to identify the sources in the indexing phase as well as in MultiBackend.ini. | The same prefix must be used to identify the sources in the indexing phase as well as in MultiBackend.ini. | ||
+ | |||
+ | ==== Setting Up SolrMarc to Index Multiple Libraries ==== | ||
+ | |||
+ | If you are using SolrMarc to index records, your best bet is to take advantage of its -p switch to specify a properties file at index time. This allows you to use a different configuration file for each library being indexed. | ||
+ | |||
+ | By default, SolrMarc uses $VUFIND_LOCAL_DIR/ | ||
+ | |||
+ | For the most part, the settings in instance1.properties and instance2.properties files can remain the same as import.properties. Only one critical detail needs to change: solr.indexer.properties, | ||
+ | |||
+ | solr.indexer.properties = marc.properties, | ||
+ | |||
+ | This tells SolrMarc to use the core marc.properties file for defaults, but to override them with customizations in marc_local.properties. You could extend this to: | ||
+ | |||
+ | solr.indexer.properties = marc.properties, | ||
+ | | ||
+ | in your instance1.properties file, and: | ||
+ | |||
+ | solr.indexer.properties = marc.properties, | ||
+ | |||
+ | in your instance2.properties file. | ||
+ | |||
+ | This will tell SolrMarc to add another level of mapping overrides that is specific to each instance. Now, if you have shared customizations that you want to apply to all instances, you can include those in marc_local.properties, | ||
+ | |||
+ | id = 001, (pattern_map.id_prefix), | ||
+ | pattern_map.id_prefix.pattern_0 = (.+)=> | ||
+ | |||
+ | Once this is all set up, you can simply specify an appropriate configuration file with the -p switch when indexing; e.g.: | ||
+ | |||
+ | ./ | ||
+ | |||
===== Configuring the Driver ===== | ===== Configuring the Driver ===== | ||
- | For each individual ILS being connected to VuFind, you will need to set up a separate .ini file (e.g. Voyager1.ini, Voyager2.ini, Koha1.ini, etc.). You will also need to set up a [[https:// | + | For each individual ILS being connected to VuFind®, you will need to set up a separate |
+ | |||
+ | For user authentication the MultiILS driver can be used to allow users to log in with a library card of the selected library. | ||
+ | |||
+ | ===== Minimal Example ===== | ||
+ | |||
+ | This example makes the following assumptions: | ||
+ | |||
+ | - Local config files reside in local/ | ||
+ | - Records with prefix " | ||
+ | - Records with prefix " | ||
+ | - Users can authenticate with a library card of either system | ||
+ | |||
+ | The following steps are required: | ||
+ | |||
+ | * Copy config/ | ||
+ | * Copy config/ | ||
+ | * Modify local/ | ||
+ | |||
+ | [Catalog] | ||
+ | driver = " | ||
+ | |||
+ | [Authentication] | ||
+ | method = MultiILS | ||
+ | |||
+ | * Copy config/ | ||
+ | |||
+ | [Drivers] | ||
+ | anchor = VoyagerRestful | ||
+ | comb = Koha | ||
+ | |||
+ | [Login] | ||
+ | default_driver = anchor | ||
+ | drivers[] = anchor | ||
+ | drivers[] = comb | ||
+ | |||
+ | |||
+ | ===== Related Video ===== | ||
+ | |||
+ | See [[videos: | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
configuration/ils/multibackend_driver.1453290916.txt.gz · Last modified: 2016/01/20 11:55 by emaijala