Sha256: b63c65e672c8b52284759d48f5e919431eb42fbeb994fe99420a9c22d3fe5650

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

module BlacklightMarcHelper

  # puts together a collection of documents into one refworks export string
  def render_refworks_texts(documents)
    val = ''
    documents.each do |doc|
      if doc.exports_as? :refworks_marc_txt
        val += doc.export_as(:refworks_marc_txt) + "\n"
      end
    end
    val
  end

  # puts together a collection of documents into one endnote export string
  def render_endnote_texts(documents)
    val = ''
    documents.each do |doc|
      if doc.exports_as? :endnote
        val += doc.export_as(:endnote) + "\n"
      end
    end
    val
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-marc-5.10.0 app/helpers/blacklight_marc_helper.rb
blacklight-marc-5.5.0 app/helpers/blacklight_marc_helper.rb
blacklight-marc-5.4.0 app/helpers/blacklight_marc_helper.rb