Bug 33568: Restore link to patron

Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2023-10-30 17:11:44 +01:00 committed by Katrin Fischer
parent 32331a1f5a
commit 67c472eeac
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 4 additions and 4 deletions

View File

@ -448,11 +448,11 @@
nodes += '<span>';
if ( row.checkout.onsite_checkout ) {
let patron_to_html = $patron_to_html(row.checkout.patron);
let patron_to_html = $patron_to_html(row.checkout.patron, { url: true });
nodes += _("Currently in local use by %s").format(patron_to_html);
} else {
nodes += '<span class="datedue">';
let patron_to_html = $patron_to_html(row.checkout.patron);
let patron_to_html = $patron_to_html(row.checkout.patron, { url: true });
nodes += _("Checked out to %s").format(patron_to_html);
}
nodes += ': ';
@ -498,7 +498,7 @@
[%# Hacky for patron_to_html in case we simply want to display the patron's library name %]
row.first_hold.patron.library = { name: libraries_names.get(row.first_hold.patron.library_id) };
let patron_to_html = $patron_to_html(row.first_hold.patron); [%# FIXME What about hide_patron_infos_if_needed?? %]
let patron_to_html = $patron_to_html(row.first_hold.patron, { url: true });
nodes += ' <span class="heldfor">%s</span>'.format(_("Hold for: %s").format(patron_to_html));
}
[% END %]
@ -515,7 +515,7 @@
[%# Hacky for patron_to_html in case we simply want to display the patron's library name %]
row.recall.patron.library = { name: libraries_names.get(row.recall.patron.library_id) };
let patron_to_html = $patron_to_html(row.recall.patron);
let patron_to_html = $patron_to_html(row.recall.patron, {url: true });
nodes += '<span>%s</span>'.format(_("recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date)))
}
}