Class: Bplmodels::OAIObject
- Inherits:
-
SimpleObjectBase
- Object
- ActiveFedora::Base
- ObjectBase
- SimpleObjectBase
- Bplmodels::OAIObject
- Defined in:
- app/models/bplmodels/oai_object.rb
Class Method Summary collapse
-
.mint(args) ⇒ Object
Expects the following args: parent_pid => id of the parent object local_id => local ID of the object local_id_type => type of that local ID label => label of the collection.
Instance Method Summary collapse
Methods inherited from SimpleObjectBase
Methods inherited from ObjectBase
#add_new_volume, #add_oai_relationships, #apply_default_permissions, #assert_content_model, #cache_invalidate, #calculate_volume_match_md5s, #convert_to, #delete, #deleteAllFiles, #derivative_service, #generate_thumbnail_url, #generate_uri, #insert_abbyy, #insert_djvu_xml, #insert_ia_meta, #insert_marc, #insert_marc_xml, #insert_new_audio_file, #insert_new_document_file, #insert_new_ereader_file, #insert_new_file, #insert_new_image_file, #insert_plain_text, #insert_scan_data, #oai_thumbnail_service, #remove_oai_relationships, #simple_insert_file
Class Method Details
.mint(args) ⇒ Object
Expects the following args: parent_pid => id of the parent object local_id => local ID of the object local_id_type => type of that local ID label => label of the collection
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'app/models/bplmodels/oai_object.rb', line 32 def self.mint(args) args[:namespace_id] = ARK_CONFIG_GLOBAL['namespace_oai_pid'] #TODO: Duplication check here to prevent over-writes? return_object = super(args) if !return_object.is_a?(String) return_object.workflowMetadata.insert_oai_defaults end return return_object end |
Instance Method Details
#fedora_name ⇒ Object
16 17 18 |
# File 'app/models/bplmodels/oai_object.rb', line 16 def fedora_name 'oai_object' end |
#to_solr(doc = {}) ⇒ Object
20 21 22 23 24 25 |
# File 'app/models/bplmodels/oai_object.rb', line 20 def to_solr(doc = {} ) doc = super(doc) doc['active_fedora_model_ssi'] = self.class.name doc end |