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

Allinson flex support #175

Merged
merged 8 commits into from
Mar 10, 2023
Merged

Allinson flex support #175

merged 8 commits into from
Mar 10, 2023

Conversation

kirkkwang
Copy link
Contributor

@kirkkwang kirkkwang commented Mar 9, 2023

Add support for Allinson Flex metadata

Implemented a sql query to pull labels and names from
AllinsonFlex::ProfileProperty so all defined m3 metadata can be
displayed.


Refactor SQL to ActiveRecord

This commit refactors the sql query into an ActiveRecord query but left
notes just in case we need it again later.


Optimize solr query

Instead of creating new solr documents, this commit will find existing
solr documents to use. Also adding support for solr documents that do
not have the methods like #title and instead use ['title_tesim'].


Fix specs and refactor

The failing spec revealed some inefficiencies and those were addressed
in this commit.

Implemented a sql query to pull labels and names from
`AllinsonFlex::ProfileProperty` so all defined m3 metadata can be
displayed.
This commit refactors the sql query into an ActiveRecord query but left
notes just in case we need it again later.
Instead of creating new solr documents, this commit will find existing
solr documents to use.  Also adding support for solr documents that do
not have the methods like `#title` and instead use `['title_tesim']`.
The failing spec revealed some inefficiencies and those were addressed
in this commit.
@kirkkwang kirkkwang force-pushed the allinson-flex-support branch from 0337694 to 551017f Compare March 10, 2023 01:37
This commit will clean up the AR query and rename the properties more
semantically in a later step.  `value` becomes `label` and `indexing`
becomes `options` in `.allinson_flex_fields_for`.
lib/iiif_print/metadata.rb Show resolved Hide resolved
lib/iiif_print/metadata.rb Show resolved Hide resolved
@kirkkwang kirkkwang merged commit 315a737 into main Mar 10, 2023
@kirkkwang kirkkwang deleted the allinson-flex-support branch March 10, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants