Bugzilla – Attachment 48543 Details for
Bug 15955
Tuning function 'New child record' for Unimarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New child record patch Unimarc
0001-BUG-15955-Tuning-function-New-child-record-for-Unima.patch (text/plain), 1.48 KB, created by
Zeno Tajoli
on 2016-03-02 13:04:58 UTC
(
hide
)
Description:
New child record patch Unimarc
Filename:
MIME Type:
Creator:
Zeno Tajoli
Created:
2016-03-02 13:04:58 UTC
Size:
1.48 KB
patch
obsolete
>From 77a546e8e81677e01e57e29d4996f9c0e950a4d3 Mon Sep 17 00:00:00 2001 >From: Zeno Tajoli <z.tajoli@cineca.it> >Date: Wed, 2 Mar 2016 13:01:22 +0100 >Subject: [PATCH] [BUG 15955] Tuning function 'New child record' for Unimarc > >Now the sistem tries to insert value of 205$a into 461$a when >a child is created from the father record. >In UNIMARC 46x tags there is not present a subfield for ediction value >(205$a in UNIMARC). >To Test: >1)Check to have EasyAnalyticalRecords on 'off' >2)Check to use UNIMARC >3)Create a record with data in 200$a (title), 205$a (ediction), 700 (author) > 215$a(Place), 215$d(date) >4)From those record create a child using 'New'->'New child record' >5)See the values in 461 tag: You can see that in 461$a there is the value of 205$a from father > This is wrong, you need to have the value of 700 $a and $b from father record. >6)Appy the patch >7)Redo 4-5 >8)Now 461 is good >--- > C4/Biblio.pm | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 10faa83..7b5afb2 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -3668,12 +3668,8 @@ sub prepare_host_field { > } > } > #edition statement >- if ( $field = $host->field('205') ) { >- my $s = $field->as_string(); >- if ($s) { >- $sfd{a} = $s; >- } >- } >+ #Not present in UNIMARC 4xx structure >+ > #URL > if ( $field = $host->field('856') ) { > my $s = $field->as_string('u'); >-- >2.1.4 >
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 15955
:
48543
|
48692
|
48693
|
48700
|
48997