dor-services 5.21.4 → 5.22.0

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: 543271966bb9f8422c24903fdaf4371e21dccce3
4
- data.tar.gz: 05d64da4e29a1ce84fd5e92c24750a4cda3ac60c
3
+ metadata.gz: bde408e6b6c497dc4f8277d3add306ff5d48b7bd
4
+ data.tar.gz: cfb7c3ed58070a318bd0a7b7b3a4fd2ab3173b0d
5
5
  SHA512:
6
- metadata.gz: 908f5c9dfd65497feb1fb1a5c41aae5662d739c1ed2c937a826967473bb7094cd9ba6aee09d3f3ac7ce1cd43ac6c6d1b53e247297335b39e21a9361f7eec3a3c
7
- data.tar.gz: 664309d4a8e9732515d078fbd9a5968a5b59d1fa39eced28ca4a099b0c73c04b7b5fe10c4d42e827cd66a6620d16328f2ae6af8c44845ccc4349221469ba5a09
6
+ metadata.gz: f2cd0466d2c7d1f956f833b196b38b4856538b0b9b9fd878d3a5ad34e4f7c360d964f9eecbaa4291f54451b77510716316237da7a6bfa988ce30f2f0d8991497
7
+ data.tar.gz: ae929d047ad3be11175451913b8f4b08120a20dbaacbb25ade5014593701b3ab2e9cb100a01aaad019f0f1841bd3464347a94de71f19487d68748026a57f3a36
@@ -2,6 +2,13 @@ module Dor
2
2
  class DescMetadataDS < ActiveFedora::OmDatastream
3
3
 
4
4
  MODS_NS = 'http://www.loc.gov/mods/v3'.freeze
5
+ MODS_HEADER_CONFIG = {
6
+ 'xmlns' => MODS_NS,
7
+ 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
8
+ version: '3.6',
9
+ 'xsi:schemaLocation' => 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-6.xsd'
10
+ }.freeze
11
+
5
12
  set_terminology do |t|
6
13
  t.root :path => 'mods', :xmlns => MODS_NS, :index_as => [:not_searchable]
7
14
  t.originInfo :index_as => [:not_searchable] do
@@ -37,9 +44,7 @@ module Dor
37
44
 
38
45
  def self.xml_template
39
46
  Nokogiri::XML::Builder.new do |xml|
40
- xml.mods(
41
- 'xmlns' => MODS_NS, 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', :version => '3.3',
42
- 'xsi:schemaLocation' => 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd') {
47
+ xml.mods(MODS_HEADER_CONFIG) {
43
48
  xml.titleInfo {
44
49
  xml.title
45
50
  }
@@ -123,9 +123,7 @@ module Dor
123
123
  end
124
124
  label = self.label
125
125
  builder = Nokogiri::XML::Builder.new { |xml|
126
- xml.mods(
127
- 'xmlns' => 'http://www.loc.gov/mods/v3', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', :version => '3.3',
128
- 'xsi:schemaLocation' => 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd') {
126
+ xml.mods(Dor::DescMetadataDS::MODS_HEADER_CONFIG) {
129
127
  xml.titleInfo {
130
128
  xml.title label
131
129
  }
@@ -114,9 +114,7 @@ module Dor
114
114
  if metadata_source == 'label'
115
115
  ds = new_item.build_datastream('descMetadata')
116
116
  builder = Nokogiri::XML::Builder.new { |xml|
117
- xml.mods(
118
- 'xmlns' => 'http://www.loc.gov/mods/v3', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', :version => '3.3',
119
- 'xsi:schemaLocation' => 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd') {
117
+ xml.mods(Dor::DescMetadataDS::MODS_HEADER_CONFIG) {
120
118
  xml.titleInfo {
121
119
  xml.title label
122
120
  }
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.21.4'.freeze
2
+ VERSION = '5.22.0'.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.21.4
4
+ version: 5.22.0
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: 2017-02-15 00:00:00.000000000 Z
17
+ date: 2017-02-22 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora