Bug 15812: Use patron search in place of circ search
authorNick Clemens <nick@bywatersolutions.com>
Fri, 24 Sep 2021 00:05:30 +0000 (00:05 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 14 Oct 2021 07:19:30 +0000 (09:19 +0200)
commitc7a7e4581200ae8472aed66d38250b7cf28e1755
treedc8e607dddeaa00837c09ed9d514960dcdfbc4a2
parent47634e087c57e25ac5df4b495287dfc09edfd207
Bug 15812: Use patron search in place of circ search

The 'Checkout' search hijacks some of the DataTables searching code used for 'Search patrons'
Rather than try to implement the search again on another page, we can simply send the user
to the patron search if the cardnumber is not found

Additionally, this patch adds a 'Check out' button to the patron search results to allow
going to checkotus directly

To test:
1 - Apply patch
2 - Perform a 'Checkout' search from the header
3 - Note that:
    For a cardnumber, you are redirected directly to checkouts page for the borrower
    For a search with one result, you are redirected directly to the checkout page for the borrower
    For a search with many results, you are redirected to the patron search results
    and there is a 'Checkout' button under the cardnumber
4 - Confirm circulation page works as expected (i.e. checkout to a patron)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt
members/member.pl