[Koha-patches] [PATCH] Bug 9727: Fix typo in variable name
Dobrica Pavlinusic
dpavlin at rot13.org
Mon Mar 18 15:48:00 CET 2013
From: Colin Campbell <colin.campbell at ptfs-europe.com>
Variable is passed as recordtype not record_type
correct name
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
before applying the patch
$ perl -wc Koha/SearchEngine/Solr/Index.pm
Global symbol "$record_type" requires explicit package name at Koha/SearchEngine/Solr/Index.pm line 43.
Koha/SearchEngine/Solr/Index.pm had compilation errors.
after
Koha/SearchEngine/Solr/Index.pm syntax OK
Signed-off-by: Dobrica Pavlinusic <dpavlin at rot13.org>
---
Koha/SearchEngine/Solr/Index.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Koha/SearchEngine/Solr/Index.pm b/Koha/SearchEngine/Solr/Index.pm
index 6fa3242..e526f1e 100644
--- a/Koha/SearchEngine/Solr/Index.pm
+++ b/Koha/SearchEngine/Solr/Index.pm
@@ -40,7 +40,7 @@ sub index_record {
$record = GetAuthority( $id ) if $recordtype eq "authority";
$record = GetMarcBiblio( $id ) if $recordtype eq "biblio";
- if ($record_type eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) {
+ if ($recordtype eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) {
my $normalizer = Koha::RecordProcessor->new( { filters => 'EmbedSeeFromHeadings' } );
$record = $normalizer->process($record);
}
--
1.7.2.5
More information about the Koha-patches
mailing list