Bugzilla – Attachment 18848 Details for
Bug 10263
Add ability to limit which library can edit a bibliographic record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10263 - Followup
Bug-10263---Followup.patch (text/plain), 1.57 KB, created by
Kyle M Hall
on 2013-06-11 14:52:41 UTC
(
hide
)
Description:
Bug 10263 - Followup
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2013-06-11 14:52:41 UTC
Size:
1.57 KB
patch
obsolete
>From 4b1a777c66c995ac72ff896c7b84bfdf8a6d3d0e Mon Sep 17 00:00:00 2001 >From: ByWater Migration Support <migrations@bywatersolutions.com> >Date: Tue, 11 Jun 2013 07:50:11 -0700 >Subject: [PATCH] Bug 10263 - Followup > >--- > cataloguing/addbiblio.pl | 21 ++++++++++++--------- > 1 files changed, 12 insertions(+), 9 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index a8ae3cf..ebd0e16 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -806,18 +806,21 @@ if ($breedingid) { > ( $record, $encoding ) = MARCfindbreeding( $breedingid ) ; > } > >-if ( $record != -1 && C4::Context->preference('IndependentBranchesMarcEditing') ) { >- unless ( >- GetIndependentGroupModificationRights( >- { >- for => $record->subfield( >- GetMarcFromKohaField( 'biblio.branchcode', $frameworkcode ) >- ) >- } >+if ( $record != -1 >+ && C4::Context->preference('IndependentBranchesMarcEditing') ) >+{ >+ my ( $field, $subfield ) = >+ GetMarcFromKohaField( 'biblio.branchcode', $frameworkcode ); >+ if ( >+ defined( $record->field($field) ) >+ && defined( $record->subfield( $field, $subfield ) ) >+ && !GetIndependentGroupModificationRights( >+ { for => $record->subfield( $field, $subfield ) } > ) > ) > { >- print $input->redirect( "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" ); >+ print $input->redirect( >+ "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber"); > exit; > } > } >-- >1.7.2.5
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 10263
:
18174
|
18480
|
18521
|
18837
|
18848
|
18849
|
20775
|
21147
|
23491
|
23636
|
23639