[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Search.pm [rel_3_0]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha/C4 Search.pm [rel_3_0] |
Date: |
Wed, 31 Jan 2007 15:38:09 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: paul poulain <tipaul> 07/01/31 15:38:09
Modified files:
C4 : Search.pm
Log message:
author highlighting
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Search.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.120.2.41&r2=1.120.2.42
Patches:
Index: Search.pm
===================================================================
RCS file: /sources/koha/koha/C4/Search.pm,v
retrieving revision 1.120.2.41
retrieving revision 1.120.2.42
diff -u -b -r1.120.2.41 -r1.120.2.42
--- Search.pm 10 Jan 2007 16:14:30 -0000 1.120.2.41
+++ Search.pm 31 Jan 2007 15:38:08 -0000 1.120.2.42
@@ -25,7 +25,7 @@
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.120.2.41 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.120.2.42 $' =~ /\d+/g;
shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v );
};
@@ -89,6 +89,7 @@
sub FindDuplicate {
my ($record) = @_;
+ return;
my $dbh = C4::Context->dbh;
my $result = MARCmarc2koha( $dbh, $record, '' );
my $sth;
@@ -892,9 +893,8 @@
$oldbiblio->{'subtitle'} =~
s/$term/<span class=term>$&<\/span>/gi;
-#$oldbiblio->{'author'} =~ s/$term/<span class=term>$&<\/span>/gi; #FIXME: add
back later
- $oldbiblio->{'publishercode'} =~
- s/$term/<span class=term>$&<\/span>/gi;
+ $oldbiblio->{'author'} =~ s/$term/<span
class=term>$&<\/span>/gi;
+ $oldbiblio->{'publishercode'} =~ s/$term/<span
class=term>$&<\/span>/gi;
$oldbiblio->{'place'} =~ s/$term/<span
class=term>$&<\/span>/gi;
$oldbiblio->{'pages'} =~ s/$term/<span
class=term>$&<\/span>/gi;
$oldbiblio->{'notes'} =~ s/$term/<span
class=term>$&<\/span>/gi;