Bugzilla – Attachment 35575 Details for
Bug 13635
$record->title is called even if marc flavour is UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13635: Unimarc - On editing a notice, the title should be displayed
Bug-13635-Unimarc---On-editing-a-notice-the-title-.patch (text/plain), 1.77 KB, created by
Jonathan Druart
on 2015-01-28 12:05:56 UTC
(
hide
)
Description:
Bug 13635: Unimarc - On editing a notice, the title should be displayed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-01-28 12:05:56 UTC
Size:
1.77 KB
patch
obsolete
>From ee8a94350afa224c3b39405328532245c14380bc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 28 Jan 2015 13:03:31 +0100 >Subject: [PATCH] Bug 13635: Unimarc - On editing a notice, the title should be > displayed > >The title method of MARC::Record does not deal with UNIMARC, it should >not be called if the marc flavour is UNIMARC. > >Test plan: >On an unimarc installation, edit a notice, with this patch you should >see > "Editing TITLE (Record number BIBLIONUMBER)" > >Without, the title was not displayed. >Same in the breadcrumbs. >--- > cataloguing/addbiblio.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index d969215..288793b 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -823,7 +823,8 @@ $is_a_modif = 0; > > if ($biblionumber) { > $is_a_modif = 1; >- $template->param( title => $record->title(), ); >+ $template->param( title => $record->subfield('200',"a") ) if C4::Context->preference('marcflavour') =~/unimarc/i; >+ $template->param( title => $record->title() ) if C4::Context->preference('marcflavour') eq "usmarc"; > > # if it's a modif, retrieve bibli and biblioitem numbers for the future modification of old-DB. > ( $biblionumbertagfield, $biblionumbertagsubfield ) = >@@ -983,7 +984,8 @@ elsif ( $op eq "delete" ) { > ); > } > >-$template->param( title => $record->title() ) if ( $record ne "-1" ); >+$template->param( title => $record->subfield('200',"a") ) if ($record ne "-1" && C4::Context->preference('marcflavour') =~/unimarc/i); >+$template->param( title => $record->title() ) if ($record ne "-1" && C4::Context->preference('marcflavour') eq "usmarc"); > $template->param( > popup => $mode, > frameworkcode => $frameworkcode, >-- >2.1.0
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 13635
:
35575
|
35576
|
36502
|
36507
|
36575
|
36607