Sha256: b1d47956ebd79aee1b5cf6a4aeaf63f5bde0e795cfb11185231583300344e3f3

Contents?: true

Size: 730 Bytes

Versions: 25

Compression:

Stored size: 730 Bytes

Contents

module Exlibris
  module Primo
    module WebService
      module Request
        module DisplayFields
          # 
          # Returns a lambda that takes a Nokogiri::XML::Builder as an argument
          # and appends display fields XML to it.
          # 
          def display_fields_xml
            lambda { |xml|
              display_fields.each do |display_field|
                xml.DisplayFields display_field
              end
            }
          end
          protected :display_fields_xml

          def display_fields
            @display_fields ||= []
          end

          def add_display_field(display_field)
            display_fields << display_field
          end
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-1.0.4 lib/exlibris/primo/web_service/request/search/display_fields.rb
exlibris-primo-1.0.3 lib/exlibris/primo/web_service/request/search/display_fields.rb
exlibris-primo-1.0.2 lib/exlibris/primo/web_service/request/search/display_fields.rb
exlibris-primo-1.0.1 lib/exlibris/primo/web_service/request/search/display_fields.rb
exlibris-primo-1.0.0 lib/exlibris/primo/web_service/request/search/display_fields.rb