From: Dan Scott Date: Wed, 18 Sep 2013 17:13:41 +0000 (-0400) Subject: Minor fix for non-existent pubdates in search results X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7adb8c4c13429c5ab64ba77f7e926ede6bbc8e8b;p=evergreen%2Fequinox.git Minor fix for non-existent pubdates in search results If you do not have a pubdate, it is better etter to have nothing follow the format label than "()". Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 4edda2e240..394bfe8ad3 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -96,10 +96,14 @@ END; [% attrs.format_label; %] [%- END %] [%- UNLESS CGI.param('detail_record_view') - OR (show_more_details.default == 'true' - OR show_more_details.default == 'hide') - %] ([% attrs.pubdate | html %]) - [%- END -%] + OR (show_more_details.default == 'true' + OR show_more_details.default == 'hide'); + IF attrs.pubdate; + pubdate_clean = attrs.pubdate | html; + l(" ([_1])", pubdate_clean); + END; + END + -%]