From 1327ffb06c3199bb40c4b4b9d5868d1c5c631d96 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 9 Apr 2012 13:59:56 -0400 Subject: [PATCH] kpac : no results message Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/src/templates/kpac/results.tt2 | 34 ++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/Open-ILS/src/templates/kpac/results.tt2 b/Open-ILS/src/templates/kpac/results.tt2 index 8a8dc0d631..b13da77406 100644 --- a/Open-ILS/src/templates/kpac/results.tt2 +++ b/Open-ILS/src/templates/kpac/results.tt2 @@ -6,23 +6,31 @@

Search Results

- +[% IF ctx.records.size == 0 %] -
+
+
+

[% l('No records were found that matched your search.') %]

+
-[% FOR rec IN ctx.records; - attrs = {marc_xml => rec.marc_xml}; - PROCESS get_marc_attrs args=attrs %] +[% ELSE %] - [% INCLUDE 'kpac/parts/record_row.tt2' show_actions=1 rec_id=rec.id%] + -[% END %] -
+
[% + FOR rec IN ctx.records; + attrs = {marc_xml => rec.marc_xml}; + PROCESS get_marc_attrs args=attrs; + INCLUDE 'kpac/parts/record_row.tt2' show_actions=1 rec_id=rec.id; + END; + %]
+ + - +[% END %] [% END %] -- 2.11.0