From: Peter Lux Date: Fri, 9 Dec 2011 21:12:00 +0000 (-0500) Subject: TPAC: Link to Basic Search from advanced page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c9cdea869b574306ca09ada2c5e5058ec540a873;p=evergreen%2Fpines.git 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 --- 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 %]