Skip to content

Commit

Permalink
Bug 4215 OPAC "Search for title in" can fail with trailing slashes in…
Browse files Browse the repository at this point in the history
… title

While configuring Search for Title In links, I found that some target sites
can't process an incoming title search if the title being sent has a trailing
slash.  If the same search is sent without the trailing slash, it works fine.  I
modified opac-detail.pl to strip off the trailing slash (and space) for titles
being sent to other sites.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
  • Loading branch information
Jane Wagner authored and J. David Bavousett committed Mar 5, 2010
1 parent 6e0cc40 commit 1f1540f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opac/opac-detail.pl
Expand Up @@ -558,6 +558,8 @@ BEGIN
$search_for_title =~ s/{AUTHOR}/$dat->{author}/g;
$search_for_title =~ s/{TITLE}/$dat->{title}/g;
$search_for_title =~ s/{ISBN}/$isbn/g;
$dat->{title} =~ s/\/+$//; # remove trailing slash
$dat->{title} =~ s/\s+$//; # remove trailing space
$template->param('OPACSearchForTitleIn' => $search_for_title);
}

Expand Down

0 comments on commit 1f1540f

Please sign in to comment.