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:
parent
32331a1f5a
commit
67c472eeac
|
|
@ -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)))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue