OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

BookLibary Component Support

Go to bottom Favoured: 0

ISBN-10 from front end

scooksley (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
ISBN-10 from front end 13 Years ago
Karma: 0  
Hi there

Have installed the excellent pro version for a new site I'm developing, and it's 99% working really well.

One issue I have, when showing another administrator how to enter a new book from the front end, is that occassionally when they copy and paste the ISDN-10 number from Amazon to the new book form, if they copy the number and it has a space at the end (which can happen when you're copying sometimes) it will not find the information.

Is there anyway I can hack the form component so it does not allow any more than ten characters?

Thanks!

Steve
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:ISBN-10 from front end 13 Years ago
Karma: 102  
Hi Steve,

error with whit sign - you may resolve add: trim function to SaveBook function in files:
{yours site}/administrator/components/com_booklibrary/admin.booklibrary.php
{yours site}/components/com_booklibrary/booklibrary.php

replace code:
Code:

 
//fetch all information from the webservices if necessary
  $book = mosBooklibraryWS :: fetchInfos($book);



to code:

Code:

 
$book->isbn = trim($book->isbn);
//fetch all information from the webservices if necessary
  $book = mosBooklibraryWS :: fetchInfos($book);



you not need limit ISBN to 10 signs, Because ISBN can contain 13 signs

Thanks,
Andrew
Logged Logged
The administrator has disabled public write access.
scooksley (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:ISBN-10 from front end 13 Years ago
Karma: 0  
Andrew

Thank you for your quick solutions to both my problems posted - much appreciated!
Logged Logged
The administrator has disabled public write access.
Go to top
»