Bugzilla – Attachment 3122 Details for
Bug 5737
ZOOM connection problem in merge_authority.pl when trying to do a batch merge.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver.
0001-Modified-the-merge-subroutine-in-AuthoritiesMarc.pm.patch (text/plain), 1.21 KB, created by
Frédérick Capovilla
on 2011-02-10 16:02:34 UTC
(
hide
)
Description:
Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver.
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-02-10 16:02:34 UTC
Size:
1.21 KB
patch
obsolete
>From f4bc05e524f524c62d79b61750d3f381c94ed127 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Thu, 10 Feb 2011 10:50:12 -0500 >Subject: [PATCH] Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver. > >--- > C4/AuthoritiesMarc.pm | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index cd16dc9..c9527e2 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1286,6 +1286,7 @@ sub merge { > } else { > #zebra connection > my $oConnection=C4::Context->Zconn("biblioserver",0); >+ my $oldSyntax = $oConnection->option("preferredRecordSyntax"); > $oConnection->option("preferredRecordSyntax"=>"XML"); > my $query; > $query= "an=".$mergefrom; >@@ -1302,7 +1303,8 @@ sub merge { > push @reccache, $marcdata; > $z++; > } >- $oConnection->destroy(); >+ $oResult->destroy(); >+ $oConnection->option("preferredRecordSyntax"=>$oldSyntax); > } > #warn scalar(@reccache)." biblios to update"; > # Get All candidate Tags for the change >-- >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 5737
:
3122
|
4771