From e95f48b665e998fbccc380b0c7031270840f2287 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 7 Dec 2016 16:47:01 -0500 Subject: [PATCH] LP#1663374: Allow metarecord searching by default Before the TPAC, a site could configure the OPAC to use metarecord searching by default, via a configuration file. Here we bring that back. A new setting is present in templates/opac/parts/config.tt2 to enable this feature. By setting this to a true value (normally 1) the TPAC will silently include the #metabib search modifier in the search form on any interfaces that do not have a UI component that allows the user to control the setting. Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 2 ++ Open-ILS/src/templates/opac/parts/advanced/search.tt2 | 2 +- Open-ILS/src/templates/opac/parts/config.tt2 | 3 +++ Open-ILS/src/templates/opac/parts/searchbar.tt2 | 6 ++++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index c5b2840624..3b1a661e65 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -156,6 +156,8 @@ sub load { return $self->load_logout if $path =~ m|opac/logout|; return $self->load_patron_reg if $path =~ m|opac/register|; + $self->load_simple("myopac") if $path =~ m:opac/myopac:; # A default page for myopac parts + if($path =~ m|opac/login|) { return $self->load_login unless $self->editor->requestor; # already logged in? diff --git a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 index dc650a1c7b..5ea98bf419 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 @@ -132,7 +132,7 @@ (below) to drop down inline w/ its label -->