In the checkout tab, the barcode scanner didn't auto-checkout a book on being scanned for a patron due to onSearchHandler not passing the patronPid argument to the executeSearch function. This PR change will use the patronDetails available in this.props and will fill in the patronPid whenever the parameter is undefined
:heart: Thank you for your contribution!
Description
In the checkout tab, the barcode scanner didn't auto-checkout a book on being scanned for a patron due to
onSearchHandler
not passing the patronPid argument to the executeSearch function. This PR change will use the patronDetails available inthis.props
and will fill in the patronPid whenever the parameter is undefinedFixes: https://github.com/CERNDocumentServer/cds-ils/issues/546
Note: The barcode scanner does the following things on a scan - -> Type in the barcode -> Press the return key
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
https://github.com/inveniosoftware/react-invenio-app-ils/assets/50872172/ee037db4-131a-4b34-8cfb-bae7fe6af91d