项目作者: slub

项目描述 :
add fullrecord field into given finc Solr schema conform line-delimited JSON
高级语言: Python
项目地址: git://github.com/slub/addfullrecord.git
创建时间: 2017-11-15T12:39:17Z
项目社区:https://github.com/slub/addfullrecord

开源协议:Apache License 2.0

下载


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

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

optional arguments:

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

usage example

  1. ./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]