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.12.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','','Number of total suggestions','Free'),
7
                ('NumberOfSuggestionDays','','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 / +8 lines)
Lines 695-700 OPAC: Link Here
695
            - pref: MaxOpenSuggestions
695
            - pref: MaxOpenSuggestions
696
              class: integer
696
              class: integer
697
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
697
            - "open suggestions. Leave empty for no limit. **Note: this setting does not affect anonymous suggestions"
698
        -
699
            - Number of total suggestions
700
            - pref: MaxTotalSuggestions
701
              class: integer
702
            - "for"
703
            - pref: NumberOfSuggestionDays
704
              class: integer
705
            - "days."
698
    Privacy:
706
    Privacy:
699
        -
707
        -
700
            - pref: AnonSuggestions
708
            - pref: AnonSuggestions
701
- 

Return to bug 22774