Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Delicious Library - Catalog CDs, DVDs, books...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Delicious Library - Catalog CDs, DVDs, books...
Authored by: mark hunte on Nov 16, '04 03:01:30PM

This looks great, trying out demo.

Do you know if you can export as webpage..

I have read so many books over the years I find every now and then I am not able to remember if I have read a particular book while out shopping for a new read.
I have created a web pages that works well when viewed on my Nokia 6320 that have images and text et. which I use to look up Items I have read.
But DL is much quicker than me in adding items. so if it can export as html, this would be ideal. Even better with images.

I like the find similar tab selection although it would be great if it could do this by Author as well.
I found you can drag the items found into your library. Very quick way of adding.

---
mh



[ Reply to This | # ]
Delicious Library - Catalog CDs, DVDs, books...
Authored by: peel on Nov 16, '04 05:58:54PM

The data is kept in an XML file so theoretically you can create an applescript that wil upload the data to a web server and the create a php or perl script or what have you to parse the xml and create a nice little web page. I intend to do jus this but as usual time is a key factor and I have little of it. Hopefully during the holidays I'll be able to hack something together.



[ Reply to This | # ]
Delicious Library - Catalog CDs, DVDs, books...
Authored by: mark hunte on Nov 16, '04 06:18:13PM

Thanks peel.
I would be very interested to hear how/if you get on with parsing the xml. and if I chase this dream
I will post my results...

---
mh



[ Reply to This | # ]
Delicious Library - Catalog CDs, DVDs, books...
Authored by: Thom on Nov 17, '04 04:39:05AM
I would suggest using XSLT. By creating a stylesheet which takes the attributes you want from the items you care about, it's fairly easy to mock up. e.g., let's say you only wanted the author and title from just books, you might do something like the following:

(For a very similar example - where I borrowed this from - see this page.)

Put the following into a file called 'DL_as_webpage.xsl'


<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<html>
	<body>

	<h2>My Book Collection</h2>
	<table border="1">
		<tr bgcolor="#9acd32">
			<th>Title</th>
			<th>Author</th>
		</tr>
		<xsl:for-each select="//book">
		<tr>
			<td><xsl:value-of select="@title"/></td>
			<td><xsl:value-of select="@author"/></td>
		</tr>
		</xsl:for-each>
	</table>
	</body>
	</html>
</xsl:template>
</xsl:stylesheet>
To do the actual transform I used libxslt-1.1.9, which you can get from: http://xmlsoft.org/XSLT/downloads.html, or as they mention on that site, here is a site with OS X binaries: http://www.zveno.com/open_source/libxml2xslt.html

The command looks like this:


xsltproc -o page.html DL_as_webpage.xsl ~/Library/Application\ Support/Delicious\ Library/Library\ Media\ Data.xml
Hope this helps! -- Thom

[ Reply to This | # ]
Delicious Library - Catalog CDs, DVDs, books...
Authored by: SouthofHeaven on Nov 17, '04 09:43:19AM

Actually that helps me out a lot since I was tryign to figure out how to parse xml exported from Filemaker for my own collection to be published in a browser. Thanks for the link.

---
The big yellow one's the Sun!!!



[ Reply to This | # ]
Delicious Library - Catalog CDs, DVDs, books...
Authored by: mark hunte on Nov 17, '04 02:21:06PM

Hey Thom, thanks for that, that did help. Downloaded using Fink and it worked as you said, so time for some more playing.

Thanks again

---
mh



[ Reply to This | # ]