lib/relaton_iso/iso_bibliography.rb in relaton-iso-1.13.0 vs lib/relaton_iso/iso_bibliography.rb in relaton-iso-1.13.1
- old
+ new
@@ -56,9 +56,11 @@
if (query_pubid.year && opts[:keep_year].nil?) || opts[:keep_year] || opts[:all_parts]
ret
else
ret.to_most_recent_reference
end
+ rescue Pubid::Core::Errors::ParseError
+ warn "[relaton-iso] (\"#{code}\") is not recognized as a standards identifier."
end
# @param query_pubid [Pubid::Iso::Identifier]
# @param pubid [Pubid::Iso::Identifier]
# @param all_parts [Boolean] match with any parts when true