Bugzilla – Attachment 4771 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]
Bug 5737: Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver.
Bug-5737-Modified-the-merge-subroutine-in-Authorit.patch (text/plain), 1.27 KB, created by
Chris Cormack
on 2011-07-28 22:02:43 UTC
(
hide
)
Description:
Bug 5737: Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver.
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-07-28 22:02:43 UTC
Size:
1.27 KB
patch
obsolete
>From 1bc61979276a8f5243de54549195e464c52ee96b 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] Bug 5737: Modified the merge subroutine in AuthoritiesMarc.pm so it won't destroy the connection to the biblioserver. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/AuthoritiesMarc.pm | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index fa2ef00..87c620c 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -1307,6 +1307,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; >@@ -1323,7 +1324,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.7.4.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 5737
:
3122
| 4771