libis-tools 0.9.33 → 0.9.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/tools/metadata/mappers/kuleuven.rb +15 -13
- data/lib/libis/tools/version.rb +1 -1
- data/spec/metadata/marc21_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496a0d1ff8e44103253381ff293cb4190bb52671
|
4
|
+
data.tar.gz: 7e2dac37a49a4d41ecbb275e1e953361c07b8b4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3562b03f747eaef60425ca78313dc749783001a2e12169ff3bcc39d77d4ca710d18f88431301ab243a040fb4041a590066543da91ed60fd8c3606823b10226
|
7
|
+
data.tar.gz: 1144422bae5e26520405cf34e913550995817353b803f0d14cf13e32bea7852458ced3ed97f03a1a4eb8a093fd2f0e023e740e875a6c8b20bdd6f148cdfdd9ad
|
@@ -190,14 +190,15 @@ module Libis
|
|
190
190
|
# end
|
191
191
|
# }
|
192
192
|
# ALMA: 690 02 ax0 => 650 _7 ax6 $2 == 'KADOC'
|
193
|
-
all_tags('650_7', '6a') { |t|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
}
|
193
|
+
# all_tags('650_7', '6a') { |t|
|
194
|
+
# next unless t._2 == 'KADOC'
|
195
|
+
# if t._6 =~ /^\(ODIS-(PS|ORG)\)(\d+)$/
|
196
|
+
# xml['dc'].identifier(odis_link($1, $2, CGI::escape(t._a)), 'xsi:type' => 'dcterms:URI')
|
197
|
+
# # else
|
198
|
+
# # xml['dc'].identifier t._a
|
199
|
+
# end
|
200
|
+
# }
|
201
|
+
# Verhuisd naar subject op vraag van KADOC (Luc Schokkaert)
|
201
202
|
end
|
202
203
|
|
203
204
|
def marc2dc_identifier_856(xml)
|
@@ -564,11 +565,13 @@ module Libis
|
|
564
565
|
end
|
565
566
|
|
566
567
|
def marc2dc_subject_650__7(xml)
|
567
|
-
# KADOC: ODIS-TW zoals ODIS-PS
|
568
568
|
all_tags('650_7', '26a') { |t|
|
569
|
-
next unless t._2 == 'KADOC'
|
570
|
-
|
571
|
-
|
569
|
+
next unless t._2 == 'KADOC'
|
570
|
+
if t._6 =~ /^\(ODIS-(PS|ORG)\)(\d+)$/
|
571
|
+
xml['dc'].subject(odis_link($1, $2, CGI::escape(t._a)), 'xsi:type' => 'dcterms:URI')
|
572
|
+
elsif t._6 =~ /^\(ODIS-(TW)\)(\d)+$/
|
573
|
+
xml['dc'].subject list_s(t._a, element(t._6, prefix: '[', postfix: ']'))
|
574
|
+
end
|
572
575
|
}
|
573
576
|
end
|
574
577
|
|
@@ -1609,7 +1612,6 @@ module Libis
|
|
1609
1612
|
# KADOC: ODIS-GEO zoals ODIS-PS
|
1610
1613
|
all_tags('650_7', '26a') { |t|
|
1611
1614
|
next unless t._2 == 'KADOC' and t._6 =~ /^\(ODIS-(GEO)\)(\d)+$/
|
1612
|
-
# xml['dc'].identifier('xsi:type' => 'dcterms:URI').text odis_link($1, $2, CGI::escape(t._a))
|
1613
1615
|
xml['dc'].coverage list_s(t._a, element(t._6, prefix: '[', postfix: ']'))
|
1614
1616
|
}
|
1615
1617
|
end
|
data/lib/libis/tools/version.rb
CHANGED
@@ -114,11 +114,11 @@ describe 'Marc21Record' do
|
|
114
114
|
<dc:identifier>urn:ControlNumber:9921543960101471</dc:identifier>
|
115
115
|
<dc:identifier>(BeLVLBS)002154396LBS01-Aleph</dc:identifier>
|
116
116
|
<dc:identifier>8389207</dc:identifier>
|
117
|
-
<dc:identifier xsi:type="dcterms:URI">http://www.odis.be/lnk/or_9284#Bisdom+Antwerpen+%281961-heden%29</dc:identifier>
|
118
|
-
<dc:identifier xsi:type="dcterms:URI">http://www.odis.be/lnk/or_24894#Studiecentrum+voor+Zielzorg+en+Predicatie</dc:identifier>
|
119
117
|
<dc:title>Anecdota Graeca, sacra et profana /</dc:title>
|
120
118
|
<dc:creator>Wolf, Johann Christoph, 1683-1739, (author)</dc:creator>
|
121
119
|
<dc:subject xsi:type="http://purl.org/dc/terms/UDC">276 =75 Griekse patrologie</dc:subject>
|
120
|
+
<dc:subject xsi:type="dcterms:URI">http://www.odis.be/lnk/or_9284#Bisdom+Antwerpen+%281961-heden%29</dc:subject>
|
121
|
+
<dc:subject xsi:type="dcterms:URI">http://www.odis.be/lnk/or_24894#Studiecentrum+voor+Zielzorg+en+Predicatie</dc:subject>
|
122
122
|
<dc:temporal>1701-1750</dc:temporal>
|
123
123
|
<dc:description>Ded. Petrus Theodorus Seelmann; Erdmannus Neumeister; Thomas Claussen; Joannes Grammius\n \nElk deel heeft eigen titelp. in roodzwartdruk, met drukkersmerk</dc:description>
|
124
124
|
<dc:date>1722 - 1724</dc:date>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|