From 455c4f03d861b1623fa66f1fee94d6aec96d06c9 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 (cherry picked from commit 11eb0d1da7c538486812ab14449f1ab8b1004d09) Signed-off-by: Lucas Gass (cherry picked from commit b12f880c9380b1dd56a630748d4076feab5cf0ab) Signed-off-by: Fridolin Somers --- 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 98e9aec93d..16235c84bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -232,7 +232,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