Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hdw-pica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dikon
hdw-pica
Commits
3a8ec9b0
Commit
3a8ec9b0
authored
4 years ago
by
Donatus Herre
Browse files
Options
Downloads
Patches
Plain Diff
utils/ added
parent
e6f7cc38
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
utils/compress
+19
-0
19 additions, 0 deletions
utils/compress
utils/decompress
+18
-0
18 additions, 0 deletions
utils/decompress
utils/retrieve
+25
-0
25 additions, 0 deletions
utils/retrieve
with
62 additions
and
0 deletions
utils/compress
0 → 100755
+
19
−
0
View file @
3a8ec9b0
#!/usr/bin/env bash
echo
""
echo
"start compression..."
echo
""
cwd
=
$(
pwd
)
echo
$cwd
for
d
in
data/
*
/
*
/
;
do
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
done
echo
""
echo
"compression done!"
echo
""
This diff is collapsed.
Click to expand it.
utils/decompress
0 → 100755
+
18
−
0
View file @
3a8ec9b0
#!/usr/bin/env bash
echo
""
echo
"start decompression..."
echo
""
cwd
=
$(
pwd
)
echo
$cwd
for
d
in
data/
*
/
*
/
;
do
echo
""
echo
$d
cd
$d
if
[
-f
records.tar.gz
]
;
then
tar
-xvzf
records.tar.gz
fi
cd
$cwd
done
echo
""
echo
"decompression done!"
echo
""
This diff is collapsed.
Click to expand it.
utils/retrieve
0 → 100755
+
25
−
0
View file @
3a8ec9b0
#!/usr/bin/env bash
echo
"start sru retrieval of library data!"
#
# VD 17
echo
""
echo
"start retrieving from vd17..."
# retrieve all publications indexed in VD 17 with Halle as publication place
catmandu convert vd17
--query
pica.vlo
=
Halle to JSON
--pretty
1
>
data/vd17/pica-vlo-halle/records.json
catmandu convert vd17
--query
pica.vlo
=
Halle
--total
1 to JSON
--pretty
1
>
data/vd17/pica-vlo-halle/example.json
echo
"done retrieving from vd17!"
#
# VD 18
echo
""
echo
"start retrieving vd18..."
# retrieve all publications indexed in VD 18 with Halle as publication place
catmandu convert vd18
--query
pica.pub
=
Halle to JSON
--pretty
1
>
data/vd18/pica-pub-halle/records.json
catmandu convert vd18
--query
pica.pub
=
Halle
--total
1 to JSON
--pretty
1
>
data/vd18/pica-pub-halle/example.json
# retrieve all publications indexed in VD 18 with Halle as publication place (2)
catmandu convert vd18
--query
pica.plc
=
Halle to JSON
--pretty
1
>
data/vd18/pica-plc-halle/records.json
catmandu convert vd18
--query
pica.plc
=
Halle
--total
1 to JSON
--pretty
1
>
data/vd18/pica-plc-halle/example.json
echo
"done retrieving from vd18!"
#
echo
""
echo
"done retrieving library data!"
echo
""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment