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 +4 -4
- data/fixtures/spec/CUL_MODS/mods-all.xml +1 -1
- data/lib/cul_hydra/solrizer/mods_fieldable.rb +13 -3
- data/lib/cul_hydra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dab1003e11e34d701dde1eb46e18f31e34c72f2aedaadb6c56c95de80ce21f9a
|
|
4
|
+
data.tar.gz: '090c961afa5d3dd183c32ffeb3362fd712dca7321f42c4b9c8b3abe89f8d7ef0'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
412
|
+
def archive_org_identifiers(node=mods)
|
|
413
413
|
node.xpath('./mods:identifier[@type="archive.org"]', MODS_NS).collect do |t|
|
|
414
|
-
|
|
415
|
-
|
|
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"]
|
data/lib/cul_hydra/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bootstrap-sass
|