Lines 584-595
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref
Link Here
|
584 |
} |
584 |
} |
585 |
|
585 |
|
586 |
#Search for title in links |
586 |
#Search for title in links |
|
|
587 |
my $marccontrolnumber = GetMarcControlnumber ($record, $marcflavour); |
588 |
|
587 |
if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ |
589 |
if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ |
588 |
$dat->{author} ? $search_for_title =~ s/{AUTHOR}/$dat->{author}/g : $search_for_title =~ s/{AUTHOR}//g; |
590 |
$dat->{author} ? $search_for_title =~ s/{AUTHOR}/$dat->{author}/g : $search_for_title =~ s/{AUTHOR}//g; |
589 |
$dat->{title} =~ s/\/+$//; # remove trailing slash |
591 |
$dat->{title} =~ s/\/+$//; # remove trailing slash |
590 |
$dat->{title} =~ s/\s+$//; # remove trailing space |
592 |
$dat->{title} =~ s/\s+$//; # remove trailing space |
591 |
$dat->{title} ? $search_for_title =~ s/{TITLE}/$dat->{title}/g : $search_for_title =~ s/{TITLE}//g; |
593 |
$dat->{title} ? $search_for_title =~ s/{TITLE}/$dat->{title}/g : $search_for_title =~ s/{TITLE}//g; |
592 |
$isbn ? $search_for_title =~ s/{ISBN}/$isbn/g : $search_for_title =~ s/{ISBN}//g; |
594 |
$isbn ? $search_for_title =~ s/{ISBN}/$isbn/g : $search_for_title =~ s/{ISBN}//g; |
|
|
595 |
$marccontrolnumber ? $search_for_title =~ s/{CONTROLNUMBER}/$marccontrolnumber/g : $search_for_title =~ s/{CONTROLNUMBER}//g; |
593 |
$template->param('OPACSearchForTitleIn' => $search_for_title); |
596 |
$template->param('OPACSearchForTitleIn' => $search_for_title); |
594 |
} |
597 |
} |
595 |
|
598 |
|
596 |
- |
|
|