cul_hydra 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/cul/hydra/models/common.rb +1 -0
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/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: dc86af65e09c7f445c98132040488e30f9fbc0ec
|
4
|
+
data.tar.gz: 043b1c113b906fd138bebe336816554c9ddbbcfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3faff2a87534e94607e17f32a19cbffc98ee3fa97a511a9d563192d2348bc438788546b8c18603f8ff4c939f902961c694e8ad1879e54c1b27b49ce9e34cc6fe
|
7
|
+
data.tar.gz: fa795f39b498b43854f5f77edbd74bf8761ca28029d34f9c6026067a90fadc8cb81ff522283a5ed52583231ce375bfe98c77975a34151f8e046020b39a2ab8df
|
@@ -167,6 +167,7 @@ module Cul::Hydra::Models::Common
|
|
167
167
|
# Try to do a PID lookup first
|
168
168
|
unless force_use_of_non_pid_identifier
|
169
169
|
content_ids.each do |content_id|
|
170
|
+
next unless content_id.match(/^([A-Za-z0-9]|-|\.)+:(([A-Za-z0-9])|-|\.|~|_|(%[0-9A-F]{2}))+$/) # Don't do a lookup on identifiers that can't possibly be valid PID (otherwise we'd encounter an error)
|
170
171
|
child_obj ||= ActiveFedora::Base.exists?(content_id) ? ActiveFedora::Base.find(content_id) : nil
|
171
172
|
end
|
172
173
|
end
|
data/lib/cul_hydra/version.rb
CHANGED
data/lib/cul_hydra/version.rb~
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Armintor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|