Skip to content

Commit

Permalink
Updating off pairing with Kiah
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Sep 25, 2024
1 parent 1278da3 commit c8ab103
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 154 deletions.
11 changes: 1 addition & 10 deletions app/models/unca_work.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource UncaWork`
class UncaWork < Hyrax::Work
include Hyrax::Schema(:basic_metadata)
class UncaWork < Etd
include Hyrax::Schema(:unca_work)
include Hyrax::Schema(:with_pdf_viewer)
include Hyrax::Schema(:with_video_embed)
include Hyrax::ArResource
include Hyrax::NestedWorks

prepend OrderAlready.for(:creator)
end
5 changes: 3 additions & 2 deletions app/presenters/hyku/work_show_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# OVERRIDE Hyku to delegate Mobius properties

Hyku::WorkShowPresenter.delegate :rights, :relation, :coverage, :file_format, to: :solr_document
Hyku::WorkShowPresenter.class_eval do
delegate :date_published, to: :solr_document
end
151 changes: 9 additions & 142 deletions config/metadata/unca_work.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,154 +21,21 @@
# Generated via
# `rails generate hyrax:work_resource UncaWork`

# Metadata common to Unca's custom work types only
# rails generate hyrax:work_resource UncaWork
attributes:
date_accepted:
date_published:
type: date
multiple: false
index_keys:
- "date_accepted_tesim"
- "date_published_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:
- "coverage_geographic_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/spatial
coverage_historic:
type: string
multiple: true
index_keys:
- "coverage_historic_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/temporal
notes:
type: string
multiple: true
index_keys:
- "notes_tesim"
form:
required: false
primary: false
multiple: true
predicate: http://purl.org/dc/terms/description
item_mask:
type: string
multiple: true
index_keys:
- "item_mask_tesim"
form:
required: false
primary: false
multiple: true
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
# ISSN/ISBN
# Relation - hasPart:
# - https://adl.b2.adventistdigitallibrary.org/concern/images/p012908_sutherland_family_1927/edit?locale=en
# - https://adl.b2.adventistdigitallibrary.org/concern/images/p012908_sutherland_family_1927
# https://docs.google.com/spreadsheets/d/14of7w09o2i6sH6wzDvNX8ELyUBKGJJ96/edit?gid=1479095251#gid=1479095251

0 comments on commit c8ab103

Please sign in to comment.