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 385-390 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
385
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
385
('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'),
386
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
386
('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'),
387
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
387
('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'),
388
('OPACHoldsHistory','1','','If ON, enables display of Patron Holds History in OPAC','YesNo'),
388
('OPACHoldsIfAvailableAtPickup','1','','Allow to pickup up holds at libraries where the item is available','YesNo'),
389
('OPACHoldsIfAvailableAtPickup','1','','Allow to pickup up holds at libraries where the item is available','YesNo'),
389
('OPACHoldsIfAvailableAtPickupExceptions','','','List the patron categories not affected by OPACHoldsIfAvailableAtPickup if off','Free'),
390
('OPACHoldsIfAvailableAtPickupExceptions','','','List the patron categories not affected by OPACHoldsIfAvailableAtPickup if off','Free'),
390
('OpacHoldNotes','0','','Show hold notes on OPAC','YesNo'),
391
('OpacHoldNotes','0','','Show hold notes on OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +6 lines)
Lines 714-719 OPAC: Link Here
714
                  yes: Allow
714
                  yes: Allow
715
                  no: "Don't allow"
715
                  no: "Don't allow"
716
            - patrons to see what books they have checked out in the past.
716
            - patrons to see what books they have checked out in the past.
717
        -
718
            - pref: OPACHoldsHistory
719
              choices:
720
                  yes: Allow
721
                  no: "Don't allow"
722
            - patrons to see what books they have place holds in the past.
717
        -
723
        -
718
            - pref: EnableOpacSearchHistory
724
            - pref: EnableOpacSearchHistory
719
              default: 0
725
              default: 0
720
- 

Return to bug 20936