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: 91ea97e67bf6ce3ae1992ac6c9d8cb6d3a9382fc
4
- data.tar.gz: 173d380e4781c45fed253357148581cff442fe89
3
+ metadata.gz: 362269d6c8828abdc43dfe8a9ffcad2228b65581
4
+ data.tar.gz: 06e89fab00ab6ab5b4618f613527246a5dc8cf0e
5
5
  SHA512:
6
- metadata.gz: df1cafcecd2945f1c834ee0ce0ef306ad73ecbb414cb168bf2c1c74938867230b54c2b773e3f2b20fc9c06e5910a6def74676a23982d521a04740c4fd8c5bfa6
7
- data.tar.gz: 6397e97f65f54111621d4b7ea2fdf83a74ee84581070f6b7a04ba5604c080d4a690d539f6bae5904ee76947e48f6b8987bca2b63a2bcb0c68f6db6fa306dd608
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.dc(:xmlns => 'http://www.openarchives.org/OAI/2.0/oai_dc/', 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/') {
19
- xml['dc'].title
20
- xml['dc'].creator
21
- xml['dc'].identifier
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#{URI.escape(thumb_filename)}"
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
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.26.2'.freeze
2
+ VERSION = '5.26.3'.freeze
3
3
  end
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.2
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-01 00:00:00.000000000 Z
17
+ date: 2018-03-13 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora