From c8ab103c66241edc66eb0692c002619a2adffc8c Mon Sep 17 00:00:00 2001 From: April Rieger Date: Wed, 25 Sep 2024 11:03:49 -0700 Subject: [PATCH] Updating off pairing with Kiah --- app/models/unca_work.rb | 11 +- .../hyku/work_show_presenter_decorator.rb | 5 +- config/metadata/unca_work.yaml | 151 ++---------------- 3 files changed, 13 insertions(+), 154 deletions(-) diff --git a/app/models/unca_work.rb b/app/models/unca_work.rb index 458bce0..e3b3033 100644 --- a/app/models/unca_work.rb +++ b/app/models/unca_work.rb @@ -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 diff --git a/app/presenters/hyku/work_show_presenter_decorator.rb b/app/presenters/hyku/work_show_presenter_decorator.rb index 328e764..c8b61dd 100644 --- a/app/presenters/hyku/work_show_presenter_decorator.rb +++ b/app/presenters/hyku/work_show_presenter_decorator.rb @@ -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 diff --git a/config/metadata/unca_work.yaml b/config/metadata/unca_work.yaml index 6f78830..1c43931 100644 --- a/config/metadata/unca_work.yaml +++ b/config/metadata/unca_work.yaml @@ -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 \ No newline at end of file