cul_hydra 1.4.13 → 1.4.14

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
  SHA1:
3
- metadata.gz: b00a31481023d67e45fbcc98632503d040588153
4
- data.tar.gz: 3ed19c422e4756423635b9d05d8d69ddfc18fb62
3
+ metadata.gz: 4392656ad0d6668d025e50fcb401348147897f63
4
+ data.tar.gz: ee770cd3400ee29af7f8b9ef53dc2185d0c5b54a
5
5
  SHA512:
6
- metadata.gz: dbf2ede45ca288de1a36a4d86cd8691950b1202dd8ba46462f84940006f517471bba2fde83f942761c33c64ae21921efbb2eb17d4cd224e85942602f45651258
7
- data.tar.gz: 4527adec810592381e6e30b6f02c0f34ca8a256e824ad665aa5255868a8ca262e38cebef17a2ae0eecdc6e88d6a280019b813ed92e38b94e663aa05ce417e187
6
+ metadata.gz: 7341c4406639066ecd01e12a652bf82bf567d851fb0ea6b93a7c10f1ac330d7e6b0f679a7fe0b489ff8e7f1d2c125688b4dbe5168c53ead6bfb8f202eb0288e7
7
+ data.tar.gz: b4e6872dae63fa40ad7b47c179a86c8bf6f345909d1a948f8adeed137a4c432aee1b1b72c506ac9d02990d9fd982e17e3ab9b155228405c24d39cdb605189398
@@ -195,12 +195,12 @@ class StructMetadata < ::ActiveFedora::Datastream
195
195
  end
196
196
  def proxy_uri_chain_for(node)
197
197
  uris = []
198
- ancestors(node).inject(RDF::URI("info:fedora/#{self.pid}/#{self.dsid}")) {|m,a| (uris << m/a).last}
198
+ ancestors(node).inject(RDF::URI("info:fedora/#{self.pid}/#{self.dsid}")) {|m,a| (uris << m + "/#{a}").last}
199
199
  uris
200
200
  end
201
201
  def proxy_uri_for(node)
202
202
  # uri = segments.inject(base_uri) {|m,a| m/a}
203
- ancestors(node).inject(RDF::URI("info:fedora/#{self.pid}/#{self.dsid}")) {|m,a| m/a}
203
+ ancestors(node).inject(RDF::URI("info:fedora/#{self.pid}/#{self.dsid}")) {|m,a| m + "/#{a}"}
204
204
  end
205
205
  end
206
206
  end
@@ -1,6 +1,7 @@
1
1
  <?xml version='1.0' encoding='UTF-8'?>
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
+ <identifier type='CLIO'>12381225</identifier>
4
5
  <titleInfo>
5
6
  <nonSort>The </nonSort>
6
7
  <title>Manuscript, unidentified</title>
@@ -23,6 +24,7 @@
23
24
  <title>Collection Facet Normalization
24
25
  Test</title>
25
26
  </titleInfo>
27
+ <identifier type="CLIO">4080189</identifier>
26
28
  </relatedItem>
27
29
  <relatedItem type='host' displayLabel='Project'>
28
30
  <titleInfo>
@@ -7,4 +7,7 @@
7
7
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0703r" />
8
8
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0703v" />
9
9
  </div>
10
+ <mets:div ORDER="2" LABEL="Leaf3">
11
+ <mets:div ORDER="1" LABEL="recto:verso" CONTENTIDS="rbml_css_0704rv" />
12
+ </mets:div>
10
13
  </mets:structMap>
@@ -2,13 +2,13 @@
2
2
  <mets:div ORDER="1" LABEL="Leaf1">
3
3
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0701r" />
4
4
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0701v" />
5
- </div>
5
+ </mets:div>
6
6
  <mets:div ORDER="2" LABEL="Leaf2">
7
7
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0704r" />
8
8
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0704v" />
9
- </div>
9
+ </mets:div>
10
10
  <mets:div ORDER="2" LABEL="Leaf3">
11
11
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0705r" />
12
12
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0705v" />
13
- </div>
13
+ </mets:div>
14
14
  </mets:structMap>
@@ -4,14 +4,16 @@
4
4
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0701v" />
5
5
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0702r" />
6
6
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0702v" />
7
- </div>
7
+ </mets:div>
8
8
  <mets:div ORDER="2" LABEL="Leaf2">
9
9
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0703r" />
10
10
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0703v" />
11
11
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0704r" />
12
12
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0704v" />
13
- </div>
13
+ </mets:div>
14
14
  <mets:div ORDER="2" LABEL="Leaf3">
15
+ <mets:div ORDER="1" LABEL="recto:verso" CONTENTIDS="rbml_css_0704rv" />
15
16
  <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0705r" />
16
17
  <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0705v" />
17
- </div>
18
+ </mets:div>
19
+ </mets:structMap>
@@ -11,7 +11,6 @@ module Om
11
11
  :xmlns=>"http://www.loc.gov/mods/v3",
12
12
  :schema=>"http://www.loc.gov/standards/mods/v3/mods-3-4.xsd")
13
13
  t.identifier(:path=>"identifier", :attributes=>{:type=>"local"}, :data_type=>:symbol)
14
- t.clio(:path=>"identifier", :attributes=>{:type=>"CLIO"}, :data_type=>:symbol)
15
14
  t.title_info(:path=>"titleInfo", :index_as=>[:not_searchable]) {
16
15
  t.main_title(:path=>"title", :index_as=>[:not_searchable])
17
16
  }
@@ -112,4 +111,4 @@ module Om
112
111
  end
113
112
  end
114
113
  end
115
- end
114
+ end
@@ -115,6 +115,12 @@ module Cul::Hydra::Solrizer
115
115
  end
116
116
  end
117
117
 
118
+ def clio_ids(node=mods)
119
+ node.xpath('./mods:identifier[@type="CLIO"]', MODS_NS).collect do |t|
120
+ ModsFieldable.normalize(t.text)
121
+ end
122
+ end
123
+
118
124
  def names(role_authority=nil, role=nil)
119
125
  # get all the name nodes
120
126
  # keep all child text except the role terms
@@ -387,6 +393,7 @@ module Cul::Hydra::Solrizer
387
393
  solr_doc["title_ssm"] = titles
388
394
  solr_doc["alternative_title_ssm"] = alternative_titles
389
395
  solr_doc["all_text_teim"] += solr_doc["alternative_title_ssm"]
396
+ solr_doc["clio_ssim"] = clio_ids
390
397
  solr_doc["lib_collection_sim"] = collections
391
398
  solr_doc["lib_name_sim"] = names
392
399
  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.4.13'
3
+ VERSION = '1.4.14'
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.12'
3
+ VERSION = '1.4.13'
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.13
4
+ version: 1.4.14
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-01-16 00:00:00.000000000 Z
12
+ date: 2018-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight