Sha256: 7caaee8c71316bb9b28de6c1373b77b557728ddd7c5ba3e15315294297b57018

Contents?: true

Size: 364 Bytes

Versions: 25

Compression:

Stored size: 364 Bytes

Contents

module Exlibris
  module Primo
    module Pnx
      # 
      # Handle PNX subfields
      # 
      module Subfields
        #
        # Return a Hash of subfields as keys with their corresponding values
        #
        def parse_subfields s
          Hash[s.scan(/\${2}([^\$])([^\$]+)/)]
        end
        protected :parse_subfields
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-2.1.0 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-2.0.0 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.9 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.8 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.7 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.6 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.5 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.4 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.3 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.2 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.1 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.1.0 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.11 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.10 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.9 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.8 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.7 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.6 lib/exlibris/primo/pnx/subfields.rb
exlibris-primo-1.0.5 lib/exlibris/primo/pnx/subfields.rb