refworks 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/refworks/reference.rb +3 -4
- data/lib/refworks/version.rb +1 -1
- metadata +1 -1
data/lib/refworks/reference.rb
CHANGED
@@ -45,9 +45,8 @@ class Reference
|
|
45
45
|
# to a Ruby data structure. Which one it produces depends upon how
|
46
46
|
# many authors there are. All values are converted to Arrays, even one item
|
47
47
|
# values, for consistency. I do this for any field which can have more than one value.
|
48
|
-
# To accomplish this, I
|
49
|
-
#
|
50
|
-
# the a1-a6 fields plus the k1 field.
|
48
|
+
# To accomplish this, I provide custom setters instead of the auto-generated setters
|
49
|
+
# that are created via attr_accessor. This affects a1-a6 plus k1 attributes.
|
51
50
|
@a1 = self.a1=(ref[:a1])
|
52
51
|
|
53
52
|
@t1 = ref[:t1]
|
@@ -193,7 +192,7 @@ class Reference
|
|
193
192
|
@xml << "<is>#{is}</is>" if @is
|
194
193
|
@xml << "<sp>#{sp}</sp>" if @sp
|
195
194
|
@xml << "<op>#{op}</op>" if @op
|
196
|
-
k1.each {|k| @xml << "<k1>#{
|
195
|
+
k1.each {|k| @xml << "<k1>#{k}</k1>"} if @k1
|
197
196
|
@xml << "<ab>#{ab}</ab>" if @ab
|
198
197
|
@xml << "<no>#{no}</no>" if @no
|
199
198
|
a2.each {|a| @xml << "<a2>#{a}</a2>"} if @a2
|
data/lib/refworks/version.rb
CHANGED