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

item: field call number is now optional #971

Merged
merged 1 commit into from May 5, 2020

Conversation

BadrAly
Copy link

@BadrAly BadrAly commented May 1, 2020

The item call number is now an optional field in both the
item json schema and item editor. This field is not populated
if not given by the librarian.

The item barcode remains a required field in the item json schema,
on the other side, it is an optional field in the item editor.

If a librarian decides not to add an item barcode, the system
will automatically populate the barcode with the following:
f-current timestamp.

  • Adapts schema, tests and files correspondingly.

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com
Co-Authored-by: Aly Badraly.badr@rero.ch

Why are you opening this PR?

https://tree.taiga.io/project/rero21-reroils/us/1328?milestone=263424

How to test?

bootstrap + setup
in the UI, you should be able to add items without barcodes

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@BadrAly BadrAly self-assigned this May 1, 2020
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch 2 times, most recently from 7d74f38 to 6807087 Compare May 1, 2020 08:16
@BadrAly BadrAly marked this pull request as ready for review May 1, 2020 09:18
@BadrAly BadrAly requested a review from zannkukai May 1, 2020 09:18
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Concerning the commit message (which is formally perfect), please add a reason why these fields are now optional in the editor but automatically generated.

@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch from 6807087 to 3b17492 Compare May 4, 2020 11:25
@BadrAly BadrAly changed the title item: fields barcode and call number are now optional item: field call number is now optional May 4, 2020
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch from 3b17492 to ab61552 Compare May 4, 2020 11:31
@BadrAly BadrAly requested review from rerowep and jma May 4, 2020 11:39
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch 3 times, most recently from adb78fb to ad8cb14 Compare May 4, 2020 15:08
rero_ils/modules/items/api.py Outdated Show resolved Hide resolved
rero_ils/modules/items/api.py Outdated Show resolved Hide resolved
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch from ad8cb14 to 3d75c72 Compare May 5, 2020 06:06
@BadrAly BadrAly requested a review from rerowep May 5, 2020 06:07
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch from 3d75c72 to d7acf6a Compare May 5, 2020 06:26
rero_ils/modules/items/api.py Show resolved Hide resolved
@BadrAly BadrAly requested a review from jma May 5, 2020 10:00
The item call number is now an optional field in both the
item json schema and item editor. This field is not populated
if not given by the librarian.

The item barcode remains a required field in the item json schema,
on the other side, it is an optional field in the item editor.

If a librarian decides not to add an item barcode, the system
will automatically populate the barcode with the following:
f-current timestamp.

* Adapts schema, tests and files correspondingly.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
Co-Authored-by: Aly Badr<aly.badr@rero.ch>
@BadrAly BadrAly force-pushed the baa-item-barcode-call-number branch from d7acf6a to 7283789 Compare May 5, 2020 10:03
@BadrAly BadrAly merged commit 8c9ca0a into rero:dev May 5, 2020
@BadrAly BadrAly deleted the baa-item-barcode-call-number branch November 5, 2020 13:37
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.

None yet

6 participants