Skip to content
Snippets Groups Projects
Commit 8dc696a4 authored by Donatus Herre's avatar Donatus Herre
Browse files

initial

parents
No related branches found
No related tags found
No related merge requests found
_/
records.json
# Bibliothekarische Daten zu halleschen Druckwerken (via Catmandu)
## Benötigte Software
- [Perl](https://www.perl.org/)
- [Catmandu](https://metacpan.org/release/Catmandu)
- [Catmandu::SRU](https://metacpan.org/release/Catmandu-SRU)
## Weiterführende Informationen
- Catmandu: [Handbook](https://librecat.org/Catmandu/)
importer:
kalliope:
package: SRU
options:
base: http://kalliope-verbund.info/sru
version: 1.2
operation: searchRetrieve
recordSchema: mods
[]
[]
File added
#!/usr/bin/env bash
echo ""
echo "start compression..."
echo ""
cwd=$(pwd)
echo $cwd
d=data
echo ""
echo $d
cd $d
if [ -f records.json ]; then
rm -f records.tar.gz
tar -cvzf records.tar.gz records.json
fi
cd $cwd
echo ""
echo "compression done!"
echo ""
#!/usr/bin/env bash
echo ""
echo "start decompression..."
echo ""
cwd=$(pwd)
echo $cwd
d=data
echo ""
echo $d
cd $d
if [ -f records.tar.gz ]; then
tar -xvzf records.tar.gz
fi
cd $cwd
echo ""
echo "decompression done!"
echo ""
#!/usr/bin/env bash
echo "start SRU retrieval of data from Kalliope!"
#
# retrieve metadata of Verlagsarchiv Gebauer-Schwetschke
echo ""
echo "start retrieving metadata of Verlagsarchiv Gebauer-Schwetschke..."
catmandu convert kalliope --query ead.id=DE-611-BF-37172 to JSON --pretty 1 > data/meta.json
echo "done retrieving metadata of Verlagsarchiv Gebauer-Schwetschke!"
#
# retrieve all items part of Verlagsarchiv Gebauer-Schwetschke
echo ""
echo "start retrieving data of Verlagsarchiv Gebauer-Schwetschke..."
catmandu convert kalliope --query ead.archdesc=DE-611-BF-37172 --total 1 to JSON --pretty 1 > data/example.json
catmandu convert kalliope --query ead.archdesc=DE-611-BF-37172 to JSON --pretty 1 > data/records.json
echo "done retrieving data of Verlagsarchiv Gebauer-Schwetschke!"
#
echo ""
echo "done retrieving data from Kalliope!"
echo ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment