Module: Exlibris::Primo::Pnx::Links

Included in:
Record
Defined in:
lib/exlibris/primo/pnx/links.rb

Overview

Handle links in links tags.

Instance Method Summary collapse

Instance Method Details

#fulltextsObject

Parse linktorsrc tags to find full text links



11
12
13
14
15
# File 'lib/exlibris/primo/pnx/links.rb', line 11

def fulltexts
  @fulltexts ||=
    links("linktorsrc").collect { |link_attributes|
      Exlibris::Primo::Fulltext.new link_attributes }
end

Parse addlink tags to find related links



20
21
22
23
24
# File 'lib/exlibris/primo/pnx/links.rb', line 20

def related_links
  @related_links ||= 
    links("addlink").collect { |link_attributes| 
      Exlibris::Primo::RelatedLink.new link_attributes }
end

#tables_of_contentsObject

Parse linktotoc tags to find table of contents links



29
30
31
32
33
# File 'lib/exlibris/primo/pnx/links.rb', line 29

def tables_of_contents
  @tables_of_contents ||=
    links("linktotoc").collect { |link_attributes|
      Exlibris::Primo::TableOfContents.new link_attributes }
end