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:
parent
821ff72c4d
commit
e692dfc18a
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue