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 694-699 OPAC: Link Here
694
            - pref: MaxOpenSuggestions
694
            - pref: MaxOpenSuggestions
695
              class: integer
695
              class: integer
696
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
696
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
697
        -
698
            - Number of total suggestions
699
            - pref: MaxTotalSuggestions
700
              default: 3
701
              class: integer
702
            - "for"
703
            - pref: NumberOfSuggestionDays
704
              default: 30
705
              class: integer
706
            - "days."
697
    Privacy:
707
    Privacy:
698
        -
708
        -
699
            - pref: StoreLastBorrower
709
            - pref: StoreLastBorrower
700
- 

Return to bug 22774