libis-tools 0.9.31 → 0.9.32

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: e9b820319951cb702cd4c59824f9a9b85ed66c6f
4
- data.tar.gz: 78c99d393ffa29817c839429a05c9491c5f0898d
3
+ metadata.gz: d19c4e5103504155dc43436da9b8e11eeee80b21
4
+ data.tar.gz: e66313a9dd4ab1fd5076036a295f8ab1860b7401
5
5
  SHA512:
6
- metadata.gz: 6d17bdd3a3a16b0ff0b7e9d37287dddd89abb7fa4c7d8e1be9efe0c6700f792bea4c51886f7c265a05a08bed0e17617da7f2143d9234cca2cd9d06807bff3e81
7
- data.tar.gz: 60bc864c3db751be422b1e7943efe8713926b11d1fbf67908d551b7fc508df9f5d387c13016b0e3162b7f494ec4db4b08f04e0d1af51a6207d18d7cc77add42a
6
+ metadata.gz: 18ce9a66012addae433b585d421253a37994aaccc93424b01fedb62f9a392ac79ac1664a3d440696d7f92bfcfd0d6eaefd5713eb51a0f328b5f80f25ec241471
7
+ data.tar.gz: 01b5480bca02931eb284e1048e441bbf06f75873068be66259feace057857a0ccfa1191f9c041e6c8828d1d9af742f7c7b8abfd389ab639e4023480a0a29551b
@@ -52,6 +52,7 @@ module Libis
52
52
  marc2dc_rightsholder(xml)
53
53
  marc2dc_references(xml)
54
54
  marc2dc_isreferencedby(xml)
55
+ marc2dc_coverage(xml)
55
56
 
56
57
  end
57
58
 
@@ -479,6 +480,7 @@ module Libis
479
480
  marc2dc_subject_691(xml)
480
481
  marc2dc_subject_082(xml)
481
482
  marc2dc_subject_690(xml)
483
+ marc2dc_subject_650__7(xml)
482
484
  end
483
485
 
484
486
  def marc2dc_subject_600(xml)
@@ -561,6 +563,15 @@ module Libis
561
563
  # rule disbled gives duplicates and needs to be redefined by KUL cataloguing staff
562
564
  end
563
565
 
566
+ def marc2dc_subject_650__7(xml)
567
+ # KADOC: ODIS-TW zoals ODIS-PS
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: ']'))
572
+ }
573
+ end
574
+
564
575
  def marc2dc_temporal(xml)
565
576
  # DC:TEMPORAL
566
577
  marc2dc_temporal_648(xml)
@@ -1597,6 +1608,16 @@ module Libis
1597
1608
  }
1598
1609
  end
1599
1610
 
1611
+ def marc2dc_coverage(xml)
1612
+ # KADOC: ODIS-GEO zoals ODIS-PS
1613
+ all_tags('650_7', '26a') { |t|
1614
+ next unless t._2 == 'KADOC' and t._6 =~ /^\(ODIS-(GEO)\)(\d)+$/
1615
+ # xml['dc'].identifier('xsi:type' => 'dcterms:URI').text odis_link($1, $2, CGI::escape(t._a))
1616
+ xml['dc'].coverage list_s(t._a, element($2, prefix: '[', postfix: ']'))
1617
+ }
1618
+
1619
+ end
1620
+
1600
1621
  protected
1601
1622
 
1602
1623
  def check_name(data, b)
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.31'
3
+ VERSION = '0.9.32'
4
4
  end
5
5
  end
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.31
4
+ version: 0.9.32
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-03-27 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler