From: Mike Rylander Date: Wed, 7 Dec 2016 21:47:01 +0000 (-0500) Subject: LP#1663374: Allow metarecord searching by default X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=66c0f6b0f894be46633b99495a5d13cab6073b18;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index bd9c3df0dd..ba96012388 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -150,6 +150,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 -->