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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c32b22bd78028e1293d30915d975d512069554bd
4
- data.tar.gz: 809de259211204db9256b6715c310767d65c17ee
3
+ metadata.gz: 496a0d1ff8e44103253381ff293cb4190bb52671
4
+ data.tar.gz: 7e2dac37a49a4d41ecbb275e1e953361c07b8b4c
5
5
  SHA512:
6
- metadata.gz: 1ccbb3668e98bac56777effbb0cf04f05fc38b057533946133663adcc43fa7577ffbd325603323d2b3ae2a14b7cf2d18016974d8902bd65d10c51e3d856dc366
7
- data.tar.gz: b6e3803215de5687653e8273e287a0360a56dd96f446bf4c1d5ec6679ff641162dc2c34cbe967ecd294c9a38bc3023d349b4947f1ebb290611561f90c62d4f6b
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
- 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
- }
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' and t._6 =~ /^\(ODIS-(TW)\)(\d)+$/
570
- # xml['dc'].identifier('xsi:type' => 'dcterms:URI').text odis_link($1, $2, CGI::escape(t._a))
571
- xml['dc'].subject list_s(t._a, element($2, prefix: '[', postfix: ']'))
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
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.33'
3
+ VERSION = '0.9.34'
4
4
  end
5
5
  end
@@ -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.33
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-04-27 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler