Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Couple of notes here:

Here are some example books tags:

  • <!-- book-offered:1-56592-419-3 -->
  • <!-- book-offered:0-7357-0921-1 -->
  • <!-- book-wanted:0-201-48567-2 -->
  • <!-- book-loaned:1-56592-262-X,user=979 -->
  • <!-- book-loaned:1-56592-392-8,user=39362 -->
I would recommend formatting the ISBN number as it looks on the back of the book. This is called 'The Pretty ISBN Format', but in no way actually impacts anything. ISBN numbers are always 10 digits, except for the last character, which may be an upper or lowercase letter 'X'. Any prettifying dashes are stripped when actually manipulating ISBN numbers.

ISBNs contain a publisher code, a country code, and a check digit in them. There is a CPAN module Business::ISBN that is useful for validating ISBN numbers, as far as being legally constructed and having a valid check digit. Alas, there is no CPAN module for interfacing to an ISBN database and returning nicely formatted data for our own purposes.

Someone referenced me to a site that allows ISBN lookups, and returns HTML that is parsable, although it's still pretty ugly. is the root site, and a book can be looked up by going to The 0764550292 is the ISBN. You don't have to add the /price, but it will re-write the URL to contain it. There don't seem to be any obvious other options than /price.

Here's what NOT to do:

  • <!-- book-loaned:0764550292,user=<a href="/">9270</a> -->
  • <!-- book-loaned:0-7645-0762-1,user=<a href="/">9270</a> -->
Note that some silly person tried to stuff a URL in there, when it should just be the homenode number of the person the book is lent to. If it's not a valid homenode number, the scanner will kick it out.

And while I think everyone pretty much has in mind lending Perl related books, remember that since it's a simple ISBN, you can also loan your copies of 'McCracken on Fortran', 'Dr. Suess: Green Eggs & Ham', and 'The Kama Sutra'.


e-mail jcwren

In reply to (jcwren) Re: Virtual Distributed Library Online by jcwren
in thread Virtual Distributed Library Online by jcwren

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 14:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found