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

requests: place a request for a patron by a librarian #835

Merged
merged 2 commits into from
Mar 9, 2020
Merged

requests: place a request for a patron by a librarian #835

merged 2 commits into from
Mar 9, 2020

Conversation

BadrAly
Copy link

@BadrAly BadrAly commented Mar 4, 2020

  • Removes duplicate fixtures function.
  • Adds sort on pickup_name location

Co-Authored-by: Bertrand Zuchuat bertrand.zuchuat@rero.ch
Co-Authored-by: Aly Badr aly.badr@rero.ch

Why are you opening this PR?

https://tree.taiga.io/project/rero21-reroils/us/657?milestone=257446

Code review check list

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

rero_ils/modules/items/utils.py Outdated Show resolved Hide resolved
rero_ils/modules/items/utils.py Outdated Show resolved Hide resolved
Aly Badr and others added 2 commits March 5, 2020 10:56
* Removes duplicate fixtures function.

Co-Authored-by: Aly Badr <aly.badr@rero.ch>
* Removes duplicate fixtures function.
* Adds sort on pickup_name location

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Co-Authored-by: Aly Badr <aly.badr@rero.ch>
Comment on lines +333 to +339
def can_request(item_pid, library_pid, patron_barcode):
"""HTTP request to check if a librarian can request an item for a patron.

required_parameters: item_pid, library_pid, patron_barcode
"""
return is_librarian_can_request_item_for_patron(
item_pid, library_pid, patron_barcode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't using immediately is_librarian_can_request_item_for_patron or insert the code of this method into ?

@jma jma merged commit 8806eec into dev Mar 9, 2020
@BadrAly BadrAly deleted the US657 branch March 13, 2020 09:56
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.

5 participants