-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: correct circulation policy #633
Conversation
3735a15
to
2b66e27
Compare
7ed70d0
to
d2c15fc
Compare
d2c15fc
to
797ee0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool, cause it solves many issues, IMHO #625 also, as I have checked. Could you verify this?
If this is the case, it could be nice to be merged into master, or into a specific branch to be deployed on ils.test for the next workshop.
I checked that. Unfortunately, it doesn't fix this issue, which is related to the editor form and not to the brief or detailed view. Actually, I wasn't able to save a new circulation policy. I also saw that cancelling the add or edit generates errors in the console, even if the ui does what is expected. So this form really needs to be reviewed. EDIT: Actually, I tested it on rero-ils-ui. There are some issues there, but I was able to create a new ci-po on rero-ils with expected saving of settings. Those settings were not available anymore for another ci-po creation, as expected. I will add |
3b23791
to
6bf99d5
Compare
6bf99d5
to
cf9bb07
Compare
* Corrects item types and patron_types of circulation policy with pid = 10 and 11. * Adds test to check data consistency when ci-po are created. * Adds new patron type. * Corrects import sorting. * Closes rero#625. * Closes rero#626. * Closes rero#213. Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
cf9bb07
to
169a7cb
Compare
Co-Authored-by: Alicia Zangger alicia.zangger@rero.ch
Why are you opening this PR?
Some circulation policies have item types and patron types not related to their organisation.
How to test?
Circulation policies create (issue #213):
Run
./scripts/setup
-> should proceed as usual with no errorThen change a patron type or an item type of a circulation policy for one that doesn't belong to the correct organisation in :
data/circulation_policies.json
Run
./scripts/setup
: the script will raise an error and stop.Run
./scripts/setup -p
: the script will raise an error and continue.Issue #625 :
On rero-ils: open ci-po editor and confirm that patron type and item type settings are loaded.
See also the issue details for more checks.
Issue #626 :
Login as Irma Pince: reroilstest+irma@gmail.com
Open ci-po editor to add or edit a ci-po. Saving new ci-po or modifications doesn't work on rero-ils-ui with proxy, but on rero-ils it's ok.
Code review check list