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:
Matt Blenkinsop 2023-08-24 14:40:47 +00:00 committed by Tomas Cohen Arazi
parent b7aebb337e
commit f32636bbbd
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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,
},
]
},
},