Skip to content

add fullrecord field into given finc Solr schema conform line-delimited JSON

License

Notifications You must be signed in to change notification settings

slub/addfullrecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

addfullrecord

add fullrecord field into given finc Solr schema conform line-delimited JSON

reads a finc Solr schema conform line-delimited JSON (from stdin), (tries to) retrieves the binary MARC record for each record (by a given folder containing single MARC record files (that can be matched by id)), writes the record into the "fullrecord" field and prints out the result to stdout

requirements

install requirements

  1. (optionally) install pip for Python 3.x:

    sudo apt-get install python3-pip

  2. install requirements with pip:

    sudo -H pip3 install -r requirements.txt

usage

addfullrecord.py [-h] [-marc_record_folder MARC_RECORD_FOLDER]

optional arguments:

-h, --help            show this help message and exit
-marc_record_folder MARC_RECORD_FOLDER set MARC record (containing single MARC record files)

usage example

./addfullrecord.py -marc_record_folder [PATH TO YOUR MARC RECORD FOLDER CONTAINING SINGLE MARC RECORD FILES] < [PATH TO YOUR FINC SOLR SCHEMA CONFORM LINE-DELIMITED JSON FILE] > [PATH TO THE RESULT FINC SOLR SCHEMA CONFORM LINE-DELIMITED JSON FILE]

Releases

No releases published

Packages

No packages published

Languages