Bugzilla – Attachment 37989 Details for
Bug 11300
Add a new authority linker which searches for authority links on a Z39.50 server.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11300 - Add update_cache method to C4::Linker::Z3950Server to match definition
Bug-11300---Add-updatecache-method-to-C4LinkerZ395.patch (text/plain), 1.38 KB, created by
Blou
on 2015-04-16 20:17:58 UTC
(
hide
)
Description:
Bug 11300 - Add update_cache method to C4::Linker::Z3950Server to match definition
Filename:
MIME Type:
Creator:
Blou
Created:
2015-04-16 20:17:58 UTC
Size:
1.38 KB
patch
obsolete
>From 12b23bc86722ebd63584811e627a68534dfa1ed6 Mon Sep 17 00:00:00 2001 >From: Blou <philippe.blouin@inlibro.com> >Date: Thu, 16 Apr 2015 16:17:06 -0400 >Subject: [PATCH] Bug 11300 - Add update_cache method to > C4::Linker::Z3950Server to match definition > >--- > C4/Breeding.pm | 2 +- > C4/Linker/Z3950Server.pm | 12 ++++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index dcabdac..41b01b9 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -222,7 +222,7 @@ sub Z3950Search { > $oConnection[$_]->destroy(); > } > >- my @servers = (); >+ @servers = (); > foreach my $id (@id) { > push @servers, {id => $id}; > } >diff --git a/C4/Linker/Z3950Server.pm b/C4/Linker/Z3950Server.pm >index da0a0af..98d3f8e 100644 >--- a/C4/Linker/Z3950Server.pm >+++ b/C4/Linker/Z3950Server.pm >@@ -102,6 +102,18 @@ sub get_link { > return $self->SUPER::_handle_auth_limit($authid), $fuzzy, $status; > } > >+sub update_cache { >+ my $self = shift; >+ my $heading = shift; >+ my $authid = shift; >+ my $search_form = $heading->search_form(); >+ my $fuzzy = 0; >+ >+ $self->{'cache'}->{$search_form}->{'cached'} = 1; >+ $self->{'cache'}->{$search_form}->{'authid'} = $authid; >+ $self->{'cache'}->{$search_form}->{'fuzzy'} = $fuzzy; >+} >+ > sub flip_heading { > my $self = shift; > my $heading = shift; >-- >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 11300
:
23147
|
37918
|
37974
|
37975
|
37989
|
39649
|
45324
|
56542
|
56543
|
60999
|
67165
|
69096
|
69204
|
79400
|
94819
|
94875
|
111801
|
111896
|
115217
|
133496
|
136404
|
138029
|
141168
|
143292
|
148824
|
151079
|
151476
|
151477
|
155602
|
155603
|
159741
|
159742
|
163946
|
163947
|
171304
|
171689