Skip to content
/ marcsigel Public

a commandline command (Python3 program) that adds a Sigel to a given collection of binary MARC records (into MARC field 935 a; and optionally deduplicates this collection to another given collection)

License

Notifications You must be signed in to change notification settings

slub/marcsigel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marcsigel

marcsigel is a Python3 program that adds a Sigel to a given collection of binary MARC records (into MARC field 935 a; and optionally deduplicates this collection to another given collection)

Requirements

Run

  • clone this git repo or just download the marcsigel.py file
  • run ./marcsigel.py
  • for a hackish way to use marcsigel system-wide, copy to /usr/local/bin

Install system-wide via pip

  • via pip:
    python3.6 -m pip install --upgrade [ABSOLUTE PATH TO YOUR LOCAL GIT REPOSITORY OF MARCSIGEL]
    
    (which provides you marcsigel as a commandline command)

Usage

marcsigel [-h] -sigel SIGEL -input-collection INPUT_COLLECTION -output-collection OUTPUT_COLLECTION [-another-collection ANOTHER_COLLECTION]

required arguments: -sigel SIGEL the Sigel that should be added to the MARC records into MARC field 935 a (default: None) -input-collection INPUT_COLLECTION an input file with binary MARC records, where the Sigel should be added into MARC field 935 a (default:None) -output-collection OUTPUT_COLLECTION the output file with binary MARC records (incl. added Sigels and optionally deduplication against the other collection) (default: None)

optional arguments: -h, --help show this help message and exit -another-collection ANOTHER_COLLECTION a file with binary MARC records that should be utilised for deduplication, i.e., the Sigel values from MARC field 935 a will be merged (default: None)

Usage example

marcsigel -sigel [SIGEL OF THE INPUT COLLECTION TO ADD] -input-collection [INPUT BINARY MARC RECORDS COLLECTION FILE] -output-collection [OUTPUT BINARY MARC RECORDS COLLECTION FILE WITH SIGELS]

About

a commandline command (Python3 program) that adds a Sigel to a given collection of binary MARC records (into MARC field 935 a; and optionally deduplicates this collection to another given collection)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages