cul_hydra 1.7.6 → 1.8.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8467bb84e67bddce15ffaf614759619ea3118f9394b313f01f1a81972067a25f
|
|
4
|
+
data.tar.gz: 3778549e6620a5b85267e4be6e7ae3a1657789eff74c8ec17350d0e8c94ad902
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72aed1e10c7f2f064a9e694a32294677db91d179e434b71d7c316331ac3c99b87bf2f8ade614493e50a4c9e730a8c96454432935a7bb49eaf2c4128daee0cc6d
|
|
7
|
+
data.tar.gz: 88409f4788ceb83586556a1687c80385515aa06c924cbdfd63b3609364421ca6cae29a2ebf0d71a3198cfcfe8ca124da13f06f1f04ce6c6d50b4303d6ba0ec7b
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<mods:mods xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mods="http://www.loc.gov/mods/v3" version="3.6" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-6.xsd">
|
|
3
|
+
<mods:titleInfo>
|
|
4
|
+
<mods:title>Agreement between Gunnar Myrdal and Harper & Brothers for the publication of "An American Dilemma," January 8, 1943</mods:title>
|
|
5
|
+
</mods:titleInfo>
|
|
6
|
+
<mods:relatedItem type="host" displayLabel="Project">
|
|
7
|
+
<mods:titleInfo>
|
|
8
|
+
<mods:title>Carnegie Digital Past and Future</mods:title>
|
|
9
|
+
</mods:titleInfo>
|
|
10
|
+
</mods:relatedItem>
|
|
11
|
+
<mods:relatedItem type="host" displayLabel="Collection">
|
|
12
|
+
<mods:titleInfo valueURI="http://id.library.columbia.edu/term/72fcfd07-f7db-4a18-bdb2-beb0abce071c">
|
|
13
|
+
<mods:title>Carnegie Corporation of New York Records</mods:title>
|
|
14
|
+
</mods:titleInfo>
|
|
15
|
+
<mods:identifier type="CLIO">4079753</mods:identifier>
|
|
16
|
+
<mods:part>
|
|
17
|
+
<mods:detail type="Series" level="1">
|
|
18
|
+
<mods:title>Series II. Files on Microfilm</mods:title>
|
|
19
|
+
</mods:detail>
|
|
20
|
+
</mods:part>
|
|
21
|
+
</mods:relatedItem>
|
|
22
|
+
</mods:mods>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<mods:mods xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mods="http://www.loc.gov/mods/v3" version="3.6" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-6.xsd">
|
|
3
|
+
<mods:titleInfo>
|
|
4
|
+
<mods:title>Thomas de Waal Interviews</mods:title>
|
|
5
|
+
</mods:titleInfo>
|
|
6
|
+
<mods:relatedItem type="host" displayLabel="Project">
|
|
7
|
+
<mods:titleInfo>
|
|
8
|
+
<mods:title>Publish Targets</mods:title>
|
|
9
|
+
</mods:titleInfo>
|
|
10
|
+
</mods:relatedItem>
|
|
11
|
+
<mods:location>
|
|
12
|
+
<mods:physicalLocation valueURI="http://id.library.columbia.edu/term/d2142d01-deaa-4a39-8dbd-72c4f148353f" authority="marcorg">NNC-RB</mods:physicalLocation>
|
|
13
|
+
</mods:location>
|
|
14
|
+
<mods:recordInfo>
|
|
15
|
+
<mods:languageOfCataloging>
|
|
16
|
+
<mods:languageTerm valueURI="http://id.loc.gov/vocabulary/iso639-2/eng" authority="iso639-2b">eng</mods:languageTerm>
|
|
17
|
+
</mods:languageOfCataloging>
|
|
18
|
+
<mods:recordCreationDate encoding="w3cdtf">2017-07-17T18:27:48Z</mods:recordCreationDate>
|
|
19
|
+
<mods:recordChangeDate encoding="w3cdtf">2020-03-03T18:36:48Z</mods:recordChangeDate>
|
|
20
|
+
</mods:recordInfo>
|
|
21
|
+
<mods:extension xmlns:cul="http://id.library.columbia.edu/property/">
|
|
22
|
+
<cul:searchScope value="project"/>
|
|
23
|
+
</mods:extension>
|
|
24
|
+
<mods:extension xmlns:cul="http://id.library.columbia.edu/property/">
|
|
25
|
+
<cul:readingRoom valueUri="http://id.library.columbia.edu/term/45487bbd-97ef-44b4-9468-dda47594bc60">Reading Room, Rare Book & Manuscript Library, Columbia University</cul:readingRoom>
|
|
26
|
+
</mods:extension>
|
|
27
|
+
<mods:identifier type="DOI">10.7916/D8Z611H9</mods:identifier>
|
|
28
|
+
</mods:mods>
|
|
@@ -3,7 +3,7 @@ module Cul::Hydra::Solrizer
|
|
|
3
3
|
extend ActiveSupport::Concern
|
|
4
4
|
include Solrizer::DefaultDescriptors::Normal
|
|
5
5
|
|
|
6
|
-
MODS_NS = {'mods'=>'http://www.loc.gov/mods/v3'}
|
|
6
|
+
MODS_NS = {'mods'=>'http://www.loc.gov/mods/v3', 'cul' => 'http://id.library.columbia.edu/property/'}
|
|
7
7
|
ORIGIN_INFO_DATES = ["dateCreated", "dateIssued", "dateOther"]
|
|
8
8
|
|
|
9
9
|
module ClassMethods
|
|
@@ -488,6 +488,14 @@ module Cul::Hydra::Solrizer
|
|
|
488
488
|
end
|
|
489
489
|
end
|
|
490
490
|
|
|
491
|
+
def reading_room_locations(node=mods)
|
|
492
|
+
node.xpath("./mods:extension/cul:readingRoom", MODS_NS).map { |room_node| room_node.attr('valueUri') }
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
def search_scope(node=mods)
|
|
496
|
+
node.xpath("./mods:extension/cul:searchScope", MODS_NS).map { |scope_node| scope_node.attr('value') }
|
|
497
|
+
end
|
|
498
|
+
|
|
491
499
|
def to_solr(solr_doc={})
|
|
492
500
|
solr_doc = (defined? super) ? super : solr_doc
|
|
493
501
|
|
|
@@ -622,6 +630,10 @@ module Cul::Hydra::Solrizer
|
|
|
622
630
|
|
|
623
631
|
solr_doc['copyright_statement_ssi'] = copyright_statement
|
|
624
632
|
|
|
633
|
+
# Publish Target/Site fields for location indexes
|
|
634
|
+
solr_doc['search_scope_ssi'] = search_scope.first
|
|
635
|
+
solr_doc['reading_room_ssim'] = reading_room_locations
|
|
636
|
+
|
|
625
637
|
solr_doc.each do |k, v|
|
|
626
638
|
if self.class.maps_field? k
|
|
627
639
|
solr_doc[k] = self.class.map_value(k, v)
|
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.
|
|
4
|
+
version: 1.8.0
|
|
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:
|
|
12
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bootstrap-sass
|
|
@@ -235,6 +235,20 @@ dependencies:
|
|
|
235
235
|
- - "~>"
|
|
236
236
|
- !ruby/object:Gem::Version
|
|
237
237
|
version: 2.0.0
|
|
238
|
+
- !ruby/object:Gem::Dependency
|
|
239
|
+
name: sprockets
|
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
|
241
|
+
requirements:
|
|
242
|
+
- - "~>"
|
|
243
|
+
- !ruby/object:Gem::Version
|
|
244
|
+
version: '3.0'
|
|
245
|
+
type: :runtime
|
|
246
|
+
prerelease: false
|
|
247
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
248
|
+
requirements:
|
|
249
|
+
- - "~>"
|
|
250
|
+
- !ruby/object:Gem::Version
|
|
251
|
+
version: '3.0'
|
|
238
252
|
- !ruby/object:Gem::Dependency
|
|
239
253
|
name: sqlite3
|
|
240
254
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -460,6 +474,7 @@ files:
|
|
|
460
474
|
- fixtures/spec/CUL_MODS/mods-001.xml
|
|
461
475
|
- fixtures/spec/CUL_MODS/mods-access-condition.xml
|
|
462
476
|
- fixtures/spec/CUL_MODS/mods-all.xml
|
|
477
|
+
- fixtures/spec/CUL_MODS/mods-archival-context-2.xml
|
|
463
478
|
- fixtures/spec/CUL_MODS/mods-archival-context.xml
|
|
464
479
|
- fixtures/spec/CUL_MODS/mods-bad-repo.xml
|
|
465
480
|
- fixtures/spec/CUL_MODS/mods-date-created-range.xml
|
|
@@ -486,6 +501,7 @@ files:
|
|
|
486
501
|
- fixtures/spec/CUL_MODS/mods-physical-location.xml
|
|
487
502
|
- fixtures/spec/CUL_MODS/mods-record-info.xml
|
|
488
503
|
- fixtures/spec/CUL_MODS/mods-relateditem-project.xml
|
|
504
|
+
- fixtures/spec/CUL_MODS/mods-site-fields.xml
|
|
489
505
|
- fixtures/spec/CUL_MODS/mods-subjects.xml
|
|
490
506
|
- fixtures/spec/CUL_MODS/mods-textual-date.xml
|
|
491
507
|
- fixtures/spec/CUL_MODS/mods-textual-dates-with-unusual-chars.xml
|
|
@@ -576,8 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
576
592
|
- !ruby/object:Gem::Version
|
|
577
593
|
version: '0'
|
|
578
594
|
requirements: []
|
|
579
|
-
|
|
580
|
-
rubygems_version: 2.7.9
|
|
595
|
+
rubygems_version: 3.0.3
|
|
581
596
|
signing_key:
|
|
582
597
|
specification_version: 4
|
|
583
598
|
summary: ActiveFedora, OM, and Solrizer implementations for CUL repository apps
|