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
-
#fulltexts ⇒ Object
Parse linktorsrc tags to find full text links.
-
#related_links ⇒ Object
Parse addlink tags to find related links.
-
#tables_of_contents ⇒ Object
Parse linktotoc tags to find table of contents links.
Instance Method Details
#fulltexts ⇒ Object
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 |
#related_links ⇒ Object
Parse addlink tags to find related links
20 21 22 23 24 |
# File 'lib/exlibris/primo/pnx/links.rb', line 20 def @related_links ||= links("addlink").collect { |link_attributes| Exlibris::Primo::RelatedLink.new link_attributes } end |
#tables_of_contents ⇒ Object
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 |