lib/exlibris/primo/link.rb in exlibris-primo-1.1.3 vs lib/exlibris/primo/link.rb in exlibris-primo-1.1.4
- old
+ new
@@ -1,39 +1,39 @@
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
+ :url, :display, :notes, :subfields, :display_code
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
\ No newline at end of file
+end