Sha256: 862b09748b943bc22b9f1af5c2691595d81bac184c5457decb88d49f7875eaed
Contents?: true
Size: 423 Bytes
Versions: 15
Compression:
Stored size: 423 Bytes
Contents
# -*- encoding: utf-8 -*- module NdlBooksHelper def link_to_import_from_ndl(nbn) if nbn.blank? t('enju_ndl.not_available') else manifestation = Manifestation.where(:nbn => nbn).first unless manifestation link_to t('enju_ndl.add'), ndl_books_path(:book => {:nbn => nbn}), :method => :post else link_to t('enju_ndl.already_exists'), manifestation end end end end
Version data entries
15 entries across 15 versions & 1 rubygems