wms-unique-holds

OCLC does not currently publish a reconciliation report of new items placed on hold (the [Daily Holds Ready for Pickup][holds-ready] report is a cumulative list). We'll need to keep a list of previously added items to diff out the new from the old. This u

Usage no npm install needed!

<script type="module">
  import wmsUniqueHolds from 'https://cdn.skypack.dev/wms-unique-holds';
</script>

README

wms-unique-holds

OCLC does not currently publish a reconciliation report of new items placed on hold (the Daily Holds Ready for Pickup report is a cumulative list). We'll need to keep a list of previously added items to diff out the new from the old. This uses LevelDB to store a list of hashed ND-JSON objects and only passes unique items through.

usage

unique-holds [/path/to/leveldb]

Pipe a stream of ND-JSON objects

$ unique-holds < holds-list-20160229.txt > new-holds-20160229.txt

Note: you'll have to do this once to prime the db with items to ignore.

license

MIT