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

(-)a/installer/data/mysql/atomicupdate/bug_22774.perl (+18 lines)
Line 0 Link Here
1
$DBversion = '19.06.00.XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    $dbh->do( q{
5
            INSERT IGNORE INTO systempreferences (variable,value,explanation,type) VALUES
6
                ('MaxTotalSuggestions','3','Number of total suggestions','free'),
7
                ('NumberOfSuggestionDays','30','days','free')
8
            });
9
10
    # or perform some test and warn
11
    # if( !column_exists( 'biblio', 'biblionumber' ) ) {
12
    #    warn "There is something wrong";
13
    # }
14
15
    # Always end with this (adjust the bug info)
16
    SetVersion( $DBversion );
17
    print "Upgrade to $DBversion done (Bug 22774 - Limit Purchase Suggestion in a specified Time period)\n";
18
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +10 lines)
Lines 665-670 OPAC: Link Here
665
            - pref: MaxOpenSuggestions
665
            - pref: MaxOpenSuggestions
666
              class: integer
666
              class: integer
667
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
667
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
668
        -
669
            - Number of total suggestions
670
            - pref: MaxTotalSuggestions
671
              default: 3
672
              class: integer
673
            - "for"
674
            - pref: NumberOfSuggestionDays
675
              default: 30
676
              class: integer
677
            - "days."
668
    Privacy:
678
    Privacy:
669
        -
679
        -
670
            - pref: StoreLastBorrower
680
            - pref: StoreLastBorrower
671
- 

Return to bug 22774