Bugzilla – Attachment 109219 Details for
Bug 8676
Show vendor name in source of acquisition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8676: Don't assume marc strucure is passed
Bug-8676-Dont-assume-marc-strucure-is-passed.patch (text/plain), 1.47 KB, created by
Jonathan Druart
on 2020-08-27 07:50:30 UTC
(
hide
)
Description:
Bug 8676: Don't assume marc strucure is passed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-27 07:50:30 UTC
Size:
1.47 KB
patch
obsolete
>From 9d0729a9869fd1cda790cd06b92e0e7b8f0ceaec Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 27 Aug 2020 09:49:11 +0200 >Subject: [PATCH] Bug 8676: Don't assume marc strucure is passed > >--- > C4/Biblio.pm | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 6b43c2e81e..1a5610f601 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1363,10 +1363,6 @@ descriptions rather than normal ones when they exist. > sub GetAuthorisedValueDesc { > my ( $tag, $subfield, $value, $framework, $tagslib, $category, $opac ) = @_; > >- if ( $tagslib->{$tag}->{$subfield}->{kohafield} eq 'items.booksellerid' ) { >- my $vendor = Koha::Acquisition::Booksellers->find($value); >- return $vendor ? $vendor->name : $value; >- } > if ( !$category ) { > > return $value unless defined $tagslib->{$tag}->{$subfield}->{'authorised_value'}; >@@ -1387,6 +1383,11 @@ sub GetAuthorisedValueDesc { > $category = $tagslib->{$tag}->{$subfield}->{'authorised_value'}; > } > >+ if ( $tagslib && $tagslib->{$tag}->{$subfield}->{kohafield} eq 'items.booksellerid' ) { >+ my $vendor = Koha::Acquisition::Booksellers->find($value); >+ return $vendor ? $vendor->name : $value; >+ } >+ > my $dbh = C4::Context->dbh; > if ( $category ne "" ) { > my $sth = $dbh->prepare( "SELECT lib, lib_opac FROM authorised_values WHERE category = ? AND authorised_value = ?" ); >-- >2.20.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 8676
:
12105
|
107821
|
108636
| 109219