Bugzilla – Attachment 3880 Details for
Bug 6167
can't use 008 or 006 plugin in cataloging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-6167-can-t-use-008-or-006-plugin-in-cataloging.patch (text/plain), 2.15 KB, created by
Salva Zaragoza Rubio
on 2011-04-11 17:06:38 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Salva Zaragoza Rubio
Created:
2011-04-11 17:06:38 UTC
Size:
2.15 KB
patch
obsolete
>From 39ec70b11da97f0d3fb8be0d99e07583a8783db7 Mon Sep 17 00:00:00 2001 >From: Salvador Zaragoza Rubio <salvazm@masmedios.com> >Date: Mon, 11 Apr 2011 18:59:43 +0200 >Subject: [PATCH] Bug 6167 - can't use 008 or 006 plugin in cataloging >Content-Type: text/plain; charset="utf-8" > >Due to changing to T-T $template->pama("lang") return undef, >now is $template->{param} the right value. >--- > cataloguing/value_builder/marc21_field_006.pl | 2 +- > cataloguing/value_builder/marc21_field_008.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/cataloguing/value_builder/marc21_field_006.pl b/cataloguing/value_builder/marc21_field_006.pl >index 6a4445a..7b55a0a 100755 >--- a/cataloguing/value_builder/marc21_field_006.pl >+++ b/cataloguing/value_builder/marc21_field_006.pl >@@ -86,7 +86,7 @@ sub plugin { > > my $errorXml = ''; > # Check if the xml, xsd exists and is validated >- my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->param('lang') . '/modules/cataloguing/value_builder/'; >+ my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->{lang} . '/modules/cataloguing/value_builder/'; > if (-r $dir . 'marc21_field_006.xml') { > my $doc = XML::LibXML->new->parse_file($dir . 'marc21_field_006.xml'); > if (-r $dir . 'marc21_field_CF.xsd') { >diff --git a/cataloguing/value_builder/marc21_field_008.pl b/cataloguing/value_builder/marc21_field_008.pl >index 8b5db26..5b8a7e5 100755 >--- a/cataloguing/value_builder/marc21_field_008.pl >+++ b/cataloguing/value_builder/marc21_field_008.pl >@@ -100,7 +100,7 @@ sub plugin { > $result = "$dateentered" . "t xxu||||| |||| 00| 0 eng d" unless $result; > my $errorXml = ''; > # Check if the xml, xsd exists and is validated >- my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->param('lang') . '/modules/cataloguing/value_builder/'; >+ my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->{lang} . '/modules/cataloguing/value_builder/'; > if (-r $dir . 'marc21_field_008.xml') { > my $doc = XML::LibXML->new->parse_file($dir . 'marc21_field_008.xml'); > if (-r $dir . 'marc21_field_CF.xsd') { >-- >1.5.6.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 6167
:
3876
|
3877
| 3880