Bug 1172: Added OPACPatronDetails system preference
This patch allows library staff to disable the patron details tab on the OPAC. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
8678154392
commit
e71c8a4343
|
|
@ -351,6 +351,7 @@ sub get_template_and_user {
|
|||
OpacMainUserBlock => "" . C4::Context->preference("OpacMainUserBlock"),
|
||||
OpacNav => "" . C4::Context->preference("OpacNav"),
|
||||
OpacPasswordChange => C4::Context->preference("OpacPasswordChange"),
|
||||
OPACPatronDetails => C4::Context->preference("OPACPatronDetails"),
|
||||
OpacTopissue => C4::Context->preference("OpacTopissue"),
|
||||
RequestOnOpac => C4::Context->preference("RequestOnOpac"),
|
||||
TemplateEncoding => "". C4::Context->preference("TemplateEncoding"),
|
||||
|
|
|
|||
|
|
@ -318,6 +318,7 @@ $tabsysprefs{OPACSearchForTitleIn} = "OPAC";
|
|||
$tabsysprefs{OPACShelfBrowser} = "OPAC";
|
||||
$tabsysprefs{OPACDisplayRequestPriority} = "OPAC";
|
||||
$tabsysprefs{OPACAllowHoldDateInFuture} = "OPAC";
|
||||
$tabsysprefs{OPACPatronDetails} = "OPAC";
|
||||
|
||||
# OPAC
|
||||
$tabsysprefs{SearchMyLibraryFirst} = "OPAC";
|
||||
|
|
|
|||
|
|
@ -257,3 +257,4 @@ INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanatio
|
|||
INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'DisplayClearScreenButton', '0', '', 'If set to ON, a clear screen button will appear on the circulation page.', 'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('HidePatronName', '0', '', 'If this is switched on, patron''s cardnumber will be shown instead of their name on the holds and catalog screens', 'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACSearchForTitleIn','<li class="yuimenuitem"><a target="_blank" class="yuimenuitemlabel" href="http://worldcat.org/search?q={TITLE}"">Other Libraries (WorldCat)</a></li>\n<li class="yuimenuitem"><a class="yuimenuitemlabel" href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Other Databases (Google Scholar)</a></li>\n<li class="yuimenuitem"><a class="yuimenuitemlabel" href="http://www.bookfinder.com/search/?author={AUTHOR}&title={TITLE}&st=xl&ac=qr" target="_blank">Online Stores (Bookfinder.com)</a></li>','Enter the HTML that will appear in the \'Search for this title in\' box on the detail page in the OPAC. Enter {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the URL. Leave blank to disable \'More Searches\' menu.','70|10','Textarea')
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACPatronDetails','1','If OFF the patron details tab in the OPAC is disabled.','','YesNo');
|
||||
|
|
|
|||
|
|
@ -2620,6 +2620,14 @@ $DBversion = '3.01.00.XXX';
|
|||
SetVersion ($DBversion);
|
||||
print "Upgrade to $DBversion done (changed OPACSearchForTitleIn per requests in bug 1934)\n";
|
||||
}
|
||||
|
||||
$DBversion = '3.01.00.XXX';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACPatronDetails','1','If OFF the patron details tab in the OPAC is disabled.','','YesNo');");
|
||||
SetVersion ($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 1172 : Add OPACPatronDetails syspref)\n";
|
||||
}
|
||||
|
||||
|
||||
=item DropAllForeignKeys($table)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
<ul>
|
||||
<!-- TMPL_IF NAME="userview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-user.pl">my summary</a></li>
|
||||
<!-- TMPL_IF NAME="accountview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-account.pl">my fines</a></li>
|
||||
<!-- TMPL_IF NAME="OPACPatronDetails" -->
|
||||
<!-- TMPL_IF NAME="userupdateview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-userupdate.pl">my personal details</a></li>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="TagsEnabled" -->
|
||||
<!-- TMPL_IF NAME="tagsview" --><li class="active"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-tags.pl">my tags</a></li>
|
||||
<!-- /TMPL_IF -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue