Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The zotero logic was a bit off.

  • Loading branch information...
commit 7f4606039b55e653f3b1e012e089007f172c2423 1 parent 281500d
mpc3c authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/application_helper.rb
View
8 lib/application_helper.rb
@@ -156,15 +156,15 @@ def zotero_span(document,format)
if format == 'journal'
journal_title = get_values_from_datastream(document,"descMetadata", [:journal, :title_info, :main_title]).first rescue ""
- issue = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :level]).first rescue ""
- volume = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :volume]).first rescue ""
+ issue = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :level, :number]).first rescue ""
+ volume = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :volume, :number]).first rescue ""
start_page = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :start_page]).first rescue ""
end_page = get_values_from_datastream(document,"descMetadata", [:journal, :issue, :end_page] ).first rescue ""
issn = get_values_from_datastream(document, "descMetadata", [:journal, :issn]).first rescue ""
else
- publication_date = get_values_from_datastream(document, "descMetadata", [:book, :issue, :publication_date]).first rescue ""
- isbn = get_values_from_datastream(document, "descMetadata", [:book, :isbn]).first rescue ""
+ publication_date = get_values_from_datastream(document, "descMetadata", [:origin_info, :date_issued]).first rescue ""
+ isbn = get_values_from_datastream(document, "descMetadata", [:isbn]).first rescue ""
end
format.is_a?(Array) ? format = format[0].downcase.strip : format = format.downcase.strip
Please sign in to comment.
Something went wrong with that request. Please try again.