Bugzilla – Attachment 3317 Details for
Bug 5879
Biblio.pm : fix isbd syspref and default location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5879-Biblio.pm-fix-isbd-syspref-and-default-loca.patch (text/plain), 1.70 KB, created by
Chris Cormack
on 2011-03-16 03:04:31 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-16 03:04:31 UTC
Size:
1.70 KB
patch
obsolete
>From e760b8c2b707f01d44a697a541605270821f9698 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Wed, 15 Dec 2010 13:55:14 +0100 >Subject: [PATCH] Bug 5879 : Biblio.pm : fix isbd syspref and default location > >- the systempreference is isbd, not ISBD >- when preparing the ItemRecord (for acq or serials recieving), there was no default value calculated for location. Fixing that >--- > C4/Biblio.pm | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 9cd3d05..0905b8f 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -755,7 +755,7 @@ sub GetISBDView { > my ( $holdingbrtagf, $holdingbrtagsubf ) = &GetMarcFromKohaField( "items.holdingbranch", $itemtype ); > my $tagslib = &GetMarcStructure( 1, $itemtype ); > >- my $ISBD = C4::Context->preference('ISBD'); >+ my $ISBD = C4::Context->preference('isbd'); > my $bloc = $ISBD; > my $res; > my $blocres; >@@ -2289,6 +2289,14 @@ sub PrepareItemrecordDisplay { > $defaultvalue = $defaultvalues->{branchcode} if $defaultvalues; > } > } >+ if ( ( $tagslib->{$tag}->{$subfield}->{kohafield} eq 'items.location' ) >+ && $defaultvalues >+ && $defaultvalues->{'location'} ) { >+ my $temp = $itemrecord->field($subfield) if ($itemrecord); >+ unless ($temp) { >+ $defaultvalue = $defaultvalues->{location} if $defaultvalues; >+ } >+ } > if ( $tagslib->{$tag}->{$subfield}->{authorised_value} ) { > my @authorised_values; > my %authorised_lib; >-- >1.7.1 >
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 5879
: 3317