[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-bugs] [Bug 1252] New: extraneous characters need to be excluded fr
From: |
bugzilla-daemon |
Subject: |
[Koha-bugs] [Bug 1252] New: extraneous characters need to be excluded from ISBNs for amazon images on search results page |
Date: |
Thu, 14 Dec 2006 11:03:54 +1300 (NZDT) |
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: address@hidden
ReportedBy: address@hidden
QAContact: address@hidden
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-bugs] [Bug 1252] New: extraneous characters need to be excluded from ISBNs for amazon images on search results page,
bugzilla-daemon <=