Bug 42357: Show patron details on holds table

This patch reintroduces patron details in 'Existing holds' table by using $patron_to_html.

test plan:
a) get a nice fresh ktd and navigate to /cgi-bin/koha/reserve/request.pl?biblionumber=262
b) place a hold for a patron f.e. 23529000035676
c) take a look at the Existing holds tables patron column which only shows the patrons card number.
d) apply patch and run 'yarn js:build'
e) refresh /cgi-bin/koha/reserve/request.pl?biblionumber=262
f) the patron column now should show patrons name
g) set system preference  HidePatronName  to 'Don't show'
h) go to /cgi-bin/koha/reserve/request.pl?biblionumber=262
f) the patron column now should only show the patrons card number.

Signed-off-by: Lawrence O'Regan-Lloyd <loreganlloyd@clamsnet.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jan Kissig 2026-04-15 08:28:22 +00:00 committed by Lucas Gass
parent 93d9e0abe8
commit 48e8411266
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 5 additions and 7 deletions

View File

@ -1535,13 +1535,11 @@ async function load_patron_holds_table(biblio_id, split_data) {
library.name
);
} else {
return (
'<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' +
row.patron.patron_id +
'">' +
data +
"</a>"
);
return $patron_to_html(row.patron, {
url: true,
display_cardnumber: true,
hide_patron_name: HidePatronName,
});
}
},
},