Bug 30055: Restore patron's preview links

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-02-09 15:48:15 +01:00 committed by Fridolin Somers
parent 42bbbb763b
commit eeaac96e4e

View file

@ -212,7 +212,8 @@
"searchable": true,
"orderable": true,
"render": function( data, type, row, meta ) {
return $patron_to_html(row, { invert_name: 1 });
let patron_id = encodeURIComponent(row.patron_id);
return "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=" + patron_id + "\" class=\"patron_preview\" data-borrowernumber=\"" + patron_id + "\" style=\"white-space:nowrap\">" + $patron_to_html(row, { invert_name: 1 }) + "</a>";
}
}
[% CASE 'branch' %]