From 88980dac4ca4d04c7b55a9126e98e93b17b80947 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 18 Jun 2021 18:12:08 -0400 Subject: [PATCH] LP1904754 Former precat still displays precat info This fixes a display issue where the precat title and author were still displaying once the record was no longer a precat, which effectively duplicated the title and author. Signed-off-by: Terran McCanna Signed-off-by: Jason Boyer Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 11 +++-------- Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index 6d6e08cde9..cc5a57e052 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -87,16 +87,11 @@ + - - {{item['dummy_title']}} - - - - {{item['call_number.record.simple_record.title']}} - - + {{item['call_number.record.simple_record.title'] ? + '' + item['call_number.record.simple_record.title'] + '' : item['dummy_title'] }} diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 index aff03bf0df..f325321d7d 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 @@ -4,7 +4,7 @@ [% l('This item has been marked as Deleted.') %] -
+
[% l('Precat Title') %]
{{copy.dummy_title()}}
-- 2.11.0