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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 152-157 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
152
('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),
152
('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),
153
('IncludeSeeFromInSearches','0','','Include see-from references in searches.','YesNo'),
153
('IncludeSeeFromInSearches','0','','Include see-from references in searches.','YesNo'),
154
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
154
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
155
('IndependentBranchesPatronModifications',0, NULL, 'Show only modification request for the logged in branch','YesNo'),
155
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
156
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
156
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
157
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
157
('InProcessingToShelvingCart','0','','If set, when any item with a location code of PROC is \'checked in\', it\'s location code will be changed to CART.','YesNo'),
158
('InProcessingToShelvingCart','0','','If set, when any item with a location code of PROC is \'checked in\', it\'s location code will be changed to CART.','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+10 lines)
Lines 9867-9872 if(CheckVersion($DBversion)) { Link Here
9867
    SetVersion($DBversion);
9867
    SetVersion($DBversion);
9868
}
9868
}
9869
9869
9870
$DBversion = "3.15.00.XXX";
9871
if(CheckVersion($DBversion)) {
9872
    $dbh->do(q{
9873
        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
9874
        VALUES ('IndependentBranchesPatronModifications',0,'Show only modification request for the logged in branch','','YesNo')
9875
    });
9876
    print "Upgrade to $DBversion done (Bug 10904 - would like to limit patron update request management by branch)\n";
9877
    SetVersion($DBversion);
9878
}
9879
9870
=head1 FUNCTIONS
9880
=head1 FUNCTIONS
9871
9881
9872
=head2 TableExists($table)
9882
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (+7 lines)
Lines 87-92 Administration: Link Here
87
                  yes: Prevent
87
                  yes: Prevent
88
                  no: "Don't prevent"
88
                  no: "Don't prevent"
89
            - staff (but not superlibrarians) from modifying objects (holds, items, patrons, etc.) belonging to other libraries.
89
            - staff (but not superlibrarians) from modifying objects (holds, items, patrons, etc.) belonging to other libraries.
90
        -
91
            - pref: IndependentBranchesPatronModifications
92
              default: 0
93
              choices:
94
                  yes: Prevent
95
                  no: "Don't prevent"
96
            - staff (but not superlibrarians) from viewing and approving/denying patron modification requests for patrons belonging to other libraries.
90
    CAS Authentication:
97
    CAS Authentication:
91
        -
98
        -
92
            - pref: casAuthentication
99
            - pref: casAuthentication
(-)a/mainpage.pl (-3 / +5 lines)
Lines 54-62 $template->param( Link Here
54
    koha_news_count => $koha_news_count
54
    koha_news_count => $koha_news_count
55
);
55
);
56
56
57
my $branch = $flags->{'superlibrarian'}
57
my $branch =
58
  ? undef
58
  C4::Context->preference("IndependentBranchesPatronModifications")
59
  : C4::Context->userenv()->{'branch'};
59
  && !$flags->{'superlibrarian'}
60
  ? C4::Context->userenv()->{'branch'}
61
  : undef;
60
62
61
my $pendingcomments    = numberofreviews(0);
63
my $pendingcomments    = numberofreviews(0);
62
my $pendingtags        = get_count_by_tag_status(0);
64
my $pendingtags        = get_count_by_tag_status(0);
(-)a/members/members-update.pl (-4 / +4 lines)
Lines 42-50 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( Link Here
42
);
42
);
43
43
44
my $branch =
44
my $branch =
45
  $flags->{'superlibrarian'}
45
  C4::Context->preference("IndependentBranchesPatronModifications")
46
  ? undef
46
  && !$flags->{'superlibrarian'}
47
  : C4::Context->userenv()->{'branch'};
47
  ? C4::Context->userenv()->{'branch'}
48
  : undef;
48
49
49
my $pending_modifications =
50
my $pending_modifications =
50
  Koha::Borrower::Modifications->GetPendingModifications($branch);
51
  Koha::Borrower::Modifications->GetPendingModifications($branch);
51
- 

Return to bug 10904