diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-04-14 11:10:59 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-09 20:40:02 -0400 |
commit | 88ed8a0c1376fbe6d45059694ce31db597fde3e9 (patch) | |
tree | 4fb95449893c488b2954bf432db4997829f54284 /lib/sisu/shared_metadata.rb | |
parent | emacs sisu-mode.el, syntax highlighting match https (diff) |
ruby 2.7 fix
Diffstat (limited to 'lib/sisu/shared_metadata.rb')
-rw-r--r-- | lib/sisu/shared_metadata.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/sisu/shared_metadata.rb b/lib/sisu/shared_metadata.rb index 1e893ce9..8a57eaeb 100644 --- a/lib/sisu/shared_metadata.rb +++ b/lib/sisu/shared_metadata.rb @@ -1151,9 +1151,14 @@ WOK tag,inf=tr.prefix_b,@md.notes.prefix_b meta << meta_para(tag,inf) end - if defined? @md.classify.identifier \ - and @md.classify.identifier=~/\S+/ - tag,inf=tr.identifier,@md.classify.identifier + if defined? @md.identifier.isbn \ + and @md.identifier.isbn=~/\S+/ + tag,inf=tr.cls_isbn,@md.identifier.isbn + meta << meta_para(tag,inf) + end + if defined? @md.identifier.oclc \ + and @md.identifier.oclc=~/\S+/ + tag,inf=tr.cls_oclc,@md.identifier.oclc meta << meta_para(tag,inf) end if defined? @md.original.source \ |