Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎁 [i84] - Integrate Hyrax dynamic metadata feature into Hyku #2258

Draft
wants to merge 57 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
dabd419
Update Hyrax branch
kirkkwang Jun 24, 2024
9b63fe1
Update Hyrax
Jul 1, 2024
77a0198
Add HYRAX_FLEXIBLE env var and Hyrax.config.flexible? guards
Jul 1, 2024
cda1c39
temp ref specific sha of iiif_print
Jul 1, 2024
4689f5f
:construction: WIP: Update m3 profile
Jul 2, 2024
958426c
Add Oer/Etd resources to m3_profile + convert iiif print yml
Jul 2, 2024
a3773d9
:gift: Add metadata_profiles route
Jul 2, 2024
f2e2be8
revert changes to m3 for Hyrax::FileSet
Jul 2, 2024
601f5a9
:gift: update m3_profile with Oer and Etd specifications
Jul 2, 2024
e57f8e6
Update m3_profile.yaml
Jul 2, 2024
7c2ce59
set VALKYRIE_TRANSITION env vars
Jul 2, 2024
2704903
:bug: override hyrax to fix files bug - reason for missing pdf.js che…
Jul 2, 2024
a48da68
:broom: update indexers for non flexible metadata
Jul 2, 2024
98be47c
Update routes.rb
Jul 3, 2024
9834baa
Fix bug in configuration menu
Jul 3, 2024
8d849e4
Updates iiif_print and hyrax gems
Jul 5, 2024
d3a8bd6
Merge branch 'update-hyrax-to-flexible_double_combo' of https://githu…
Jul 5, 2024
7b3100d
:broom: guard against order already if flexible_metadata? is true
Jul 5, 2024
d3a7346
:construction: WIP - progress on making attribute_rows dynamic
Jul 5, 2024
881f367
add translation for profile version and version to works/collection i…
Jul 5, 2024
489d4f8
update hyrax
Jul 8, 2024
5638410
Update db/migrate/20240606205215_create_hyrax_flexible_schemas.rb
Jul 8, 2024
cbe6a35
Merge branch 'update-hyrax-to-flexible_double_combo' of https://githu…
Jul 8, 2024
e605d59
correct guard clause on migration
Jul 8, 2024
4bce0e7
:gift: add Hyrax::Administrative set to m3_profile and update hyrax
Jul 9, 2024
361ddc2
🧹 move seeds flexible metadata code inside Account iteration
Jul 9, 2024
93bcb81
🧹 removes reload config - caused very slow app
Jul 9, 2024
fa1134a
updates hyrax version
Jul 10, 2024
74d3bc3
Update Hyrax to pull in validations for bad profiles
Jul 16, 2024
4bf4bb3
Merge branch 'main' into update-hyrax-to-flexible_double_combo
Jul 16, 2024
ac31e36
Update Gemfile.lock
Jul 16, 2024
d12b225
Add ability to re run a specific step for debugging
Jul 16, 2024
ab0c718
debug pipeline
Jul 17, 2024
f0da1a5
bump hyrax to get delete working
orangewolf Aug 17, 2024
fc7d9a9
Update build-test-lint.yaml
Aug 23, 2024
0d244ec
Merge branch 'main' into update-hyrax-to-flexible_double_combo
Aug 23, 2024
53c040c
💄 rubocop fixes
Aug 23, 2024
38a483f
add contexts to hyku
orangewolf Dec 9, 2024
e9c4858
Merge branch 'update-hyrax-to-flexible_double_combo' of github.com:sa…
orangewolf Dec 12, 2024
9becebe
working through double combo update issues
orangewolf Dec 12, 2024
cac96ff
bootstrap 4 uses card instead of panel
orangewolf Dec 12, 2024
48dd019
Merge branch 'main' into update-hyrax-to-flexible_double_combo
orangewolf Dec 12, 2024
b443edc
clean up wings initializer after merge
orangewolf Dec 12, 2024
849140c
Merge branch 'panel-to-card' into update-hyrax-to-flexible_double_combo
orangewolf Dec 12, 2024
37cea10
fix gem versions after merge
orangewolf Dec 18, 2024
44c077e
Merge branch 'main' into update-hyrax-to-flexible_double_combo
orangewolf Dec 20, 2024
1accf06
bump bulkrax
orangewolf Dec 20, 2024
bc5e462
bump hyrax to fix build
orangewolf Dec 21, 2024
a8cb017
Merge branch 'main' into update-hyrax-to-flexible_double_combo
orangewolf Dec 21, 2024
cd6a6c8
call the cops
orangewolf Dec 23, 2024
0770326
move staging and demo deploys to friends
orangewolf Jan 17, 2025
95d9ed5
Merge branch 'update-hyrax-to-flexible_double_combo' of github.com:sa…
orangewolf Jan 17, 2025
7d0c6c8
bump bulkrax
orangewolf Jan 17, 2025
329c9d6
Merge branch 'main' into update-hyrax-to-flexible_double_combo
orangewolf Jan 17, 2025
0f41731
update back to n8
orangewolf Jan 17, 2025
2d6ade1
Merge branch 'update-hyrax-to-flexible_double_combo' of github.com:sa…
orangewolf Jan 17, 2025
31a8c20
update gemfile lock after merge
orangewolf Jan 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🐛 override hyrax to fix files bug - reason for missing pdf.js checkboxes
Shana Moore committed Jul 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 270490392a4f4ffa9943543e4346061dc2815063
28 changes: 28 additions & 0 deletions app/models/concerns/hyrax/solr_document_behavior_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true
# OVERRIDE: Hyrax v5.0.1 to fix a bug
# previously presenter.file_set_presenters didn't know it
# had any files to display.
module Hyrax
##
# @api public
#
# Hyrax extensions for +Blacklight+'s generated +SolrDocument+.
#
# @example using with +Blacklight::Solr::Document+
# class SolrDocument
# include Blacklight::Solr::Document
# include Hyrax::SolrDocumentBehavior
# end
#
# @see https://github.com/projectblacklight/blacklight/wiki/Understanding-Rails-and-Blacklight#models
module SolrDocumentBehaviorDecorator
# Method to return the model
def hydra_model(classifier: nil)
model = first('has_model_ssim')&.safe_constantize
model = (first('has_model_ssim')&.+ 'Resource')&.safe_constantize if Hyrax.config.valkyrie_transition?
model || model_classifier(classifier).classifier(self).best_model
end
end
end

Hyrax::SolrDocumentBehavior.prepend(Hyrax::SolrDocumentBehaviorDecorator)