Sha256: 979563c3c74eb8a98fa8237f84524707f5f1346761d2b8b41768bf628f204881
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
module Exlibris module Primo # # Abstract class representing a link in Primo. # class Link include Abstract include Config::Attributes include WriteAttributes self.abstract = true attr_accessor :institution, :record_id, :original_id, :url, :display, :notes, :subfields def initialize *args # URLs may have XML escaped ampersands # so we need to account for that. args.last[:url].gsub!("&", "&") unless args.last.nil? super(*args) end end # # Primo fulltext link. # class Fulltext < Link; end # # Primo table of contents link. # class TableOfContents < Link; end # # Primo related link. # class RelatedLink < Link; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exlibris-primo-1.1.3 | lib/exlibris/primo/link.rb |
exlibris-primo-1.1.2 | lib/exlibris/primo/link.rb |