Module: Qa::Authorities::LocSubauthority
- Included in:
- Loc
- Defined in:
- lib/qa/authorities/loc_subauthority.rb
Instance Method Summary collapse
- #authorities ⇒ Object
- #datatypes ⇒ Object
- #get_url_for_authority(authority) ⇒ Object
- #preservation ⇒ Object
- #vocabularies ⇒ Object
Instance Method Details
#authorities ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/qa/authorities/loc_subauthority.rb', line 12 def [ "subjects", "names", "classification", "childrensSubjects", "genreForms", "performanceMediums" ] end |
#datatypes ⇒ Object
41 42 43 |
# File 'lib/qa/authorities/loc_subauthority.rb', line 41 def datatypes ["edtf"] end |
#get_url_for_authority(authority) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/qa/authorities/loc_subauthority.rb', line 3 def case when .include?() then when vocabularies.include?() then vocab_base_url when datatypes.include?() then datatype_base_url when preservation.include?() then vocab_preservation_base_url end end |
#preservation ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/qa/authorities/loc_subauthority.rb', line 45 def preservation [ "contentLocationType", "copyrightStatus", "cryptographicHashFunctions", "environmentCharacteristic", "environmentPurpose", "eventRelatedAgentRole", "eventRelatedObjectRole", "eventType", "formatRegistryRole", "hardwareType", "inhibitorTarget", "inhibitorType", "objectCategory", "preservationLevelRole", "relationshipSubType", "relationshipType", "rightsBasis", "rightsRelatedAgentRole", "signatureEncoding", "signatureMethod", "softwareType", "storageMedium" ] end |
#vocabularies ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/qa/authorities/loc_subauthority.rb', line 23 def vocabularies [ "graphicMaterials", "organizations", "relators", "countries", "ethnographicTerms", "geographicAreas", "languages", "iso639-1", "iso639-2", "iso639-5", "preservation", "actionsGranted", "agentType" ] end |