Bugzilla – Attachment 5502 Details for
Bug 6875
de-nesting C4 packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6875 de-nesting C4::Heading
Bug-6875-de-nesting-C4Heading.patch (text/plain), 1.01 KB, created by
Paul Poulain
on 2011-09-21 15:23:23 UTC
(
hide
)
Description:
Bug 6875 de-nesting C4::Heading
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-09-21 15:23:23 UTC
Size:
1.01 KB
patch
obsolete
>From 952488914f33ed62f40b0cf7b8a6bbc0aebd25f7 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Fri, 16 Sep 2011 19:38:06 +0200 >Subject: [PATCH] Bug 6875 de-nesting C4::Heading > >C4::Search is needed only in authorities sub, moving it here and switching to require >--- > C4/Heading.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Heading.pm b/C4/Heading.pm >index ba9d23f..e0c0097 100644 >--- a/C4/Heading.pm >+++ b/C4/Heading.pm >@@ -23,7 +23,6 @@ use MARC::Record; > use MARC::Field; > use C4::Context; > use C4::Heading::MARC21; >-use C4::Search; > use Carp; > > our $VERSION = 3.00; >@@ -109,6 +108,7 @@ sub authorities { > my $self = shift; > my $query = qq(Match-heading,do-not-truncate,ext="$self->{'search_form'}"); > $query .= $self->_query_limiters(); >+ require C4::Search; > my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] ); > if (defined $error) { > carp "Error:$error from search $query"; >-- >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 6875
:
5442
|
5443
|
5496
|
5497
|
5498
|
5499
|
5500
|
5501
|
5502
|
5503
|
5504
|
5505
|
5506
|
5507
|
5508
|
5509
|
5510
|
5511
|
5512
|
7359
|
7360
|
7361
|
7362
|
7363
|
7364
|
7365
|
7652
|
7654
|
7655
|
7656
|
7657
|
7658
|
7770
|
7771
|
7808
|
7844
|
8095
|
8133
|
8134
|
8135