Bugfix: Stop opac/opac-detail.pl from filling the log with pesky warns

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Chris Nighswonger 2010-01-28 14:49:29 -05:00 committed by Galen Charlton
parent 821ff72c4d
commit e692dfc18a

View file

@ -585,9 +585,9 @@ if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref
#Search for title in links
if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){
$search_for_title =~ s/{AUTHOR}/$dat->{author}/g;
$search_for_title =~ s/{TITLE}/$dat->{title}/g;
$search_for_title =~ s/{ISBN}/$isbn/g;
$dat->{author} ? $search_for_title =~ s/{AUTHOR}/$dat->{author}/g : $search_for_title =~ s/{AUTHOR}//g;
$dat->{title} ? $search_for_title =~ s/{TITLE}/$dat->{title}/g : $search_for_title =~ s/{TITLE}//g;
$isbn ? $search_for_title =~ s/{ISBN}/$isbn/g : $search_for_title =~ s/{ISBN}//g;
$template->param('OPACSearchForTitleIn' => $search_for_title);
}