app/models/item.rb in enju_biblio-0.3.12 vs app/models/item.rb in enju_biblio-0.3.13

- old
+ new

@@ -64,26 +64,26 @@ attr_accessor :library_id paginates_per 10 def title - manifestation.try(:original_title) + manifestation&.original_title end def creator - manifestation.try(:creator) + manifestation&.creator end def contributor - manifestation.try(:contributor) + manifestation&.contributor end def publisher - manifestation.try(:publisher) + manifestation&.publisher end def owned(agent) - owns.where(agent_id: agent.id).first + owns.find_by(agent_id: agent.id) end def manifestation_url Addressable::URI.parse("#{LibraryGroup.site_config.url}manifestations/#{self.manifestation.id}").normalize.to_s if self.manifestation end