cul_hydra 1.4.16 → 1.4.17

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: 8804232f1ca85e31ad2a0bfa1bc63d4767cfdafa
4
- data.tar.gz: 7d63e63050c095ad14acb31ca1398fd0bda7dd03
3
+ metadata.gz: 98a70de0210ddf9f8699da9b958aeec32d055010
4
+ data.tar.gz: 100a0e4c43455e6f7a049f1500c81ca7a348af59
5
5
  SHA512:
6
- metadata.gz: bb1ff057ca22ba94f107aeae436b855d7c31a2e0c21ba7153e408afb5855bbb0bec1f13b55ccc4e5223944c643774f47983dc37b8851614e503857f63da3b3c0
7
- data.tar.gz: c399320ba5fe6dd4e39b2ea80aa67c59979dcd5911b495b8aee026b5ee144b16e011bc5dbdb64de5c143ea50cf0c2f0c532ee011a91d949cb22b2c0666cd08e1
6
+ metadata.gz: 7730e2f172d55af4ca69f02875d6506b9843f353994cc1a58d4c0b747a9b2dd9e929ff5ad36cf6bea22b45e99134b2da35823d100467c60353ee0899364db30d
7
+ data.tar.gz: e842754c44bae108447445fe6f940ff81e385fa1a9d47ef4ec19107f8e0b6a65ba62a5f72c48565b3e67b163df3306734ebda72f80cd66b4028b9dda6dd9c02f
@@ -2,6 +2,9 @@
2
2
  <mods xmlns='http://www.loc.gov/mods/v3' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd' version='3.4'>
3
3
  <identifier type='local'>prd.custord.040148</identifier>
4
4
  <identifier type='CLIO'>12381225</identifier>
5
+ <classification authority='loc'>LOC.123.456</classification>
6
+ <classification authority='z'>AB.CD.EF.G.123</classification>
7
+ <classification authority='z'>AB.CD.EF.G.456</classification>
5
8
  <titleInfo>
6
9
  <nonSort>The </nonSort>
7
10
  <title>Manuscript, unidentified</title>
@@ -0,0 +1,8 @@
1
+ module Cul
2
+ module Hydra
3
+ VERSION = '1.4.16'
4
+ def self.version
5
+ VERSION
6
+ end
7
+ end
8
+ end
@@ -363,6 +363,14 @@ module Cul::Hydra::Solrizer
363
363
  return places
364
364
  end
365
365
 
366
+ def classification_other(node=mods)
367
+ classification_other_values = []
368
+ node.xpath("./mods:classification[@authority='z']", MODS_NS).collect do |n|
369
+ classification_other_values << ModsFieldable.normalize(n.text, true)
370
+ end
371
+ return classification_other_values
372
+ end
373
+
366
374
  def origin_info_place_for_display(node=mods)
367
375
  # If there are multiple origin_info place elements, choose only the ones without valueURI attributes. Otherwise show the others.
368
376
  places_with_uri = []
@@ -448,6 +456,7 @@ module Cul::Hydra::Solrizer
448
456
  solr_doc["lib_project_url_ssm"] = project_url
449
457
  solr_doc["origin_info_place_ssm"] = origin_info_place
450
458
  solr_doc["origin_info_place_for_display_ssm"] = origin_info_place_for_display
459
+ solr_doc["classification_other"] = classification_other
451
460
 
452
461
  repo_marc_code = repository_code
453
462
  unless repo_marc_code.nil?
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.16'
3
+ VERSION = '1.4.17'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.15'
3
+ VERSION = '1.4.16'
4
4
  def self.version
5
5
  VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.16
4
+ version: 1.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-05-02 00:00:00.000000000 Z
12
+ date: 2018-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -532,6 +532,7 @@ files:
532
532
  - fixtures/spec/STRUCTMAP/structmap-unlabeled-seq.xml
533
533
  - fixtures/spec/STRUCTMAP/structmap-unordered-seq.xml
534
534
  - lib/cul_hydra.rb
535
+ - lib/cul_hydra/#version.rb#
535
536
  - lib/cul_hydra/access_controls_enforcement.rb
536
537
  - lib/cul_hydra/controllers.rb
537
538
  - lib/cul_hydra/controllers/aggregates.rb