From c9cdea869b574306ca09ada2c5e5058ec540a873 Mon Sep 17 00:00:00 2001 From: Peter Lux Date: Fri, 9 Dec 2011 16:12:00 -0500 Subject: [PATCH] TPAC: Link to Basic Search from advanced page The searchbar in basic search, results, record details offers an option to get to advanced search - but advanced search doesn't offer a way to get directly back to a basic search. Now it does; however, some CSS is required to make it look consistent. Signed-off-by: Peter Lux Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/advanced.tt2 | 12 +++++++++- templates_custom/opac/advanced.tt2 | 41 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 templates_custom/opac/advanced.tt2 diff --git a/Open-ILS/src/templates/opac/advanced.tt2 b/Open-ILS/src/templates/opac/advanced.tt2 index db609d2f13..7114390337 100644 --- a/Open-ILS/src/templates/opac/advanced.tt2 +++ b/Open-ILS/src/templates/opac/advanced.tt2 @@ -6,8 +6,18 @@ loc = CGI.param("loc"); -%]
+
+ [% l('Search the Catalog') %] + [% l('Basic Search') %] +
+ +
-
+ +
+ [% l('Advanced Search') %] [% l('Numeric Search') %] [% l('Expert Search') %] diff --git a/templates_custom/opac/advanced.tt2 b/templates_custom/opac/advanced.tt2 new file mode 100644 index 0000000000..7114390337 --- /dev/null +++ b/templates_custom/opac/advanced.tt2 @@ -0,0 +1,41 @@ +[%- PROCESS "opac/parts/header.tt2"; + WRAPPER "opac/parts/base.tt2"; + INCLUDE "opac/parts/topnav.tt2"; + ctx.page_title = l("Advanced Search"); + pane = CGI.param("pane") || "advanced"; + loc = CGI.param("loc"); +-%] +
+
+ [% l('Search the Catalog') %] + [% l('Basic Search') %] +
+ + + +
+
+
+
+ [% IF pane == 'advanced' %] + [% INCLUDE "opac/parts/advanced/search.tt2" %] + [% ELSIF pane == 'numeric' %] + [% INCLUDE "opac/parts/advanced/numeric.tt2" %] + [% ELSIF pane == 'expert' %] + [% INCLUDE "opac/parts/advanced/expert.tt2" %] + [% END %] +
+
+
+
+[% END %] -- 2.11.0