cul_hydra 1.3.10 → 1.3.11
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/app/models/generic_resource.rb +20 -0
- data/config/locales/ldpd_hydra.en.yml +2 -4
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +1 -1
- data/lib/tasks/cul_hydra_dev.rake +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 687ff9012903d9e29e55c2b15c816bd896156a14
|
|
4
|
+
data.tar.gz: 61f739da28a33b43cd025a7aec179285bef6735a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 174ffbf9d4fc63b6386fe3424b6bb794acdefedcebab328c17a3344cd10e07b941f9f2407a31aa01e48f24e292792d2daf00667e7e4553fea54b5f1b352981f3
|
|
7
|
+
data.tar.gz: c0fa12f53db47e8517c182912a43c39260807a77322d02ac586863fea5f4ad65d2d11741d91dae07c6d4b0e4db1acd742841f4ce72f847acf7d8b77cd271413b
|
|
@@ -63,6 +63,9 @@ class GenericResource < ::ActiveFedora::Base
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
if (service_ds = self.service_datastream)
|
|
67
|
+
solr_doc['service_dslocation_ss'] = service_ds.dsLocation
|
|
68
|
+
end
|
|
66
69
|
solr_doc["fulltext_tesim"] = []
|
|
67
70
|
unless self.datastreams["fulltext"].nil?
|
|
68
71
|
solr_doc["fulltext_tesim"].concat(solr_doc["title_display_ssm"]) unless solr_doc["title_display_ssm"].nil? or solr_doc["title_display_ssm"].length == 0
|
|
@@ -142,6 +145,23 @@ class GenericResource < ::ActiveFedora::Base
|
|
|
142
145
|
end
|
|
143
146
|
end
|
|
144
147
|
|
|
148
|
+
def service_datastream
|
|
149
|
+
# we have to 'manually' query the graph because rels_int doesn't support subject pattern matching
|
|
150
|
+
args = [:s, rels_int.to_predicate(:format_of), RDF::URI.new("#{internal_uri}/content")]
|
|
151
|
+
query = RDF::Query.new { |q| q << args }
|
|
152
|
+
candidates = query.execute(rels_int.graph).map(&:to_hash).map do |hash|
|
|
153
|
+
hash[:s]
|
|
154
|
+
end
|
|
155
|
+
args = [:s, rels_int.to_predicate(:rdf_type), RDF::URI.new("http://pcdm.org/use#ServiceFile")]
|
|
156
|
+
query = RDF::Query.new { |q| q << args }
|
|
157
|
+
candidates &= query.execute(rels_int.graph).map(&:to_hash).map do |hash|
|
|
158
|
+
hash[:s]
|
|
159
|
+
end
|
|
160
|
+
candidate_dsid = candidates.first && candidates.first.to_s.split('/')[-1]
|
|
161
|
+
return datastreams[candidate_dsid] if datastreams.keys.include? candidate_dsid
|
|
162
|
+
return nil
|
|
163
|
+
end
|
|
164
|
+
|
|
145
165
|
def with_ds_resource(ds_id, fedora_content_filesystem_mounted=false, &block)
|
|
146
166
|
|
|
147
167
|
ds = self.datastreams[ds_id]
|
|
@@ -25,7 +25,7 @@ en:
|
|
|
25
25
|
"Butler 75: Butler Library's 75th anniversary, 1934-2009" : "Butler 75"
|
|
26
26
|
"Chamber of Commerce of New York" : "Chamber of Commerce"
|
|
27
27
|
"Charles A. Platt's Italian Garden Photographs" : "Platt's Italian Garden Photographs"
|
|
28
|
-
"Children's Drawings of the Spanish Civil War
|
|
28
|
+
"Children's Drawings of the Spanish Civil War" : 'Spanish Civil War'
|
|
29
29
|
'Chinese paper gods' : 'Chinese Paper Gods'
|
|
30
30
|
'Community Service Society Photographs' : 'Community Service Society'
|
|
31
31
|
"Core Curriculum: Contemporary Civilization" : "Core Curriculum: Contemporary Civilization"
|
|
@@ -50,7 +50,6 @@ en:
|
|
|
50
50
|
"Reading of Books and the Reading of Literature" : "Reading of Books"
|
|
51
51
|
'Russian Imperial Corps of Pages' : 'Russian Corps of Pages'
|
|
52
52
|
'The Papers of John Jay' : 'Jay Papers'
|
|
53
|
-
"The People in the Books: Hebraica and Judaica Manuscripts from Columbia University Libraries" : "People in the Books"
|
|
54
53
|
"Type to Print: The Book & The Type Specimen Book" : "Type to Print"
|
|
55
54
|
"Varsity Show: a Columbia Tradition" : "Varsity Show: a Columbia Tradition"
|
|
56
55
|
long:
|
|
@@ -95,7 +94,7 @@ en:
|
|
|
95
94
|
"Butler 75: Butler Library's 75th anniversary, 1934-2009" : "Butler 75: Butler Library's 75th anniversary, 1934-2009"
|
|
96
95
|
"Chamber of Commerce of New York" : "Chamber of Commerce of New York"
|
|
97
96
|
"Charles A. Platt's Italian Garden Photographs" : "Charles A. Platt's Italian Garden Photographs"
|
|
98
|
-
"Children's Drawings of the Spanish Civil War
|
|
97
|
+
"Children's Drawings of the Spanish Civil War" : "Children's Drawings of the Spanish Civil War"
|
|
99
98
|
'Chinese paper gods' : 'Chinese Paper Gods'
|
|
100
99
|
'Community Service Society Photographs' : 'Community Service Society Photographs'
|
|
101
100
|
"Core Curriculum: Contemporary Civilization" : "Core Curriculum: Contemporary Civilization"
|
|
@@ -120,6 +119,5 @@ en:
|
|
|
120
119
|
"Reading of Books and the Reading of Literature" : "Reading of Books and the Reading of Literature"
|
|
121
120
|
'Russian Imperial Corps of Pages' : 'Russian Imperial Corps of Pages'
|
|
122
121
|
'The Papers of John Jay' : 'Papers of John Jay'
|
|
123
|
-
"The People in the Books: Hebraica and Judaica Manuscripts from Columbia University Libraries" : "People in the Books: Hebraica and Judaica Manuscripts from Columbia University Libraries"
|
|
124
122
|
"Type to Print: The Book & The Type Specimen Book" : "Type to Print: The Book & The Type Specimen Book"
|
|
125
123
|
"Varsity Show: a Columbia Tradition" : "Varsity Show"
|
data/lib/cul_hydra/version.rb
CHANGED
data/lib/cul_hydra/version.rb~
CHANGED
|
@@ -34,6 +34,7 @@ namespace :cul_hydra do
|
|
|
34
34
|
ENV['environment'] = "test"
|
|
35
35
|
#Rake::Task["active_fedora:configure_jetty"].invoke
|
|
36
36
|
jetty_params = Jettywrapper.load_config
|
|
37
|
+
Rake::Task["jetty:clean"].invoke
|
|
37
38
|
error = Jettywrapper.wrap(jetty_params) do
|
|
38
39
|
Rake::Task["cul_hydra:cmodel:reload_all"].invoke
|
|
39
40
|
Rake::Task['cul_hydra:coverage'].invoke
|
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.3.
|
|
4
|
+
version: 1.3.11
|
|
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: 2016-
|
|
12
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: blacklight
|
|
@@ -179,6 +179,20 @@ dependencies:
|
|
|
179
179
|
- - '='
|
|
180
180
|
- !ruby/object:Gem::Version
|
|
181
181
|
version: 1.1.4
|
|
182
|
+
- !ruby/object:Gem::Dependency
|
|
183
|
+
name: json
|
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
|
185
|
+
requirements:
|
|
186
|
+
- - ">="
|
|
187
|
+
- !ruby/object:Gem::Version
|
|
188
|
+
version: 1.8.3
|
|
189
|
+
type: :runtime
|
|
190
|
+
prerelease: false
|
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
192
|
+
requirements:
|
|
193
|
+
- - ">="
|
|
194
|
+
- !ruby/object:Gem::Version
|
|
195
|
+
version: 1.8.3
|
|
182
196
|
- !ruby/object:Gem::Dependency
|
|
183
197
|
name: cancancan
|
|
184
198
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -542,7 +556,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
542
556
|
requirements:
|
|
543
557
|
- - ">="
|
|
544
558
|
- !ruby/object:Gem::Version
|
|
545
|
-
version: '2.
|
|
559
|
+
version: '2.2'
|
|
546
560
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
547
561
|
requirements:
|
|
548
562
|
- - ">="
|
|
@@ -550,7 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
550
564
|
version: '0'
|
|
551
565
|
requirements: []
|
|
552
566
|
rubyforge_project:
|
|
553
|
-
rubygems_version: 2.
|
|
567
|
+
rubygems_version: 2.5.1
|
|
554
568
|
signing_key:
|
|
555
569
|
specification_version: 4
|
|
556
570
|
summary: ActiveFedora, OM, and Solrizer implementations for CUL repository apps
|