You are not logged in Log in Join
You are here: Home » Members » stevea » barcode_to_amazon » view_source

Log in
Name

Password

 
<dtml-var standard_html_header>
<p>Scan in a book's barcode using your cuecat barcode
reader. You will be redirected to the appropriate
page at amazon.com</p>
<form action="redir">
<input type=reset> &nbsp; <input type=text name=code>
<input type=submit>
</form>
<p>
The code to decode the output of the cuecat reader, and
turn it into an ISBN, is written entirely in DTML.</p>
<p>
Read the source:
<ul>
<li><a href="index_html/view_source">This page</a>: basically just a form
<li><a href="redir/view_source">redir</a>: calls the two methods that do the real work, and redirects to amazon.com
<li><a href="get_isbn/view_source">get_isbn</a>: converts a barcode into an isbn
<li><a href="decode_cat/view_source">decode_cat</a>: decodes cuecat output into a list of [reader_id, barcode_type, barcode]
</ul>
</p>
<p>These four DTML methods are in the public domain. Use them
as you please.</p>

<p>This code is based on code placed in the public domain from
<a href="http://www.eblong.com/zarf/bookscan/">http://www.eblong.com/zarf/bookscan/</a> and
<a href="http://www.plover.net/~skip/cc/">http://www.plover.net/~skip/cc/</a>.</p>
<p><em>Don't try this at home, kids!</em> Do not abuse DTML like this in any
code you hope to use later. Write your complex code in Python.</p>

<p><a href="cat_reader.py">Here</a> is a much simpler external method that 
does exactly the same job.
</p>
<p>If you find a book that doesn't work, or you want to contact
me about this software, mail me &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;
or ask on one of the zope mailing lists.

<dtml-var standard_html_footer>