mods_display 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mods_display/configuration.rb +2 -6
- data/lib/mods_display/fields/name.rb +0 -7
- data/lib/mods_display/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: fb219cbcafb42b00a015bb20fea661cf8a611ea0
|
4
|
+
data.tar.gz: c1890ddae8b1b70ecbf78dd038177302d1f07984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da361849ae26f9589712d5baad5be6e2efb58d86075425abe2e305fc6954ac7f61a7b0b2d8ce34bf2661503680cc287af66ccd39da44651a9fda9033cea3306
|
7
|
+
data.tar.gz: 2ca0bb8679a66f76fd67b80c1a1c8bb39a6ad35280dd1fcca382cb8f38800521d42669b5694c7aae7da4ca9d75dc90d5087d2241db72ef5523b5218844584b29
|
@@ -17,8 +17,8 @@ class ModsDisplay::Configuration
|
|
17
17
|
@name ||= ModsDisplay::Configuration::Name.new(&name || Proc.new{})
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
21
|
-
@type_of_resource ||= ModsDisplay::Configuration::Base.new(&
|
20
|
+
def resource_type &resource_type
|
21
|
+
@type_of_resource ||= ModsDisplay::Configuration::Base.new(&resource_type || Proc.new{})
|
22
22
|
end
|
23
23
|
|
24
24
|
def genre &genre
|
@@ -69,10 +69,6 @@ class ModsDisplay::Configuration
|
|
69
69
|
@collection ||= ModsDisplay::Configuration::Base.new(&collection || Proc.new{})
|
70
70
|
end
|
71
71
|
|
72
|
-
def related_location &related_location
|
73
|
-
@related_location ||= ModsDisplay::Configuration::Base.new(&related_location || Proc.new{})
|
74
|
-
end
|
75
|
-
|
76
72
|
def related_item &related_item
|
77
73
|
@related_item ||= ModsDisplay::Configuration::RelatedItem.new(&related_item || Proc.new{})
|
78
74
|
end
|
@@ -142,13 +142,6 @@ class ModsDisplay::Name < ModsDisplay::Field
|
|
142
142
|
term.attributes["type"].value == "text"
|
143
143
|
end
|
144
144
|
end
|
145
|
-
|
146
|
-
def name_labels
|
147
|
-
{"personal" => "Author/Creator",
|
148
|
-
"corporate" => "Corporate author",
|
149
|
-
"conference" => "Meeting",
|
150
|
-
"family" => "Family author"}
|
151
|
-
end
|
152
145
|
|
153
146
|
class Person
|
154
147
|
attr_accessor :name, :roles
|
data/lib/mods_display/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mods_display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessie Keck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stanford-mods
|