app/views/manifestations/_show.mods.builder in enju_biblio-0.1.0.pre42 vs app/views/manifestations/_show.mods.builder in enju_biblio-0.1.0.pre43

- old
+ new

@@ -3,11 +3,11 @@ } xml.titleInfo('type' => 'alternative'){ xml.title manifestation.title_alternative } manifestation.creators.readable_by(current_user).each do |creator| - case creator.patron_type.name + case creator.agent_type.name when "Person" xml.name('type' => 'personal'){ xml.namePart creator.full_name xml.namePart creator.date if creator.date xml.role do @@ -29,11 +29,11 @@ end } end end manifestation.contributors.readable_by(current_user).each do |contributor| - case contributor.patron_type.name + case contributor.agent_type.name when "Person" xml.name('type' => 'personal'){ xml.namePart contributor.full_name xml.namePart contributor.date if contributor.date } @@ -47,11 +47,11 @@ } end end xml.typeOfResource manifestation.carrier_type.mods_type xml.originInfo{ - manifestation.publishers.readable_by(current_user).each do |patron| - xml.publisher patron.full_name + manifestation.publishers.readable_by(current_user).each do |agent| + xml.publisher agent.full_name end xml.dateIssued manifestation.date_of_publication xml.frequency manifestation.frequency.name } xml.language{