Search the web
Sign In
New User? Sign Up
books_developers · Books Developers Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
books-plugins URL and sample HTML files   Message List  
Reply | Forward Message #23 of 27 |
Re: [books_developers] books-plugins URL and sample HTML files

On Aug 8, 2007, at 9:50 PM, ravi wrote:
> first: a thank you to Chris and Co for an excellent app that is a
> handsome open source substitute to Delicious Library et al.
Substitute? We were here first! :-)
> Now my question: I am trying to create a display plug-in and though I
> have enough info to keep going, I have a couple of things that I
> could use some info on: Neither of the URLs I have seen for the plug-
> ins page (http://www.aetherial.net/books-plugins/ mentioned in the
> plug-in HOWTO in the wiki, and http://books-plugins.aetherial.net/
> mentioned by Chris in his announcement to this list regarding web
> export plug-in) work.
Oy. You caught me with my pants down. Those URLs are quite old and
likely no longer work. I've posted a zip file containing the Default
Display plugin at

http://books.aetherial.net/downloads/DefaultDisplay.plugin.zip

This contains the CSS styling and the list of default fields
specified by the plugin.
> The HOWTO mentions "three sample HTML files" (for the three kinds of
> main window displays: none, single, multiple). It would be great to
> get hold of these files to make it testing changes to the display CSS
> easier -- which I assume is the idea behind them. Can someone point
> me to them or the right URL for the plug-ins page?
Books dynamically generates these HTML files.

A single book page example:

<html>
<head>
<link rel="stylesheet" href="file://localhost/Users/cjkarr/Documents/
Xcode/Release/Books.app/Contents/Resources/DefaultDisplay.plugin/
Contents/Resources/stylesheet.css" type="text/css">
</head>
<body>
<div class="book-definition">
<div class="book-title">Guilliver's Travels</div>
<div class="book-authors">Jonathan Swift</div>
<div class="book-genre">Literature</div>
<div class="book-format">Hardcover</div>
<div class="book-publisher">Easton Press</div>
<div class="book-listName">Unread Books</div>

</div>
</body>
</html>

Multiple books selected:

<html>
<head>
<link rel="stylesheet" href="file://localhost/Users/cjkarr/Documents/
Xcode/Release/Books.app/Contents/Resources/DefaultDisplay.plugin/
Contents/Resources/stylesheet.css" type="text/css">
</head>
<body>
<div class="multiple-message">
<div class="multiple-title">Multiple Selection</div>

<div class="book-list">
<p class="booklist-item"><div class="booklist-title">Knights of the
Dinner Table: Origins '03 Special</div><div class="booklist-
authors"></div></p>
<p class="booklist-item"><div class="booklist-title">Voodoo Child
Rough Cut</div><div class="booklist-authors"></div></p>
<p class="booklist-item"><div class="booklist-title">Raiders of the
Lost Ark #3</div><div class="booklist-authors">Walter Simonson</div></p>
<p class="booklist-item"><div class="booklist-title">Super-Villain
Classics #1</div><div class="booklist-authors">Mark Gruenwald; Stan
Lee</div></p>
<p class="booklist-item"><div class="booklist-title">The A-Team #1</
div><div class="booklist-authors">Jim Salicrup</div></p>

</div>
</div>
</body>
</html>

No books selected:

<html>
<head>
<link rel="stylesheet" href="file://localhost/Users/cjkarr/Documents/
Xcode/Release/Books.app/Contents/Resources/DefaultDisplay.plugin/
Contents/Resources/stylesheet.css" type="text/css">
</head>
<body>
<div class="empty">
<div class="empty-message">Please select a book from above.</div>
</div>
</body>
</html>

--

In each of these cases, Books fills in the stylesheet URLs and the
contents of the individual pages. For a single book, it generates a
list of fields. For multiple books, it generates a list of selected
books with author and title.

I need to document this better, but let me know if you need more
information to get going.

-Chris





Thu Aug 9, 2007 3:34 am

br284
Offline Offline
Send Email Send Email

Forward
Message #23 of 27 |
Expand Messages Author Sort by Date

Hello all, first: a thank you to Chris and Co for an excellent app that is a handsome open source substitute to Delicious Library et al. Now my question: I am...
ravi
rationalfool
Offline Send Email
Aug 9, 2007
3:00 am

... Substitute? We were here first! :-) ... Oy. You caught me with my pants down. Those URLs are quite old and likely no longer work. I've posted a zip file...
Chris Karr
br284
Offline Send Email
Aug 9, 2007
3:39 am

... My apologies! I was unaware of the history! ... I already snarfed the Default Display from my Books directory, but the above will no doubt help future...
ravi
rationalfool
Offline Send Email
Aug 9, 2007
3:57 pm

... I have one more question: is it only through the CSS that I can control the layout or is there some way to drive the HTML layout used in the book info...
ravi
rationalfool
Offline Send Email
Aug 9, 2007
3:39 am

... You can change the order of the fields to suit your purposes by manipulating the order in the CSV file. The rest is up to CSS. The only potential problem...
Chris Karr
br284
Offline Send Email
Aug 9, 2007
3:45 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help