lib/stanford-mods/searchworks.rb in stanford-mods-0.0.15 vs lib/stanford-mods/searchworks.rb in stanford-mods-0.0.16
- old
+ new
@@ -75,11 +75,10 @@
end
# @return [Array<String>] values for author_corp_display
def sw_corporate_authors
val=@mods_ng_xml.plain_name.select {|n| n.type_at == 'corporate'}.map { |n| n.display_value_w_date }
- puts val.to_s
val
end
# @return [Array<String>] values for author_meeting_display
def sw_meeting_authors
@@ -327,10 +326,11 @@
formats.each do |form|
case form
when 'text'
val << 'Thesis' if genres and genres.include? 'thesis'
val << 'Book' if issuance and issuance.include? 'monographic'
- val << 'Journal / Periodical' if issuance and issuance.include? 'continuing'
+ val << 'Journal/Periodical' if issuance and issuance.include? 'continuing'
+ val << 'Journal/Periodical' if genres and genres.include? 'article'
when 'still image'
val << 'Image'
when 'mixed material'
val << 'Manuscript/Archive'
when 'moving image'