dor-services 4.6.2 → 4.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIC3zCCAccCCQC3NmcDpol4lzANBgkqhkiG9w0BAQUFADBtMQswCQYDVQQGEwJV
3
+ UzETMBEGA1UECBMKQ2FsaWZvcm5pYTERMA8GA1UEBxMIU3RhbmZvcmQxETAPBgNV
4
+ BAoTCFN0YW5mb3JkMQ0wCwYDVQQLEwRETFNTMRQwEgYDVQQDEwtMeWJlclRlc3RD
5
+ QTAeFw0xMTAyMjMxNjUzNTlaFw0yMTAyMjAxNjUzNTlaMHoxCzAJBgNVBAYTAlVT
6
+ MRMwEQYDVQQIEwpDYWxpZm9ybmlhMREwDwYDVQQHEwhTdGFuZm9yZDEcMBoGA1UE
7
+ ChMTU3RhbmZvcmQgVW5pdmVyc2l0eTENMAsGA1UECxMERExTUzEWMBQGA1UEAxMN
8
+ ZGxzcy1kZXYtdGVzdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAl70WWl1c
9
+ eC50SwKDCr+vhNFH9N+YdTzh3rIRVKzJFPKvNqkye0jwq9MApyEtQzdyk3eDInlK
10
+ dOwKX0XpoLnzm9SgBIY714ojYKZMRPPaIc2k5D7mYgyAUYyWLTJnO93KH3PhMbZY
11
+ 79BrNIMaYu7FGu/SVqQB44j9VnlG36mpmUUCAwEAATANBgkqhkiG9w0BAQUFAAOC
12
+ AQEAlAn5InW1y7GCH/I4t9FgL3nkaOkaO9EzdU8EGtQpQ3YuNqy7IWfqFUm0r06w
13
+ C9CkvEeaZe2GhzQ0ppKXFGI/oWOxETQhgr50HUlXp6hb+zvgrgD1daKbeBCseYF3
14
+ yni37BoPrmQbfA+kmrskRTPpxNnTyQqXCLF2IY+1oAsLC9LyZ3wit/x6oTHwFB6a
15
+ ME/9gJ49UkXaHqvfXy76/qWCBjDZOgMlR0O2y4gi1NPR4+EvEuxcyaXqu9wvAnm2
16
+ z+UPjqi8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cc4ycHNb6S3A7MJO2f8oBtkXcjnBYI4EUOAjHmwmNb3FV/3Ax6W
21
+ c5TXoSXnOh2CU8twIWwcufolAoGATqnFf4uckZVu05rUbNIAYcz6NoZmck5EoVSm
22
+ HS3Asqggp6yA9djtrCfNC5icr4VsaLfku5nKJQ4t4bLxkGhNmBCejwSA/S09+x9O
23
+ Wu0JX3zR3y+IMczQ+tRGmNiU5qXhCJ4fbQHSeGqIN3Io7h/RR6E/QlJU59RrRG/a
24
+ SjqAV+ECgYEA2mA5VFK3jECnLde+biEaXidIOuBMcqaP0VG6sBwz2wTGSTBE1WkG
25
+ 6prCD0McWVAgDTm3MMKxeuMaoW5eEi83+G+CywLaTBpc8Hz7qgRhBpKhRirCfHMW
26
+ EfQV5k32vEGoSI+eG8zcGb9mwDeb/EWXAMGXrx2YuYFu7txtwC2mZXc=
27
+ -----END RSA PRIVATE KEY-----
@@ -90,20 +90,20 @@ module Dor
90
90
  end
91
91
 
92
92
  # returns the desc metadata a relatedItem with information about the collection this object belongs to for use in published mods and mods to DC conversion
93
- # @param [Nokogiri::XML::Document] doc Document representing the descriptiveMetadata of the object
93
+ # @param [Nokogiri::XML::Document] doc A copy of the descriptiveMetadata of the object
94
94
  # @note this method modifies the passed in doc
95
95
  def add_collection_reference(doc)
96
- if not self.methods.include? :public_relationships
97
- return
96
+ return unless self.methods.include? :public_relationships
97
+ collections=self.public_relationships.search('//rdf:RDF/rdf:Description/fedora:isMemberOfCollection',
98
+ 'fedora' => 'info:fedora/fedora-system:def/relations-external#',
99
+ 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' )
100
+ return if collections.empty?
101
+
102
+ # Remove any existing collections in the descMetadata
103
+ doc.search('/mods:mods/mods:relatedItem[@type="host"]/mods:typeOfResource[@collection=\'yes\']', 'mods' => 'http://www.loc.gov/mods/v3').each do |node|
104
+ node.parent.remove
98
105
  end
99
- relationships=self.public_relationships
100
106
 
101
- collections=relationships.search('//rdf:RDF/rdf:Description/fedora:isMemberOfCollection','fedora' => 'info:fedora/fedora-system:def/relations-external#', 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' )
102
- #if there is an existing relatedItem node with type=host and a child typeOfResource @collection=yes dont add anything
103
- existing_node=doc.search('//mods:relatedItem/mods:typeOfResource[@collection=\'yes\']', 'mods' => 'http://www.loc.gov/mods/v3')
104
- if(existing_node.length > 0)
105
- return
106
- end
107
107
  collections.each do |collection_node|
108
108
  druid=collection_node['rdf:resource']
109
109
  druid=druid.gsub('info:fedora/','')
@@ -224,6 +224,6 @@ module Dor
224
224
  end
225
225
  end
226
226
 
227
-
227
+
228
228
  end
229
229
 
@@ -13,7 +13,7 @@ module Dor
13
13
  end
14
14
 
15
15
  def build_rightsMetadata_datastream(ds)
16
- content_ds = self.admin_policy_object.first.datastreams['defaultObjectRights']
16
+ content_ds = self.admin_policy_object.datastreams['defaultObjectRights']
17
17
  ds.dsLabel = 'Rights Metadata'
18
18
  ds.ng_xml = content_ds.ng_xml.clone
19
19
  ds.content = ds.ng_xml.to_xml
@@ -22,6 +22,7 @@ module Dor
22
22
  # @param [Array<Array<String>>] file_map an array of two string arrays. Each inner array represents old-file/new-file mappings. First string is the old file name, second string is the new file name. e.g:
23
23
  # [ ['src1.file', 'dest1.file'], ['src2.file', 'dest2.file'] ]
24
24
  def self.rename_in_stacks(id, file_map)
25
+ return if file_map.nil? or file_map.empty?
25
26
  dr = DruidTools::StacksDruid.new id, Config.stacks.local_stacks_root
26
27
  content_dir = dr.find_filelist_parent('content', file_map.first.first)
27
28
  file_map.each do |src, dest|
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '4.6.2'
2
+ VERSION = '4.6.3'
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: 4.6.2
4
+ version: 4.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-03-01 00:00:00.000000000 Z
16
+ date: 2014-03-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active-fedora
@@ -610,7 +610,11 @@ files:
610
610
  - lib/gsearch/schema.xml
611
611
  - lib/tasks/dor.rake
612
612
  - lib/tasks/rdoc.rake
613
+ - config/certs/dlss-dev-test.crt
614
+ - config/certs/dlss-dev-test.key
613
615
  - config/certs/README
616
+ - config/certs/robots-dor-dev.crt
617
+ - config/certs/robots-dor-dev.key
614
618
  - config/config_defaults.yml
615
619
  - config/dev_console_env.rb
616
620
  - config/dev_console_env.rb.example