Bug 34587: Add borrowernumber to counter logs display
Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com> Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
b7aebb337e
commit
f32636bbbd
1 changed files with 11 additions and 1 deletions
|
@ -69,7 +69,6 @@ export default {
|
|||
this.$route.params.usage_data_provider_id,
|
||||
})
|
||||
.then(
|
||||
// paginated as this request is just to check if there are any counter_files and set this.initialized
|
||||
count => {
|
||||
this.counter_files_count = count
|
||||
this.initialized = true
|
||||
|
@ -134,6 +133,17 @@ export default {
|
|||
searchable: true,
|
||||
orderable: true,
|
||||
},
|
||||
{
|
||||
title: __("Imported by"),
|
||||
render: function (data, type, row, meta) {
|
||||
const importer = row.counter_logs[0].borrowernumber
|
||||
? `<a href="http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=${row.counter_logs[0].borrowernumber}">Borrowernumber ${row.counter_logs[0].borrowernumber}</a>`
|
||||
: "Cronjob"
|
||||
return importer
|
||||
},
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
},
|
||||
]
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue