[Koha-bugs] [Bug 1252] New: extraneous characters need to be excluded from ISBNs for amazon images on search results page
bugzilla-daemon at daddy.katipo.co.nz
bugzilla-daemon at daddy.katipo.co.nz
Wed Dec 13 23:03:54 CET 2006
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1252
Summary: extraneous characters need to be excluded from ISBNs for
amazon images on search results page
Product: Koha
Version: branch 2.4
Platform: PC
URL: http://catalog.ccfls.org/search?idx=&q=pratchett
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Searching
AssignedTo: jmf at kados.org
ReportedBy: cmurdock at ccfls.org
QAContact: koha-bugs at nongnu.org
In opac-details.pl you can to exclude extraneous characters such as hyphens,
colons, extra spaces, etc., with this:
## Amazon.com stuff
#not used unless preference set
if (C4::Context->preference("AmazonContent")==1) {
use C4::Amazon;
$dat->{'amazonisbn'}=$dat->{'isbn'};
$dat->{'amazonisbn'} =~ s|-||g;
$dat->{'amazonisbn'} =~ s|:||g;
$dat->{'amazonisbn'} =~ s| ||g;
$dat->{'amazonisbn'} =~ s|\(.*\)?||g;
$template->param( amazonisbn => $dat->{amazonisbn} );
(note that I elaborated on the replacements in the original opac-details.pl)
However, the list of search results also needs to have this done to make more
book covers show up.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Koha-bugs
mailing list