dor-services 5.26.2 → 5.26.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362269d6c8828abdc43dfe8a9ffcad2228b65581
|
4
|
+
data.tar.gz: 06e89fab00ab6ab5b4618f613527246a5dc8cf0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e97e1bf8573f102a0d0269339f60bae704d26a6dcae15b761f025e50d34a6b5314012e3e815d2506e75ebbdb25cbd811415fd36dc489a650894ba356d90a3f
|
7
|
+
data.tar.gz: 8ea7851af9a57d440141c51c0385e799b9e484dbee0f63fa61ace2b2511368733abacd2ffdd78f16623169f152e0e496f7c7e2489fcc3db8460ac485c5b49c01
|
@@ -15,11 +15,12 @@ class SimpleDublinCoreDs < ActiveFedora::OmDatastream
|
|
15
15
|
|
16
16
|
def self.xml_template
|
17
17
|
builder = Nokogiri::XML::Builder.new do |xml|
|
18
|
-
xml
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
xml['oai_dc'].dc(
|
19
|
+
'xmlns:oai_dc' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
|
20
|
+
'xmlns:dc' => 'http://purl.org/dc/elements/1.1/',
|
21
|
+
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
|
22
|
+
'xsi:schemaLocation' => 'http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
|
23
|
+
)
|
23
24
|
end
|
24
25
|
|
25
26
|
builder.doc
|
@@ -47,7 +47,7 @@ module Dor
|
|
47
47
|
return unless thumb_image
|
48
48
|
thumb_druid=thumb_image.split('/').first # the druid (before the first slash)
|
49
49
|
thumb_filename=thumb_image.split(/#{pid_regex}[\/]/).last # everything after the druid
|
50
|
-
"#{thumb_druid}%2F#{
|
50
|
+
"#{thumb_druid}%2F#{ERB::Util.url_encode(thumb_filename)}"
|
51
51
|
end
|
52
52
|
|
53
53
|
# Return a full qualified thumbnail image URL if the thumb is computable
|
data/lib/dor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.26.
|
4
|
+
version: 5.26.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-03-
|
17
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|