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

(-)a/installer/data/mysql/atomicupdate/bug-20936.perl (+17 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    $dbh->do(qq{
5
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
6
        ('OPACHoldsHistory','1','','If ON, enables display of Patron Holds History in OPAC','YesNo')
7
    });
8
9
    # or perform some test and warn
10
    # if( !column_exists( 'biblio', 'biblionumber' ) ) {
11
    #    warn "There is something wrong";
12
    # }
13
14
    # Always end with this (adjust the bug info)
15
    SetVersion( $DBversion );
16
    print "Upgrade to $DBversion done (Bug 20936 - Add OPACHoldsHistory preferences)\n";
17
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 388-393 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
388
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
388
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
389
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
389
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
390
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
390
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
391
('OPACHoldsHistory','1','','If ON, enables display of Patron Holds History in OPAC','YesNo'),
391
('OPACHoldsIfAvailableAtPickup','1','','Allow to pickup up holds at libraries where the item is available','YesNo'),
392
('OPACHoldsIfAvailableAtPickup','1','','Allow to pickup up holds at libraries where the item is available','YesNo'),
392
('OPACHoldsIfAvailableAtPickupExceptions','','','List the patron categories not affected by OPACHoldsIfAvailableAtPickup if off','Free'),
393
('OPACHoldsIfAvailableAtPickupExceptions','','','List the patron categories not affected by OPACHoldsIfAvailableAtPickup if off','Free'),
393
('OpacHoldNotes','0','','Show hold notes on OPAC','YesNo'),
394
('OpacHoldNotes','0','','Show hold notes on OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +6 lines)
Lines 708-713 OPAC: Link Here
708
                  yes: Allow
708
                  yes: Allow
709
                  no: "Don't allow"
709
                  no: "Don't allow"
710
            - patrons to see what books they have checked out in the past.
710
            - patrons to see what books they have checked out in the past.
711
        -
712
            - pref: OPACHoldsHistory
713
              choices:
714
                  yes: Allow
715
                  no: "Don't allow"
716
            - patrons to see what books they have place holds in the past.
711
        -
717
        -
712
            - pref: EnableOpacSearchHistory
718
            - pref: EnableOpacSearchHistory
713
              default: 0
719
              default: 0
714
- 

Return to bug 20936