Skip to content

Commit

Permalink
Commiting progress with adding the inca worktype
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Sep 19, 2024
1 parent fa1361a commit 1278da3
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 12 deletions.
60 changes: 60 additions & 0 deletions app/models/solr_document_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,66 @@ def relation
def file_format
self['file_format_tesim']
end

def date_issued
self['date_issued_tesim']
end

def document_relationship
self['document_relationship_tesim']
end

def content_type
self['content_type_tesim']
end

def coverage_geographic
self['coverage_geographic_tesim']
end

def coverage_historic
self['coverage_historic_tesim']
end

def notes
self['notes_tesim']
end

def item_mask
self['item_mask_tesim']
end

def item_embargo
self['item_embargo_tesim']
end

def file_name
self['file_name_tesim']
end

def thesis_type
self['thesis_type_tesim']
end

def degree_name
self['degree_name_tesim']
end

def degree_level
self['degree_level_tesim']
end

def discipline
self['discipline_tesim']
end

def advisor_last_name
self['advisor_last_name_tesim']
end

def advisor_first_name
self['advisor_first_name_tesim']
end
end

SolrDocument.prepend(SolrDocumentDecorator)
134 changes: 122 additions & 12 deletions config/metadata/unca_work.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,153 @@
# `rails generate hyrax:work_resource UncaWork`

attributes:
rights:
date_accepted:
type: date
multiple: false
index_keys:
- "date_accepted_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://purl.org/dc/terms/dateAccepted
document_relationship:
type: string
multiple: true
index_keys:
- "document_relationship_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/hasPart
content_type:
type: string
multiple: true
index_keys:
- "content_type_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/format
coverage_geographic:
type: string
multiple: true
index_keys:
- "rights_tesim"
- "coverage_geographic_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/rightsHolder
relation:
predicate: http://purl.org/dc/terms/spatial
coverage_historic:
type: string
multiple: true
index_keys:
- "relation_tesim"
- "coverage_historic_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/relation
coverage:
predicate: http://purl.org/dc/terms/temporal
notes:
type: string
multiple: true
index_keys:
- "coverage_tesim"
- "notes_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/coverage
file_format:
predicate: http://purl.org/dc/terms/description
item_mask:
type: string
multiple: true
index_keys:
- "file_format_tesim"
- "item_mask_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/FileFormat
predicate: http://example.org/ns#itemMask
item_embargo:
type: date
multiple: false
index_keys:
- "item_embargo_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://purl.org/dc/terms/available
file_name:
type: string
multiple: true
index_keys:
- "file_name_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://example.org/ns#fileName
thesis_type:
type: string
multiple: false
index_keys:
- "thesis_type_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://example.org/ns#thesisType
degree_name:
type: string
multiple: false
index_keys:
- "degree_name_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://example.org/ns#degreeName
degree_level:
type: string
multiple: false
index_keys:
- "degree_level_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://example.org/ns#degreeLevel
discipline:
type: string
multiple: false
index_keys:
- "discipline_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://example.org/ns#discipline
advisor_last_name:
type: string
multiple: false
index_keys:
- "advisor_last_name_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://xmlns.com/foaf/0.1/familyName
advisor_first_name:
type: string
multiple: false
index_keys:
- "advisor_first_name_tesim"
form:
required: false
primary: false
multiple: false
predicate: http://xmlns.com/foaf/0.1/givenName

0 comments on commit 1278da3

Please sign in to comment.