Bug 36627: Use patron_to_html in 'Imported by' column

For consistency, and to avoid 'null koha' for a file imported by
the koha user (no first name).

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f70a5ffc67)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Pedro Amorim 2024-04-18 09:51:45 +00:00 committed by Paul Derscheid
parent 6a0b086db0
commit 1acb7108b5
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 7 additions and 1 deletions

View File

@ -23,11 +23,13 @@ import KohaTable from "../KohaTable.vue"
export default {
setup() {
const { setConfirmationDialog, setMessage } = inject("mainStore")
const patron_to_html = $patron_to_html
const table = ref()
return {
table,
patron_to_html,
setConfirmationDialog,
setMessage,
}
@ -141,7 +143,11 @@ export default {
render: function (data, type, row, meta) {
const { patron } = row
const importer = patron
? `<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=${patron.patron_id}">${patron.firstname} ${patron.surname}</a>`
? '<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' +
patron.patron_id +
'">' +
$patron_to_html(patron) +
"</a>"
: this.$__("Cronjob")
return importer
},