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