A few days ago I sent a friend a link to my online library and he responded teasing me that I had given a good rating to a bad movie. I told him that wasn't my rating, it was a rating from Amazon, and his response was "That's dumb, people will think you rated it." He was right, so I decided to poke around in the Web Templates...
I decided to go through the available templates and record the values and what they output:
$fullName = User name (Gord Lacey)
$totalItems = Total items
$publishDate = Date published - If used in "<div id="updated">"
$publishDate = Release date - If used in "<div class="medium">"
$shelfNavigationPopup = Popup with a list of the shelves, populated with links
$pageNavigation = Navigation of pages, complete with links
$shelfName = Name of shelf in DL
$currentPage = Current Page
$totalPages = Total number of pages
$title = Title of item (Uncharted: Drake's Fortune)
$creatorsCompositeString = "Creator" value (Sony)
$publishersCompositeString = "Publisher/Label" value
$rating = Rating given by YOU
$netRating = Rating from AMAZON
$uuidString = UUID (0C4858B4-A2BE-4533-9C30-45C695B1A3EC)
$coverImage256 = Image URL (images/0C4858B4-A2BE-4533-9C30-45C695B1A3EC-256.png)
$amazonURL = URL to product on Amazon (
http://www.amazon.ca/exec/obidos/ASI...liciousmons-22)
$amazonAuthorURL = Brings up search results of the "Creator" string being searched on Amazon
$primaryDescriptionAttributedString - The "Description" value from DL (taken from Amazon.com)
$asin = Amazon's ASIN number
$librarySearchString - Weird string that appears at the bottom of the template (Springfield, State zipflap congrotus delicious library Lacey, Gord)
$formatSingularString = "Format" value
I did some more poking around and came across a plist with similar values. There's a very good chance these values can be used in the web templates by putting a $ in front of them, just like the ones above, but I haven't played around with them much.
/* all */
asin = "amazon link";
associatedURL = "url";
audienceRecommendedAgeSingularString = "audience";
boxHeightInInches = "height";
boxLengthInInches = "length";
boxWeightInPounds = "weight";
boxWidthInInches = "width";
creationDate = "creation date";
creatorsCompositeString = "creator";
countryCode = "country";
"coverImage.allColorsCompositeString" = "cover color";
"coverImage.commonColorsCompositeString" = "cover color";
"coverImage.fancyColorsCompositeString" = "cover fancy color";
ean = "e.a.n.";
editionsCompositeString = "edition";
featuresCompositeString = "features";
formatSingularString = "format";
genresCompositeString = "genres";
languagesCompositeString = "language";
lastLookupTime = "lookup time";
minimumPlayers = "minimum players";
maximumPlayers = "maximum players";
netRating = "net rating";
numberInSeries = "number in series";
numberOfMedia = "# of items";
numericIdentifierForInitialLookup = "0 00000 00000 0";
price = "retail price";
primaryDescriptionAttributedString = "description";
publishDate = "release date";
publishersCompositeString = "publisher / label";
rare = "rare";
searchRelevance = "search relevance";
seriesSingularString = "series";
specialEdition = "special edition";
title = "title";
type = "item type";
widthLengthHeightString = "dimensions";
/* all - my info */
buyPrice = "purchase price";
conditionSingularString = "condition";
hasExperienced = "played / read";
isSigned = "signed item";
locationSingularString = "location in building";
notes = "notes";
ownerSingularString = "owner";
privateCollection = "private";
purchaseDate = "purchase date";
rating = "rating";
used = "used";
/* books */
/* author = "author"; */
deweyDecimal = "dewey decimal";
illustratorsCompositeString = "illustrator";
isbn = "i.s.b.n.";
libraryOfCongressCallNumber = "library of congress";
pages = "no. of pages";
/* books - my info */
currentValue = "current value";
isRead = "read";
/* movies */
actorsCompositeString = "stars";
cinematographersCompositeString = "cinematographer";
/* director = "director"; */
minutes = "running time"; /* also music */
screenwritersCompositeString = "screenwriter";
theatricalDate = "theatrical debut";
/* movies - my info */
isWatched = "watched";
/* music */
/* artist = "artist"; */
composersCompositeString = "composer";
conductorsCompositeString = "conductor";
tracksCompositeString = "tracks";
/* music - my info */
isListened = "listened";
/* games */
/* developer = "developer"; */
platformsCompositeString = "platform";
players = "players";
/* games - my info */
key = "CD key";
isPlayed = "played";
/* software | electronics - my info */
serialNumber = "serial number";
/* loans */
"loan.borrower.name" = "lent to";
"loan.dueDate" = "due date";
"loan.daysOverdue" = "days overdue";
"loan.notes" = "loan notes";
"loan.remindBeforeDays" = "reminder";
/* virtual, used for smart shelves */
"userImageURL" = "your image URL";
"amazonPerCountryCacheEntry.synopses" = "synopsis";
"userSynopsis" = "your synopsis";
"amazonPerCountryCacheEntry.reviews" = "review";
"userReview" = "your review";
The web templates can be found by following thse steps.
Control-Click on the application and select "Show Package Contents"
Open "Contents" folder
Open "Resources" folder
Open "Templates" folder"
Open "HTML Templates" folder
These are the templates. I suggest copying one to your desktop and adding "mod" somewhere in the filename. Open this package by control-clicking the file and selecting "Show Package Contents." You'll want to modify the name of the template found in Contents->Resources->English.lproj->Template.strings so it has a unique name in DL (otherwise it'll have the same name as the file you're changing). Save this. Then open the Contents->Template folder and open index.library.html to make changes to the actual template. Just copy your modified template back into the folder you copied it out of and you can now export to the new template, you don't even have to restart DL. I suggest making minor changes and exporting the files to test it out; DL will hang if you use a value that it can't access so just revert to a previous save and restart DL.
Hopefully this helps someone build a new template for DL, or modify their existing template to display new information.
Gord