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

Circulation category: update display #556

Merged
merged 1 commit into from
Apr 17, 2021
Merged

Conversation

zannkukai
Copy link
Contributor

@zannkukai zannkukai commented Mar 22, 2021

Co-authored-by: Renaud Michotte renaud.michotte@gmail.com

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai self-assigned this Mar 22, 2021
@zannkukai zannkukai force-pushed the zan-itty-display branch 3 times, most recently from ba95f80 to ec8ec41 Compare March 29, 2021 11:26
@zannkukai zannkukai marked this pull request as ready for review March 29, 2021 11:26
@zannkukai zannkukai added this to the v1.2.0 milestone Mar 29, 2021
@zannkukai zannkukai force-pushed the zan-itty-display branch 2 times, most recently from e847569 to e1f57d6 Compare March 29, 2021 12:38
Copy link
Contributor

@Garfield-fr Garfield-fr left a comment

Choose a reason for hiding this comment

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

If you add functions in the ts file for the template, it would be nice to put changeDetection: ChangeDetectionStrategy.OnPush on the @component parameter

@zannkukai zannkukai force-pushed the zan-itty-display branch 2 times, most recently from ea74530 to 4ba0756 Compare March 30, 2021 13:48
@pronguen pronguen self-requested a review March 30, 2021 14:38
Copy link
Contributor

@pronguen pronguen left a comment

Choose a reason for hiding this comment

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

image

  • Circulation information (in yellow in image above)
    • If the interface is in French, but there is no circulation info defined for this language, it should display the circulation info in another language (the first defined). Currently, it displays the item type name in this case.
    • If there is no circulation info defined in any languages, it should not display anything. The item type name is never displayed as it is an information for the professional.
    • [not blocking] It should not be possible, in the item type, to define two different circulation info for the same language. Currently, the system blocks only if there are two for the same language with the exact same text.
      image
  • Displayed status (negative availability)
    • [not blocking] I would make this field required (at least have one language). Currently, if no displayed status is defined, the item type name is displayed (not wanted).
    • If the interface is in French, but there is no displayed status defined for this language, it should display the status in another language (the first defined). Currently, it displays the item type name in this case.
    • [not blocking] It should not be possible, in the item type, to define two different displayed status for the same language. Currently, the system blocks only if there are two for the same language with the exact same text.
  • Availability
    • You implemented the availability display in the professional interface 👍 👍 👍 This is great, because it was really annoying!
    • [not blocking] The document in image below has two items, both of them have a temporary item type "missing" (not available). The one of the pro view is marked as available, the other as not available.
      image

@zannkukai zannkukai force-pushed the zan-itty-display branch 4 times, most recently from 44d0e11 to 36d995e Compare March 31, 2021 13:59
* Updates display of circulation category detailed view with new fields.
* Use the circulation informations labels instead of category name if
  the label is available in the current used UI language.
* Updates the "availability" colored circle and text behavior according
  to new fields.
* Closes rero/rero-ils#1586.

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai merged commit b02bb0b into rero:dev Apr 17, 2021
@zannkukai zannkukai deleted the zan-itty-display branch April 26, 2021 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The availability of a holdings of type "serial" with no items should not be "no items received"
5 participants