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

CatalogSearch feature parity #258

Closed
Tracked by #113
ShanaLMoore opened this issue Oct 5, 2023 · 2 comments
Closed
Tracked by #113

CatalogSearch feature parity #258

ShanaLMoore opened this issue Oct 5, 2023 · 2 comments

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 5, 2023

Summary

In adventist proper's staging, work details are displayed in the catalog search results page.

For example, for Journal article we see the following displayed:

  • Author
  • Part of
  • Date
  • Subject
  • Source
  • Description

This ticket is to check each work type and/or make adventist knapsack display the same. Notice we also have a lot of translations missing.

Staging example

Image

ADV Knapsack example

Image

@ShanaLMoore ShanaLMoore changed the title CatalogSearch CatalogSearch feature parity Oct 5, 2023
jeremyf referenced this issue Oct 5, 2023
Prior to this change, assuming my default translation was "en" when I
called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would
get `Translation missing: en.dog_biscuits.fields.date_issued`.

We had added DogBiscuits into that path but we had not reloaded the
back-end.

Further, the catalog controller was no longer doing useful work.  The
`Rails.root` is `hyrax-webapp`; which would already be working.  For
more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1].

With this change, I have a small test to verify that dog biscuits
translations are in fact loaded.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244

[1]: #60)
jeremyf referenced this issue Oct 5, 2023
Prior to this change, assuming my default translation was "en" when I
called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would
get `Translation missing: en.dog_biscuits.fields.date_issued`.

We had added DogBiscuits into that path but we had not reloaded the
back-end.

Further, the catalog controller was no longer doing useful work.  The
`Rails.root` is `hyrax-webapp`; which would already be working.  For
more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1].

With this change, I have a small test to verify that dog biscuits
translations are in fact loaded.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244

[1]: #60)
jeremyf referenced this issue Oct 5, 2023
Prior to this change, assuming my default translation was "en" when I
called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would
get `Translation missing: en.dog_biscuits.fields.date_issued`.

We had added DogBiscuits into that path but we had not reloaded the
back-end.

Further, the catalog controller was no longer doing useful work.  The
`Rails.root` is `hyrax-webapp`; which would already be working.  For
more on this anti-pattern, see [Potential Issues Around Knapsack and Rails.root][1].

With this change, I have a small test to verify that dog biscuits
translations are in fact loaded.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244

[1]: #60)
jeremyf referenced this issue Oct 5, 2023
Prior to this change, assuming my default translation was "en" when I
called the following—`I18n.t('dog_biscuits.fields.date_issued')`—I would
get `Translation missing: en.dog_biscuits.fields.date_issued`.

We had added DogBiscuits into that path but we had not reloaded the
back-end.

Further, the catalog controller was no longer doing useful work.  The
`Rails.root` is `hyrax-webapp`; which would already be working.  For
more on this anti-pattern, see [Potential Issues Around Knapsack and
Rails.root][1].

With this change, I have a small test to verify that dog biscuits
translations are in fact loaded.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244

[1]: #60)
jeremyf referenced this issue Oct 6, 2023
Prior to this change, we had ensured knapsack's translations took
precedence over Hyku's.  However, that ensuring occurred at the
after_initialize.  We had missed the CatalogController's translation
moment as well.

When we specify the index fields in the CatalogController, blacklight
caches those translations.  However, in the case of dogbiscuits, those
are not yet loaded.  Which results in a translation error; even though
we later load the dog biscuits translations.

With this change, I have added two tests to:

1. verify that translations are correct for the catalog controller
2. that when the app boots, the Knapsack translations take precedence
   over Hyku.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244
- #63

[1]: #60)
jeremyf referenced this issue Oct 6, 2023
Prior to this change, we had ensured knapsack's translations took
precedence over Hyku's.  However, that ensuring occurred at the
after_initialize.  We had missed the CatalogController's translation
moment as well.

When we specify the index fields in the CatalogController, blacklight
caches those translations.  However, in the case of dogbiscuits, those
are not yet loaded.  Which results in a translation error; even though
we later load the dog biscuits translations.

With this change, I have added two tests to:

1. verify that translations are correct for the catalog controller
2. that when the app boots, the Knapsack translations take precedence
   over Hyku.

Related to:

- https://github.com/scientist-softserv/adventist-dl/issues/611
- https://github.com/scientist-softserv/adventist-dl/issues/227
- scientist-softserv/adventist-dl#244
- #63

[1]: #60)
@jeremyf
Copy link
Contributor

jeremyf commented Oct 6, 2023

The fonts are different but the translations are up (I think someone's working on the UI tests for fonts)

@KatharineV
Copy link
Collaborator

KatharineV commented Oct 11, 2023

Testing results

Journal Article

  • On prod: Author, Part of, Date, Subject, Source, Description.
  • On Knapsack: Author, Part of, Subject, Source, Description.
  • Date field needs to be added.

Image

  • On prod: Author, Part of, Date, Subject, Source, Description
  • On Knapsack: Author, Part of, Subject, Source, Description
  • Date field needs to be added.

Published Work

  • On prod: Author, Date, Subject, Source, Description.
  • On Knapsack: Author, Date, Subject, Source.
  • Need to add Description.

Generic Work
NOTE: This is called "Work" on ADL prod and "Generic Work" on Knapsack.

  • On prod: Author, Part of, Date, Subject, Source, Description.
  • On Knapsack: Author, Part of, Date, Subject, Source, Description.
  • Nothing to add.

Collection

  • On prod: Author, Date, Subject, Description.
  • On Knapsack: Author, Date, Subject, Description.
  • Nothing to add.

Thesis

  • On prod: Author, Date, Subject, Source, Description.
  • On Knapsack: Author, Date, Subject, Source.
  • Need to add Description.

Conference Item:

  • On prod: Author, Part of, Subject.
  • On Knapsack: Author, Part of, Subject.
  • Nothing to add.

Dataset

  • On prod: Author, Date, Subject, Source.
  • On Knapsack: Author, Date, Subject, Source.
  • Nothing to add.

Exam Paper:

  • On prod: Author, Subject, Source, Description.
  • On Knapsack: Author, Date, Subject, Source.
  • Nothing to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants