lib/relaton/render/parse.rb in metanorma-iho-0.6.8.1 vs lib/relaton/render/parse.rb in metanorma-iho-0.6.9
- old
+ new
@@ -1,21 +1,8 @@
module Relaton
module Render
module IHO
class Parse < ::Relaton::Render::Parse
- def standardidentifier(doc)
- out = doc.docidentifier.each_with_object([]) do |id, ret|
- ret << id.id unless standardidentifier_exclude1.include? id.type
- end
- return out unless out.empty?
-
- super
- end
-
- def standardidentifier_exclude1
- %w(metanorma metanorma-ordinal DOI ISSN ISBN rfc-anchor)
- end
-
def uri(doc)
uri = nil
%w(src).each do |t|
uri = doc.link.detect { |u| u.type == t } and break
end