From 11eb0d1da7c538486812ab14449f1ab8b1004d09 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Fri, 17 May 2024 10:25:52 +0000 Subject: [PATCH] Bug 36894: Display journal article ILL request author This patch fixes the ILL request table to display authors for journal article request types Test plan: 1) Create an ILL request with the type of Journal Article and add an author in the Article author field 2) Click on the List requests button to see the table 3) The Author field should be blank for the request you created 4) Apply patch 5) Hard refresh the browser to reload the javascript 6) The author field should now be visible Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 8138ca5dd7..d1aefcc5e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -247,7 +247,11 @@ $(document).ready(function() { "data": "", // author "orderable": false, "render": function(data, type, row, meta) { - return display_extended_attribute(row, 'author'); + const author = display_extended_attribute(row, 'author'); + if(author) return author + const articleAuthor = display_extended_attribute(row, 'article_author'); + if(articleAuthor) return articleAuthor + return '' } }, { -- 2.39.5