From 821c3a2601c40ee6b719543493aea8ec0a7f9f5c 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 --- 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 8cf93d1baa..40bf2555f7 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.2