View | Details | Raw Unified | Return to bug 8701
Collapse All | Expand All

(-)a/docs/opac/OpacHiddenItems.txt (-12 lines)
Lines 1-12 Link Here
1
The OpacHiddenItems syspref allow the user to define custom rules
2
for hiding specific items at opac.
3
4
YAML syntax is used for defining such rules.
5
6
Items can be hidden according to values from the items table:
7
8
field: [value1, value2, ...]
9
10
Example :
11
withdrawn: [0, 1]
12
homebranch: [homebranch1, homebranch2]
(-)a/installer/data/mysql/atomicupdate/bug_8701_opachiddenitems.perl (+6 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "UPDATE systempreferences SET explanation = 'This syspref allows to define custom rules for hiding specific items at the OPAC. See http://wiki.koha-community.org/wiki/OpacHiddenItems for more information.' WHERE variable = 'OpacHiddenItems'");
4
    SetVersion( $DBversion );
5
    print "Upgrade to $DBversion done (Bug 8701 - Update OpacHiddenItems system preference description)\n";
6
}
(-)a/installer/data/mysql/sysprefs.sql (-2 / +1 lines)
Lines 361-367 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
361
('OPACFinesTab','1','','If OFF the patron fines tab in the OPAC is disabled.','YesNo'),
361
('OPACFinesTab','1','','If OFF the patron fines tab in the OPAC is disabled.','YesNo'),
362
('OPACFRBRizeEditions','0','','If ON, the OPAC will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
362
('OPACFRBRizeEditions','0','','If ON, the OPAC will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
363
('opacheader','','70|10','Add HTML to be included as a custom header in the OPAC','Textarea'),
363
('opacheader','','70|10','Add HTML to be included as a custom header in the OPAC','Textarea'),
364
('OpacHiddenItems','','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','Textarea'),
364
('OpacHiddenItems','','','This syspref allows to define custom rules for hiding specific items at the OPAC. See http://wiki.koha-community.org/wiki/OpacHiddenItems for more information.','Textarea'),
365
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
365
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
366
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
366
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
367
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
367
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
368
- 

Return to bug 8701