active-fedora 5.7.0 → 5.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_fedora/nokogiri_datastream.rb +11 -0
- data/lib/active_fedora/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b46cdb4a2b08e962eb11208d25c8d1b62c20002
|
4
|
+
data.tar.gz: a2db62d6d3c49b475e8cf1dd1faf1c64bd5e2799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41953687706d6ee968dc502263d0cb3abc6fe66b32c74af20f0bf2f03d0cb8d8f8360c6684abf6938c2a8e6ef4012739038aea9ac8c1993a85436756d760008
|
7
|
+
data.tar.gz: c8ef58febdf589004777b45b83d079cce0df4beef6c35beebe4b4e7fbc50b7298535e8df56f8fc51a09744c72f83d47480027a5dd82de6b94a73d891b7c8a30a
|
@@ -112,6 +112,10 @@ module ActiveFedora
|
|
112
112
|
@datastream_content ||= Nokogiri::XML(super).to_xml {|config| config.no_declaration}.strip
|
113
113
|
end
|
114
114
|
|
115
|
+
def content
|
116
|
+
to_xml
|
117
|
+
end
|
118
|
+
|
115
119
|
def content=(new_content)
|
116
120
|
if inline?
|
117
121
|
# inline datastreams may be transformed by fedora 3, so we test for equivalence instead of equality
|
@@ -428,6 +432,13 @@ module ActiveFedora
|
|
428
432
|
def xml_loaded
|
429
433
|
instance_variable_defined? :@ng_xml
|
430
434
|
end
|
435
|
+
|
436
|
+
def reset_profile_attributes
|
437
|
+
super
|
438
|
+
if xml_loaded
|
439
|
+
@datastream_content = Nokogiri::XML(to_xml).to_xml {|config| config.no_declaration}.strip
|
440
|
+
end
|
441
|
+
end
|
431
442
|
|
432
443
|
end
|
433
444
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-fedora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.7.
|
4
|
+
version: 5.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
13
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|