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>
(cherry picked from commit 48e8411266)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
parent
d1b4c98b22
commit
3bf555f09a
|
|
@ -1522,13 +1522,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,
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue