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

(-)a/admin/preferences.pl (-1 / +6 lines)
Lines 33-38 use IO::File; Link Here
33
use YAML::XS;
33
use YAML::XS;
34
use Encode;
34
use Encode;
35
use List::MoreUtils qw( any uniq );
35
use List::MoreUtils qw( any uniq );
36
use Koha::BiblioFrameworks;
36
37
37
sub GetTab {
38
sub GetTab {
38
    my ( $input, $tab ) = @_;
39
    my ( $input, $tab ) = @_;
Lines 113-119 sub _get_chunk { Link Here
113
                    $options{'choices'} = { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list };
114
                    $options{'choices'} = { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list };
114
                    $add_blank = 1;
115
                    $add_blank = 1;
115
                }
116
                }
116
            } else {
117
            } elsif ($options{choices} eq 'framework-codes') {
118
                $options{'choices'} = { map { $_->frameworkcode => $_->frameworktext } Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] })->as_list };
119
                $add_blank = 1;
120
            }
121
             else {
117
                die 'Unrecognized source of preference values: ' . $options{'choices'};
122
                die 'Unrecognized source of preference values: ' . $options{'choices'};
118
            }
123
            }
119
        }
124
        }
(-)a/installer/data/mysql/atomicupdate/bug_32773_AllowAsFastAddFrameworks_syspref.pl (+20 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "32773",
6
    description => "Add `AllowAsFastAddFrameworks` preference",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
        try {
11
            $dbh->do(q{
12
                INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) 
13
                VALUES ('AllowAsFastAddFrameworks', '', NULL, 'List of Bibliographic frameworks to allow as Fast Add', 'multiple')});
14
            say_success( $out, "Added system preference 'AllowAsFastAddFrameworks'" );
15
        }
16
        catch {
17
            say_failure( $out, "Database modification failed with errors: $_" );
18
        };
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 25-30 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
25
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
25
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
26
('AggressiveMatchOnISBN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISBNs in the imported record as a phrase in the ISBN fields of already cataloged records when matching on ISBN with the record import tool','YesNo'),
26
('AggressiveMatchOnISBN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISBNs in the imported record as a phrase in the ISBN fields of already cataloged records when matching on ISBN with the record import tool','YesNo'),
27
('AggressiveMatchOnISSN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISSNs in the imported record as a phrase in the ISSN fields of already cataloged records when matching on ISSN with the record import tool','YesNo'),
27
('AggressiveMatchOnISSN','0', NULL,'If enabled, attempt to match aggressively by trying all variations of the ISSNs in the imported record as a phrase in the ISSN fields of already cataloged records when matching on ISSN with the record import tool','YesNo'),
28
('AllowAsFastAddFrameworks', '', NULL, 'Allow the selected bibliographic frameworks to be used as Fast Add', 'multiple'),
28
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
29
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
29
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
30
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
30
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
31
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-1 / +5 lines)
Lines 217-222 Cataloging: Link Here
217
                  1: Strip
217
                  1: Strip
218
                  0: "Don't strip"
218
                  0: "Don't strip"
219
            - leading and trailing whitespace characters (including spaces, tabs, line breaks and carriage returns) and inner newlines from data fields when cataloguing bibliographic and authority records. The leader and control fields will not be affected.
219
            - leading and trailing whitespace characters (including spaces, tabs, line breaks and carriage returns) and inner newlines from data fields when cataloguing bibliographic and authority records. The leader and control fields will not be affected.
220
        -
221
            - Allow the selected bibliographic frameworks to be used as Fast Add
222
            - pref: AllowAsFastAddFrameworks
223
              choices: framework-codes
224
              class: multiple
220
    Display:
225
    Display:
221
        -
226
        -
222
            - 'Separate main entry and subdivisions with '
227
            - 'Separate main entry and subdivisions with '
223
- 

Return to bug 32773