Bug 21978: Use patron-title.inc in request.tt
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 25 Apr 2022 11:14:29 +0000 (12:14 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Jun 2022 15:29:01 +0000 (12:29 -0300)
commita14dfafa2e15ee91896f60b28446bdf0016e5bfc
tree133dab7863617bb74adc11382a266a830a7007c4
parenta89c710978a71dffe7ff8fbb54f5c03b5b722e95
Bug 21978: Use patron-title.inc in request.tt

This patch updates all manual accurences of the patron title display
to use the patron-title.inc include (so we get middlename handling)
in request.tt.

We also add the option to hide the cardnumber from the include and set
the link_to to 'members_pay' to retain the current display format on
this page.

Test plan
You'll need to trigger the following cases to test all cases:
1) Too many holds
2) Account expired
3) Has restrictions
4) Outstanding fines
5) Already has hold on item
6) No holds allowed
7) Too many holds for this record
8) Already in possession
9) Already has a hold
10) Already has a recall
11) Pickup library doesn't many patron home library

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt