Skip to content

☄️ Valkyrize Hyku EPIC #2129

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

Merged
merged 594 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
594 commits
Select commit Hold shift + click to select a range
28e31ae
Delete _repository_content.html.erb
Jan 26, 2024
963fda8
use hyrax-4-valkyrie-support bulkrax branch
Jan 26, 2024
db7e39d
🐛 App was not loading after updating Hyrax
Jan 29, 2024
44aa7f7
⚙️ Don't remove backtrace in dev
Jan 29, 2024
887fbf2
remove bulkrax_identifier from Hyku
Jan 29, 2024
4322d9c
🧹 Make the appropriate link generate
Jan 30, 2024
c7ac8d6
🧹 Add Valkyrie test adapter
jeremyf Jan 30, 2024
89d0c59
🧹 Always with the coppers
jeremyf Jan 30, 2024
9be2b81
Merge pull request #2158 from samvera/i903-move-find-by-bulkrax-ident…
jeremyf Jan 30, 2024
e05e5c1
Updating Hyrax to latest version
jeremyf Jan 30, 2024
fc72267
🧹 Rework logic for #hydra_model
Jan 30, 2024
670784d
Merge branch 'i35-valkyrize-hyku' into i35-valkyrize-hyku-link-genera…
Jan 30, 2024
4622fa8
📚 Add docs regarding knapsack
jeremyf Jan 30, 2024
57616a8
🧹 Favor not using valkyrie for the spec
jeremyf Jan 30, 2024
2870a51
♻️ Only enable auto-redirect when Valkyrie enabled.
jeremyf Jan 30, 2024
78db82f
🧹 Configure Bulkrax
Jan 30, 2024
adb7393
Merge remote-tracking branch 'origin/i35-valkyrize-hyku-link-generati…
Jan 30, 2024
9fdd797
Revert "🧹 Remove files declared in Knapsack"
jeremyf Jan 31, 2024
c694ce0
Revert "remove bulkrax_identifier from Hyku"
Jan 31, 2024
d68d78e
♻️ Bump Hyrax ref
jeremyf Jan 31, 2024
3ac6ca9
♻️ Favor Hyrax::SolrService
jeremyf Jan 31, 2024
aa25008
Merge pull request #2160 from samvera/i35-favor-hyrax-solr-service
jeremyf Jan 31, 2024
3e27770
make find_by_bulkrax_identifier.rb more dynamic
Jan 31, 2024
9e82fde
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Jan 31, 2024
ac313c7
Leverage updated IIIF Print
jeremyf Jan 31, 2024
f3c1c67
🧹 Appeasing rubocop
jeremyf Jan 31, 2024
78d26c5
find_by_source_identifier files moved to bulkrax
Jan 31, 2024
60e097e
Revert "find_by_source_identifier files moved to bulkrax"
Jan 31, 2024
e21d98e
update bulkrax and iiif_print versions
Feb 1, 2024
63aa39c
Merge branch 'main' into i35-valkyrize-hyku
Feb 1, 2024
4123e38
🧹 apply conditional to hyku indexing
Feb 1, 2024
bb112d0
💄 rubocop fix
Feb 1, 2024
dd61e0c
🧹 Fix set child flag
Feb 2, 2024
54f8d1f
Merge pull request #2161 from samvera/i35-valkyrize-hyku-relationships
jeremyf Feb 2, 2024
3459609
add guard for ActiveFedora's member_ids
Feb 2, 2024
7b2f3b3
Update Bulkrax and IiifPrint
Feb 2, 2024
89df09e
remove HYKU_IIIF_PRINT conditional
Feb 5, 2024
6516b00
update hyrax and iiif print
Feb 5, 2024
7b32e43
Valkyrize reindex rake tasks
Feb 5, 2024
11ed1b0
🐛 Ensure underlying change to permissions
jeremyf Feb 5, 2024
14a33e7
Fix for xray-rails not working
Feb 5, 2024
0b13c46
Merge branch 'main' into i35-valkyrize-hyku
jeremyf Feb 6, 2024
093c404
Bumping Hyrax version
jeremyf Feb 6, 2024
f99eb6f
Merge pull request #2163 from samvera/remove-iiif-print-env-var
jeremyf Feb 6, 2024
544b64f
💄rubocop fixes
Feb 6, 2024
ec12d8b
update hyrax, bulkrax, iiif_print
Feb 6, 2024
683e4d4
update hyrax
Feb 6, 2024
ecfe4a4
Pin Hyrax to functioning build
jeremyf Feb 6, 2024
a4d3125
Delete find_by_source_identifier_spec.rb
Feb 6, 2024
d30ae50
Update iiif_print
Feb 6, 2024
88d4cce
🧹 Remove `form` key from with_pdf_viewer
Feb 7, 2024
5c0ac17
🧹 Fix specs to reflect usage of Double Combo
jeremyf Feb 7, 2024
6084d80
🐛 Use registered instead of restricted
jeremyf Feb 7, 2024
fc45945
🧹 Amend spec to highlight double combo nuance
jeremyf Feb 7, 2024
5f70ffb
🧹 Rework lease expiry tests
jeremyf Feb 7, 2024
bfa71b7
💄 endless and ever appeasing of the coppers
jeremyf Feb 7, 2024
51bf79b
🧹 Fix broken spec
jeremyf Feb 7, 2024
a0d1013
💄 endless and ever appeasing of the cops
jeremyf Feb 7, 2024
f0329f3
Adding documentation
jeremyf Feb 7, 2024
8016058
🧹 Adjust AdminSet spec count to reflect query service
jeremyf Feb 8, 2024
38ceb5d
🧹 Address assumptive redirect for /concern/generic_work/
jeremyf Feb 8, 2024
818cdbc
🧹 Fixing redirect assumptions for insitutional visibility
jeremyf Feb 8, 2024
6a065dd
🧹 Favor up to date double_combo
jeremyf Feb 8, 2024
83738e1
Fixing a few specs to reflection Valkyriziation
jeremyf Feb 8, 2024
05ff3be
🧹 Updating Hyrax version
jeremyf Feb 8, 2024
ee2e5be
include Bulkrax helpers and update Bulkrax
Feb 8, 2024
a7e3ac4
Rework spec to not rely on reload
jeremyf Feb 8, 2024
02d8ef0
🧹 Fixing tests to use generic_resource_factory
jeremyf Feb 8, 2024
683311c
Fixing a spec that needs a #to_a
jeremyf Feb 8, 2024
9167757
♻️ Add Hyku.bulkrax_enabled?
jeremyf Feb 9, 2024
9c3af9e
♻️ Favor re-using the controller and hopefully routes
jeremyf Feb 9, 2024
d02aa82
Demonstrate how we're using lazy migrations and model naming
jeremyf Feb 9, 2024
ea7a714
♻️ Remove generated files
jeremyf Feb 9, 2024
bd301a2
🧹 endless and ever appeasing of the coppers
jeremyf Feb 12, 2024
d6fa335
☑️ Tidying up tests
jeremyf Feb 12, 2024
35286c3
☑️ Fixing a few broken tests
jeremyf Feb 12, 2024
2a32321
Move ability declarations out of loop, where loop not needed
jeremyf Feb 12, 2024
6bac079
💄 endless and ever appeasing of the coppers
jeremyf Feb 12, 2024
bedc3ad
☑️ Fill out require attributes
jeremyf Feb 12, 2024
c4b0c9e
☑️ Working through failing tests
jeremyf Feb 12, 2024
95436af
Fixing broken specs
jeremyf Feb 12, 2024
a160896
🐛 Refactor collection ability class
jeremyf Feb 12, 2024
2d2f1d4
Add elsif for FileSet and configure IIIF Print
Feb 12, 2024
c337df9
Bumping double_combo version
jeremyf Feb 14, 2024
16ef18a
Favor helper method over instance variable
jeremyf Feb 14, 2024
b96c954
☑️ We need to create a method to stub
jeremyf Feb 14, 2024
2fbffd8
☑️ Ever working towards tests
jeremyf Feb 14, 2024
69cd025
💄 endless and ever appeasing of the coppers
jeremyf Feb 14, 2024
afaf1a0
🎁 Add some FileSet interface friendliness
jeremyf Feb 14, 2024
59dbce3
☑️ Favor factory over process through actor stack
jeremyf Feb 14, 2024
90abb58
☑️ Adding tests for GenericWorkResrouce
jeremyf Feb 15, 2024
a99685d
🎁 Favor inheriting from admin_set
jeremyf Feb 15, 2024
b911729
☑️ Removing spec/factories defined Hyrax
jeremyf Feb 15, 2024
173053f
💄 endless and ever appeasing of the coppers
jeremyf Feb 15, 2024
4f372ec
♻️ Fixing some tests to rely on factories instead of actor
jeremyf Feb 15, 2024
d90ed63
🚧 Update Hyrax and IIIF Print
Feb 16, 2024
67834dd
☑️ Fixing a few tests by re-purposing some factories
jeremyf Feb 15, 2024
91368ee
WIP
jeremyf Feb 15, 2024
bf5f51b
Removing unneeded decorator and associated spec
jeremyf Feb 15, 2024
5a8430b
🧹 Ignore vendor/gems directory
jeremyf Feb 16, 2024
7f12d48
☑️ Adding documentation regarding Factories
jeremyf Feb 16, 2024
c106563
☑️ Fixing tests and factories for roles_service
jeremyf Feb 16, 2024
b53c20f
♻️ Favor site configuration for allow downloads
jeremyf Feb 16, 2024
3d2b85a
☑️ Fixing a broken test
jeremyf Feb 16, 2024
c3e9c88
Fixing a few broken specs, still some broken
jeremyf Feb 16, 2024
88edd03
💄 endless and ever appeasing of the coppers
jeremyf Feb 16, 2024
cf30c3e
Removing long-ago removable code
jeremyf Feb 16, 2024
fc4118a
Modify Collection & Admin Set Valkyrization
Feb 16, 2024
9de1b88
Coppers again
Feb 16, 2024
081378d
☑️ Favor explicit load of FactoryBot factories
jeremyf Feb 16, 2024
d53ac06
☑️ Working on getting more tests passing
jeremyf Feb 17, 2024
a6f1316
Merge branch 'i35-valkyrize-hyku' into i94-collections
jeremyf Feb 17, 2024
2bba104
Merge pull request #2164 from samvera/i94-collections
jeremyf Feb 17, 2024
c3ab645
Fixing ever more specs that keep breaking underneath me
jeremyf Feb 17, 2024
34bfb28
💄 endless and ever appeasing of the coppers
jeremyf Feb 17, 2024
08eadab
♻️ Verify AdminSetResource factory build
jeremyf Feb 18, 2024
d164944
Adding specs to demonstrate factories
jeremyf Feb 18, 2024
ff50f74
🧹 Avoid assuming factory-bot is available.
jeremyf Feb 18, 2024
848a270
🧹 We want to create admin set resources
jeremyf Feb 18, 2024
c1ab0e7
🧹 Fix broken spec due to not assuming admin group
jeremyf Feb 18, 2024
244898b
☑️ Fixing specs by re-using factories
jeremyf Feb 18, 2024
62bb52c
☑️ Adjust spec to use proper collection factory
jeremyf Feb 19, 2024
44ee888
☑️ Favor factory over instance double
jeremyf Feb 19, 2024
3660d46
☑️ Favor factory over explicit class
jeremyf Feb 19, 2024
275e22b
☑️ Favor factory over stub, and correct form class
jeremyf Feb 19, 2024
39c304f
☑️ Ensuring we start from a clean slate
jeremyf Feb 19, 2024
61ad72e
Fixing specs
jeremyf Feb 19, 2024
d9dccb4
☑️ Fixing tests squashing bugs that might show up
jeremyf Feb 19, 2024
6dd7401
Fixing specs to use resource classes
jeremyf Feb 19, 2024
82816af
Bumping version of IIIF Print
jeremyf Feb 19, 2024
da05047
🐛 Add .each to find_all call
jeremyf Feb 19, 2024
e4167d4
Fixing feature specs by ensuring admin_group
jeremyf Feb 19, 2024
628e5b6
🐛 Fixing a couple of different bugs
jeremyf Feb 19, 2024
5068597
💄 endless and ever appeasing of the coppers
jeremyf Feb 20, 2024
f118fbf
WIP
jeremyf Feb 20, 2024
36db042
♻️ Adding further collection ability testing
jeremyf Feb 20, 2024
4937da0
♻️ Put long list of objects into a loop
jeremyf Feb 20, 2024
15ec554
♻️ Adding more valkyrie native collection specs
jeremyf Feb 20, 2024
f4ca845
♻️ Re-arranging collection declarations
jeremyf Feb 20, 2024
3dcbcf5
♻️ Working in the spec mines regarding permission
jeremyf Feb 20, 2024
6891776
Adding specs for disable
jeremyf Feb 21, 2024
e1726df
♻️ Reworking specs and addressing significant typo
jeremyf Feb 21, 2024
cb576e2
🧹 Fix specs concerning collection management
jeremyf Feb 21, 2024
b7d2a37
Ever hacking on the specs
jeremyf Feb 21, 2024
0f76a4e
💄 endless and ever appeasing of the coppers
jeremyf Feb 21, 2024
8487114
🧹 Fix tests regarding collection management
jeremyf Feb 21, 2024
4d98b70
🧹 Fixing Hyrax::CollectionType#collections query
jeremyf Feb 21, 2024
5ca533f
🧹 Fixing a few broken specs
jeremyf Feb 21, 2024
39a13d5
🧹 Reworking factory process
jeremyf Feb 21, 2024
f9fffdb
💄 endless and ever appeasing of the coppers
jeremyf Feb 22, 2024
348c5a5
♻️ Favor member_ids_ssim over file_set_ids_ssim
jeremyf Feb 21, 2024
e7d82ee
☑️ Add role trait to reflect tests
jeremyf Feb 21, 2024
b9465cf
🧹 Set various presenter's with correct file_presenter_class
jeremyf Feb 21, 2024
3936726
Bumping the double_combo
jeremyf Feb 23, 2024
5680a18
Bumping version of IIIF Print and Bulkrax
jeremyf Feb 23, 2024
5227adb
💄 endless and ever appeasing of the coppers
jeremyf Feb 23, 2024
7377572
Adding tests to snare failing specs that work locally
jeremyf Feb 23, 2024
ca9d5ab
♻️ Working on factory bot creation of permission templates
jeremyf Feb 26, 2024
54d0a42
♻️ Fix spec harness for permissions
jeremyf Feb 27, 2024
917b2ce
📚 Add spec for factories to explain what happens
jeremyf Feb 27, 2024
ee48b61
Update double_combo and add bulkrax migrations
Feb 27, 2024
1824bc8
Fixing some underlying specs
jeremyf Feb 27, 2024
4968242
♻️ Fix selector issue
jeremyf Feb 27, 2024
c66ba49
☑️ Let These Specs Pass!
jeremyf Feb 27, 2024
e581054
☑️ Typo
jeremyf Feb 27, 2024
e04a9c5
💄 endless and ever appeasing of the coppers
jeremyf Feb 28, 2024
85772d7
Remove redundant declaration
jeremyf Feb 28, 2024
17c2fc7
☑️ Remove flakey tests
jeremyf Feb 28, 2024
4fd3954
☑️ Favor FactoryBot.valkyrie_create
jeremyf Feb 28, 2024
389e953
☑️ Add explicit setting of models before discovery factories
jeremyf Feb 28, 2024
649acac
🧹 Bump to new double_combo
jeremyf Feb 28, 2024
f59f070
Remove transient as the underlying problem fixed
jeremyf Feb 28, 2024
b5e74b7
♻️ Remove auto-creation of file
jeremyf Feb 28, 2024
3d7de4e
☑️ Favor Hyrax::SolrService.connection to match interface
jeremyf Feb 29, 2024
404f0c3
Bumping to new version of Hyrax double combo
jeremyf Feb 29, 2024
c80cff6
Update Hyrax
Feb 29, 2024
68f1750
Removing mocked tests that don't prove much
jeremyf Mar 1, 2024
21d8e70
Add embargo and lease to wings
Mar 1, 2024
bc596c0
Update riiif config to replace deprecated method
Mar 1, 2024
e138418
Adding tenant for request spec
jeremyf Mar 1, 2024
d0c7832
Updating factory spec to catch a failure
jeremyf Mar 1, 2024
dcbceab
Update Hyrax to move binaries
Mar 2, 2024
7c9cb22
start spec to test file set migration
Mar 4, 2024
b21c477
🐛 Fix Account switch bug
jeremyf Mar 4, 2024
89c5741
♻️ Remove method as duplicate of Hyrax
jeremyf Mar 4, 2024
7a9b7b8
🎁 Auto-magically migrate file sets and binaries
jeremyf Mar 4, 2024
1778bab
💄 endless and ever appeasing of the coppers
jeremyf Mar 4, 2024
92045f9
♻️ Remove stray puts statement
jeremyf Mar 4, 2024
f4e2732
Attempting to squash a flakey set of specs
jeremyf Mar 4, 2024
9072bac
Update #parent_path to account for various case statements
Mar 4, 2024
8d56979
💄 endless and ever appeasing of the coppers
jeremyf Mar 4, 2024
b0cbbac
I had to bail and copy the factories from Hyrax
jeremyf Mar 5, 2024
ff0a912
💄 endless and ever appeasing of the coppers
jeremyf Mar 5, 2024
c66865a
♻️ Disable some consistently failing specs
jeremyf Mar 5, 2024
a5771f8
Update hyrax version
Mar 6, 2024
17dea1b
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Mar 6, 2024
47cbfbd
Merge branch 'main' into i35-valkyrize-hyku
jeremyf Mar 6, 2024
6a4f1e5
Revert "I had to bail and copy the factories from Hyrax"
jeremyf Mar 6, 2024
659d60c
Update Hyrax
Mar 6, 2024
66e9831
Bumping Hyrax version
jeremyf Mar 7, 2024
4ac5e1e
Updating Hyrax to latest build with FS fixes
jeremyf Mar 11, 2024
48133b1
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Mar 11, 2024
1cd5ca1
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Mar 11, 2024
da5c523
♻️ Update Hyku to new Double Combo and config file_set_model
jeremyf Mar 12, 2024
3749af5
💄 endless and ever appeasing of the coppers
jeremyf Mar 12, 2024
c9c1185
Addressing potential routing errors
jeremyf Mar 12, 2024
e7718b2
Remove indexing of collection membership
jeremyf Mar 12, 2024
f41ba15
♻️ Adding Hyku::Application.work_types (see docs)
jeremyf Mar 13, 2024
61c863d
♻️ Configure `Bulkrax.*_model_class` methods
jeremyf Mar 13, 2024
05fd2eb
copy Rob's reprocessor script from GBH into Hyku
bkiahstroud Mar 14, 2024
d1d11bc
resolve most rubocop warnings
bkiahstroud Mar 14, 2024
d0e27dc
update rubocop_todo
bkiahstroud Mar 14, 2024
3fbf2f4
Load HykuKnapsack decorators
Mar 15, 2024
06350fc
temp: debug build issues
Mar 18, 2024
4375a29
Revert "temp: debug build issues"
Mar 18, 2024
29ef204
Update Bulkrax
Mar 19, 2024
37b16e0
Update Bulkrax
Mar 19, 2024
fc85d08
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Mar 19, 2024
7ff49ca
Update Bulkrax and Hyrax
Mar 21, 2024
0642931
🧹 Update bulkrax gem
Mar 21, 2024
d87e4ed
Update Bulkrax
Mar 21, 2024
ae46a17
🐛 Fix undefined local variable iiif_print
Mar 21, 2024
9614850
🐛 Fix collection membership bug (#2169)
laritakr Mar 22, 2024
a327222
update Bulkrax
Mar 26, 2024
6940b4c
Show PDF.js viewer when PDF.js FlipFlop is true
Mar 26, 2024
29963d3
revert previous commit and update logic of #show_pdf_viewer instead
Mar 27, 2024
1512867
Merge pull request #2171 from samvera/i185-edit-pdf-work-bug
Mar 27, 2024
a32664d
Update valkyrie gem
Mar 27, 2024
5542205
update valkyrie gem
Mar 27, 2024
f0f5421
Update bulkrax to fix bug
Mar 28, 2024
cfa48b4
Merge branch 'main' into i35-valkyrize-hyku
jeremyf Mar 28, 2024
093251b
🧹 Clean up featured works and collections
Mar 29, 2024
75a9d99
Update IiifPrint (#2172)
laritakr Mar 29, 2024
65c9abb
♻️ Favor method_missing over delegation
jeremyf Apr 1, 2024
fb6adf7
♻️ Remove config that was there for flakey tests
jeremyf Apr 1, 2024
5e97d78
Update app/forms/hyrax/forms/admin/appearance_decorator.rb
jeremyf Apr 1, 2024
5b61235
Favor published valkyrie gem version
jeremyf Apr 1, 2024
d3df1e0
🎁 Valkyrize Reindex jobs (#2173)
laritakr Apr 1, 2024
5a90fcf
update gemfile to add support for sentry
Apr 1, 2024
2ec7b41
🗡 Stab in the dark at fixing an intermittent bug
jeremyf Apr 1, 2024
a8c49fd
add conditional to support HykuUp Knapsack specs
Apr 1, 2024
8cf0e95
add conditional to support HykuUp Knapsack specs
Apr 1, 2024
ad48579
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Apr 1, 2024
f745207
:lipstick: rubocop fix
Apr 1, 2024
289ca62
:lipstick: rubocop fix
Apr 1, 2024
08779c1
Merge branch 'i35-valkyrize-hyku' of https://github.com/samvera/hyku …
Apr 1, 2024
19e5f3a
🧹 Add core to hash in spec
Apr 2, 2024
25f22cc
🧹 Add storage/files as a persisted volumn
Apr 2, 2024
a19960f
update bulkrax, hyrax, iiif_print
Apr 2, 2024
8e390ee
bump to rc3
Apr 2, 2024
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
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ GIT

GIT
remote: https://github.com/samvera/hyrax.git
revision: b7891b758411c59f71ff54212e0d250fcc47e35f
revision: 8fe90b5058c09d672f9179c9aaa9e01e94abd83c
branch: double_combo
specs:
hyrax (5.0.0.rc2)
Expand Down Expand Up @@ -197,7 +197,7 @@ GIT

GIT
remote: https://github.com/scientist-softserv/iiif_print.git
revision: cad2cf33fc07ec2abb5b6834a858b5ed74903c12
revision: cc105d061727988e016c32235459f4cb82bd3ad6
branch: rails_hyrax_upgrade
specs:
iiif_print (1.0.0)
Expand Down
24 changes: 16 additions & 8 deletions app/assets/stylesheets/hyku.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
}
}

.dashboard .form-tab-content label {
font-weight: 700;
}

@media (min-width: 768px) {
.logo-set {
display: flex;
Expand Down Expand Up @@ -532,6 +536,7 @@ span.constraint-value p, .facet-values p {
// style the analytics button to match citations button
#stats {
margin-top: 10px;

@media (min-width: 576px) {
max-width: 300px;
}
Expand All @@ -549,25 +554,28 @@ span.constraint-value p, .facet-values p {
// collection show page styles

.space-between {
justify-content: space-between;
align-items: center;
justify-content: space-between;
}

.hyc-banner {
padding: 15px;
.hyc-bugs .hyc-created-by, .hyc-bugs .hyc-last-updated, .hyc-title {
.hyc-bugs .hyc-created-by,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rule declaration should be preceded by an empty line

.hyc-bugs .hyc-last-updated,
.hyc-title {
padding: 0;
}

.hyc-item-count {
margin: 0;
background: rgba(255, 255, 255, 0.75);
padding: 10px;
border-radius: 0.5em;
color: #333;
margin: 0;
padding: 10px;
}

.hyc-bugs div, div {
.hyc-bugs div,
div {
position: relative;
}
}
Expand All @@ -588,7 +596,7 @@ span.constraint-value p, .facet-values p {
}

.mb-2 {
margin-bottom: .5em;
margin-bottom: 0.5em;
}

.mb-5 {
Expand All @@ -605,13 +613,13 @@ span.constraint-value p, .facet-values p {
}

.py-0 {
padding-top: 0;
padding-bottom: 0;
padding-top: 0;
}

.py-4 {
padding-top: 2em;
padding-bottom: 2em;
padding-top: 2em;
}

.d-block {
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/hyrax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@

// for catalog search result snippets
.highlight {
background: yellow;
background: #ffff00;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line should be indented 2 spaces, but was indented 4 spaces

font-weight: 700;
}
}
2 changes: 1 addition & 1 deletion app/assets/stylesheets/viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
.video-embed-viewer {
aspect-ratio: 16 / 9;
width: 100%;
}
}
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def api_or_pdf?
end

def staging?
['staging'].include?(Rails.env)
Rails.env.staging? # rubocop:disable Rails/UnknownEnv
end

def authenticate_if_needed
Expand Down
17 changes: 17 additions & 0 deletions app/controllers/hyrax/generic_work_resources_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource GenericWorkResource`
module Hyrax
# Generated controller for GenericWorkResource
class GenericWorkResourcesController < ApplicationController
# Adds Hyrax behaviors to the controller.
include Hyrax::WorksControllerBehavior
include Hyrax::BreadcrumbsForWorks
self.curation_concern_type = ::GenericWorkResource

# Use a Valkyrie aware form service to generate Valkyrie::ChangeSet style
# forms.
self.work_form_service = Hyrax::FormFactory.new
end
end
3 changes: 1 addition & 2 deletions app/controllers/hyrax/homepage_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def index
load_shared_info
recent

# override hyrax v2.9.0 added for facets on homepage - Adding Themes
(@response, @document_list) = search_results(params)
(@response, @document_list) = search_service.search_results

respond_to do |format|
format.html { store_preferred_view }
Expand Down
17 changes: 17 additions & 0 deletions app/controllers/hyrax/image_resources_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource ImageResource`
module Hyrax
# Generated controller for ImageResource
class ImageResourcesController < ApplicationController
# Adds Hyrax behaviors to the controller.
include Hyrax::WorksControllerBehavior
include Hyrax::BreadcrumbsForWorks
self.curation_concern_type = ::ImageResource

# Use a Valkyrie aware form service to generate Valkyrie::ChangeSet style
# forms.
self.work_form_service = Hyrax::FormFactory.new
end
end
7 changes: 7 additions & 0 deletions app/controllers/saved_searches_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class SavedSearchesController < ApplicationController
include Blacklight::SavedSearches

helper BlacklightAdvancedSearch::RenderConstraintsOverride
end
20 changes: 20 additions & 0 deletions app/forms/generic_work_resource_form.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource GenericWorkResource`
#
# @see https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#forms
# @see https://github.com/samvera/valkyrie/wiki/ChangeSets-and-Dirty-Tracking
class GenericWorkResourceForm < Hyrax::Forms::ResourceForm(GenericWorkResource)
include Hyrax::FormFields(:basic_metadata)
include Hyrax::FormFields(:generic_work_resource)

# Define custom form fields using the Valkyrie::ChangeSet interface
#
# property :my_custom_form_field

# if you want a field in the form, but it doesn't have a directly corresponding
# model attribute, make it virtual
#
# property :user_input_not_destined_for_the_model, virtual: true
end
20 changes: 20 additions & 0 deletions app/forms/image_resource_form.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource ImageResource`
#
# @see https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#forms
# @see https://github.com/samvera/valkyrie/wiki/ChangeSets-and-Dirty-Tracking
class ImageResourceForm < Hyrax::Forms::ResourceForm(ImageResource)
include Hyrax::FormFields(:basic_metadata)
include Hyrax::FormFields(:image_resource)

# Define custom form fields using the Valkyrie::ChangeSet interface
#
# property :my_custom_form_field

# if you want a field in the form, but it doesn't have a directly corresponding
# model attribute, make it virtual
#
# property :user_input_not_destined_for_the_model, virtual: true
end
16 changes: 16 additions & 0 deletions app/indexers/generic_work_resource_indexer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource GenericWorkResource`
class GenericWorkResourceIndexer < Hyrax::ValkyrieWorkIndexer
include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:generic_work_resource)

# Uncomment this block if you want to add custom indexing behavior:
# def to_solr
# super.tap do |index_document|
# index_document[:my_field_tesim] = resource.my_field.map(&:to_s)
# index_document[:other_field_ssim] = resource.other_field
# end
# end
end
16 changes: 16 additions & 0 deletions app/indexers/image_resource_indexer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource ImageResource`
class ImageResourceIndexer < Hyrax::ValkyrieWorkIndexer
include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:image_resource)

# Uncomment this block if you want to add custom indexing behavior:
# def to_solr
# super.tap do |index_document|
# index_document[:my_field_tesim] = resource.my_field.map(&:to_s)
# index_document[:other_field_ssim] = resource.other_field
# end
# end
end
6 changes: 3 additions & 3 deletions app/models/concerns/hyrax/ability/solr_document_ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ def solr_document_abilities
if admin?
can [:manage], ::SolrDocument
else
# OVERRIDE: remove :destroy -- only users with manage access can destroy
# OVERRIDE: remove :destroy -- only users with manage access can destroy This is brought
# about by the permission restrictions added by the Groups with Roles feature,
can [:edit, :update], ::SolrDocument do |solr_doc|
test_edit(solr_doc.id)
end
can :read, ::SolrDocument do |solr_doc|
test_read(solr_doc.id)
end

# "Undo" permission restrictions added by the Groups with Roles feature,
# effectively reverting them back to default Hyrax behavior
# To "Undo" the above override (e.g. return to default Hyrax behavior) set the below ENV.
unless ActiveModel::Type::Boolean.new.cast(
ENV.fetch('HYKU_RESTRICT_CREATE_AND_DESTROY_PERMISSIONS', nil)
)
Expand Down
23 changes: 0 additions & 23 deletions app/models/featured_work.rb

This file was deleted.

1 change: 1 addition & 0 deletions app/models/featured_work_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FeaturedWork.feature_limit = 6
8 changes: 8 additions & 0 deletions app/models/generic_work_resource.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource GenericWorkResource`
class GenericWorkResource < Hyrax::Work
include Hyrax::Schema(:basic_metadata)
include Hyrax::Schema(:generic_work_resource)
end
8 changes: 8 additions & 0 deletions app/models/image_resource.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

# Generated via
# `rails generate hyrax:work_resource ImageResource`
class ImageResource < Hyrax::Work
include Hyrax::Schema(:basic_metadata)
include Hyrax::Schema(:image_resource)
end
7 changes: 4 additions & 3 deletions app/models/solr_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def connection
# @return [Hash] options for the RSolr connection.
def connection_options
bl_defaults = Blacklight.connection_config
af_defaults = ActiveFedora::SolrService.instance.conn.options
af_defaults = Hyrax::SolrService.instance.conn.options
switchable_options.reverse_merge(bl_defaults).reverse_merge(af_defaults)
end

Expand All @@ -22,7 +22,8 @@ def ping
end

def switch!
ActiveFedora::SolrService.instance.conn = connection
Hyrax::SolrService.instance.conn = connection
Valkyrie::IndexingAdapter.adapters[:solr_index].connection = connection
Blacklight.connection_config = connection_options
Blacklight.default_index = nil
end
Expand All @@ -42,7 +43,7 @@ def remove!
end

def self.reset!
ActiveFedora::SolrService.reset!
Hyrax::SolrService.reset!
Blacklight.connection_config = Blacklight.blacklight_yml[::Rails.env].symbolize_keys
Blacklight.default_index = nil
end
Expand Down
33 changes: 33 additions & 0 deletions app/services/hyrax/custom_queries/find_by_bulkrax_identifier.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# frozen_string_literal: true
module Hyrax
module CustomQueries
##
# @see https://github.com/samvera/valkyrie/wiki/Queries#custom-queries
class FindByBulkraxIdentifier
def self.queries
[:find_by_bulkrax_identifier]
end

def initialize(query_service:)
@query_service = query_service
end

attr_reader :query_service
delegate :resource_factory, to: :query_service
delegate :orm_class, to: :resource_factory

##
# @param identifier String
def find_by_bulkrax_identifier(identifier:)
query_service.run_query(sql_by_bulkrax_identifier, identifier).first
end

def sql_by_bulkrax_identifier
<<-SQL
SELECT * FROM orm_resources
WHERE metadata -> 'bulkrax_identifier' ->> 0 = ?;
SQL
end
end
end
end
Loading