Class: DiscoveryIndexer::InputXml::PurlxmlModel
- Inherits:
-
Object
- Object
- DiscoveryIndexer::InputXml::PurlxmlModel
- Defined in:
- lib/discovery-indexer/reader/purlxml_model.rb
Instance Attribute Summary collapse
-
#barcode ⇒ String
The barcode attribute in identity_metadata.
-
#catkey ⇒ String
The catkey attribute in identity_metadata.
-
#collection_druids ⇒ Array<String>
Bare druids of the collections that this druid is a member of.
-
#constituent_druids ⇒ Array<String>
Bare druids of the objects that this druid is a constituent of.
-
#content_metadata ⇒ Nokogiri::XML
The content_metadata as extracted from public xml.
-
#copyright ⇒ String
The copyright statement from rights metadata.
-
#dc ⇒ Nokogiri::XML
The dc element as extracted from public xml.
-
#dor_content_type ⇒ String
The dor_content_type as extracted from public xml content_metadata.
-
#druid ⇒ String
The druid value eg., ab123cd4567.
-
#encoded_thumb ⇒ String
A thumbnail image if it exists in the PURL, encoded as necessary.
-
#file_ids ⇒ Array
A list of the file ids in the content_metadata.
-
#identity_metadata ⇒ Nokogiri::XML
The identity_metadata as extracted from public xml.
-
#image_ids ⇒ Array
A list of the image ids in the content_metadata.
-
#is_collection ⇒ Boolean
True if the item type is collection in the identity_metadata.
-
#label ⇒ String
The objectLabel attribute in identity_metadata.
-
#previous_catkeys ⇒ Array
The previous catkey attribute in identity_metadata.
-
#public_xml ⇒ Nokogiri::XML
The publix xml as retrieved from purl server.
-
#rdf ⇒ Nokogiri::XML
The rdf element as extracted from public xml.
-
#release_tags_hash ⇒ Hash
The release_tag in hash format as extracted from public xml ReleaseData element.
-
#rights_metadata ⇒ Nokogiri::XML
The rights_metadata as extracted from public xml.
-
#source_id ⇒ String
The sourceid from identity metadata.
-
#sw_image_ids ⇒ Array
A list of the image ids and corresponding druids separator from the file and externalFile tags in the content_metadata specifically for Searchworks.
-
#thumb ⇒ String
A thumbnail image if it exists in the PURL, encoded as necessary.
-
#use_and_reproduction ⇒ String
The use and reproduction statement from rights metadata.
Instance Attribute Details
#barcode ⇒ String
Returns the barcode attribute in identity_metadata.
102 103 104 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 102 def @barcode end |
#catkey ⇒ String
Returns the catkey attribute in identity_metadata.
94 95 96 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 94 def catkey @catkey end |
#collection_druids ⇒ Array<String>
Returns bare druids of the collections that this druid is a member of.
52 53 54 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 52 def collection_druids @collection_druids end |
#constituent_druids ⇒ Array<String>
Returns bare druids of the objects that this druid is a constituent of.
58 59 60 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 58 def constituent_druids @constituent_druids end |
#content_metadata ⇒ Nokogiri::XML
Returns The content_metadata as extracted from public xml.
14 15 16 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 14 def @content_metadata end |
#copyright ⇒ String
Returns the copyright statement from rights metadata.
110 111 112 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 110 def copyright @copyright end |
#dc ⇒ Nokogiri::XML
Returns The dc element as extracted from public xml.
26 27 28 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 26 def dc @dc end |
#dor_content_type ⇒ String
Returns The dor_content_type as extracted from public xml content_metadata.
42 43 44 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 42 def dor_content_type @dor_content_type end |
#druid ⇒ String
Returns The druid value eg., ab123cd4567.
6 7 8 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 6 def druid @druid end |
#encoded_thumb ⇒ String
Returns a thumbnail image if it exists in the PURL, encoded as necessary.
82 83 84 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 82 def encoded_thumb @encoded_thumb end |
#file_ids ⇒ Array
Returns a list of the file ids in the content_metadata.
64 65 66 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 64 def file_ids @file_ids end |
#identity_metadata ⇒ Nokogiri::XML
Returns The identity_metadata as extracted from public xml.
18 19 20 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 18 def @identity_metadata end |
#image_ids ⇒ Array
Returns a list of the image ids in the content_metadata.
70 71 72 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 70 def image_ids @image_ids end |
#is_collection ⇒ Boolean
Returns true if the item type is collection in the identity_metadata.
46 47 48 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 46 def is_collection @is_collection end |
#label ⇒ String
Returns the objectLabel attribute in identity_metadata.
106 107 108 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 106 def label @label end |
#previous_catkeys ⇒ Array
Returns the previous catkey attribute in identity_metadata.
98 99 100 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 98 def previous_catkeys @previous_catkeys end |
#public_xml ⇒ Nokogiri::XML
Returns The publix xml as retrieved from purl server.
10 11 12 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 10 def public_xml @public_xml end |
#rdf ⇒ Nokogiri::XML
Returns The rdf element as extracted from public xml.
30 31 32 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 30 def rdf @rdf end |
#release_tags_hash ⇒ Hash
Returns The release_tag in hash format as extracted from public xml ReleaseData element.
37 38 39 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 37 def @release_tags_hash end |
#rights_metadata ⇒ Nokogiri::XML
Returns The rights_metadata as extracted from public xml.
22 23 24 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 22 def @rights_metadata end |
#source_id ⇒ String
Returns the sourceid from identity metadata.
118 119 120 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 118 def source_id @source_id end |
#sw_image_ids ⇒ Array
Returns a list of the image ids and corresponding druids separator from the file and externalFile tags in the content_metadata specifically for Searchworks.
90 91 92 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 90 def sw_image_ids @sw_image_ids end |
#thumb ⇒ String
Returns a thumbnail image if it exists in the PURL, encoded as necessary.
76 77 78 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 76 def thumb @thumb end |
#use_and_reproduction ⇒ String
Returns the use and reproduction statement from rights metadata.
114 115 116 |
# File 'lib/discovery-indexer/reader/purlxml_model.rb', line 114 def use_and_reproduction @use_and_reproduction end |