Bugzilla – Attachment 29098 Details for
Bug 8438
Allow staff to only claim serial issues of their own branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8438: Users can only claim for serials related to their branch.
Bug-8438-Users-can-only-claim-for-serials-related-.patch (text/plain), 2.09 KB, created by
Jonathan Druart
on 2014-06-20 13:05:08 UTC
(
hide
)
Description:
Bug 8438: Users can only claim for serials related to their branch.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-06-20 13:05:08 UTC
Size:
2.09 KB
patch
obsolete
>From 9f7df609f8a2c4fc04418544cd93475bc2a81d94 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 23 Aug 2012 13:53:21 +0200 >Subject: [PATCH] Bug 8438: Users can only claim for serials related to their > branch. > >Only superlibrarian users and users with superserials permission >can override this limitation. >The original author of this patch is Julian Maurice. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt | 2 ++ > serials/claims.pl | 6 +++++- > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >index 34c6d8c..8074776 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >@@ -275,7 +275,9 @@ > <tbody>[% FOREACH missingissue IN missingissues %] > <tr> > <td> >+ [% UNLESS missingissue.cannot_claim %] > <input type="checkbox" name="serialid" value="[% missingissue.serialid %]" /> >+ [% END %] > </td> > <td> > [% missingissue.name %] >diff --git a/serials/claims.pl b/serials/claims.pl >index c826804..51ce291 100755 >--- a/serials/claims.pl >+++ b/serials/claims.pl >@@ -40,7 +40,7 @@ my $suppliername = $input->param('suppliername'); > my $order = $input->param('order'); > > # open template first (security & userenv set here) >-my ($template, $loggedinuser, $cookie) >+my ($template, $loggedinuser, $cookie, $flags) > = get_template_and_user({template_name => 'serials/claims.tmpl', > query => $input, > type => 'intranet', >@@ -72,6 +72,10 @@ if ($supplierid) { > @supplierinfo=GetBookSeller($supplierid); > } > >+foreach my $issue ( @missingissues ) { >+ $issue->{cannot_claim} = 1 unless C4::Serials::can_edit_subscription( $subscription ); >+} >+ > my $branchloop = GetBranchesLoop(); > > my $preview=0; >-- >2.0.0.rc2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8438
:
11778
|
12842
|
24074
|
26399
|
26400
|
29098
|
29099
|
29191
|
29192
|
29211
|
29212
|
35177
|
35178
|
35305
|
35306
|
35311
|
35312
|
43560