cul_hydra 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f102335a9605f015a39db48f0a56b45326879f8b86a29cf93e25208904bec73
4
- data.tar.gz: 56154537716f8bd8f8c703a78cbd62c06913aa6f34df5674879811a664cf619a
3
+ metadata.gz: dab1003e11e34d701dde1eb46e18f31e34c72f2aedaadb6c56c95de80ce21f9a
4
+ data.tar.gz: '090c961afa5d3dd183c32ffeb3362fd712dca7321f42c4b9c8b3abe89f8d7ef0'
5
5
  SHA512:
6
- metadata.gz: '008492c21b4ab8536b6efa4a4826ad75b4ec571eea746fcec2358fb778d2bf67c2131e9a3defcb7ecddf7f3bcaab83a873d11f47255983d451965fe94977b9cc'
7
- data.tar.gz: 8c4b1c7ed98e4552916a436686c370cab795372bc0fea5fbf0ca2a8a7628bf931c9305db1e13a3b4e6e5e1eadaf6452ded9533d9be3fb51254bd3a71e05bf3f1
6
+ metadata.gz: 56f4da8b82090c0d603655d69707ea82dbb09137614e973e8b08c29101339c816655b88d340f61f96fa1e79f96cc3c154b1426128ada17eeb3edb68f9868eb8f
7
+ data.tar.gz: 3a8a85793196a278cab4c74a8ba3e38659de18866caed38ee9eb078b3edb8e9c0fe69a093ec35f2bdf5dc46dfccccee6cc48883923c759cbc4597fca69bdc68c
@@ -2,7 +2,7 @@
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
- <identifier type='archive.org'>internet_archive_id_value</identifier>
5
+ <identifier type='archive.org' displayLabel='internet_archive_id_label'>internet_archive_id_value</identifier>
6
6
  <classification authority='loc'>LOC.123.456</classification>
7
7
  <classification authority='z'>AB.CD.EF.G.123</classification>
8
8
  <classification authority='z'>AB.CD.EF.G.456</classification>
@@ -409,10 +409,19 @@ module Cul::Hydra::Solrizer
409
409
  coordinate_values
410
410
  end
411
411
 
412
- def archive_org_identifier(node=mods)
412
+ def archive_org_identifiers(node=mods)
413
413
  node.xpath('./mods:identifier[@type="archive.org"]', MODS_NS).collect do |t|
414
- ModsFieldable.normalize(t.text)
415
- end.first
414
+ {
415
+ displayLabel: t['displayLabel'] || ModsFieldable.normalize(t.text),
416
+ id: ModsFieldable.normalize(t.text)
417
+ }.compact
418
+ end
419
+ end
420
+
421
+ def archive_org_identifier(node=mods)
422
+ node.at_xpath('./mods:identifier[@type="archive.org"]', MODS_NS)&.tap do |t|
423
+ return ModsFieldable.normalize(t.text)
424
+ end
416
425
  end
417
426
 
418
427
  def add_names_by_text_role!(solr_doc)
@@ -486,6 +495,7 @@ module Cul::Hydra::Solrizer
486
495
  solr_doc["all_text_teim"] += solr_doc["alternative_title_ssm"]
487
496
  solr_doc["clio_ssim"] = clio_ids
488
497
  solr_doc["archive_org_identifier_ssi"] = archive_org_identifier
498
+ solr_doc["archive_org_identifiers_json_ss"] = JSON.generate(archive_org_identifiers)
489
499
  solr_doc["lib_collection_sim"] = collections
490
500
  solr_doc["lib_name_sim"] = names
491
501
  solr_doc["lib_name_teim"] = solr_doc["lib_name_sim"]
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.6.2'
3
+ VERSION = '1.6.4'
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.6.2
4
+ version: 1.6.4
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: 2019-04-04 00:00:00.000000000 Z
12
+ date: 2019-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap-sass