Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5 from phillipsm/master

Added a very basic shlv.me link to each doc
  • Loading branch information...
commit 34be121b584987195fbbeffc764e09e9b5eefe55 2 parents 45f2d20 + b59de48
@djcp authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  javascripts/covered.js
View
1  javascripts/covered.js
@@ -45,6 +45,7 @@ $.extend({
nodeContent += '<span class="date">' + ((typeof(d['dpla.date']) === 'object') ? d['dpla.date'][0] : d['dpla.date']) + '</span>';
nodeContent += '<br/><span class="data_source">' + d['dpla.contributor'] + '</span>';
+ nodeContent += '<br/><span><a href="http://shlv.me/add-item/?title=' + d['dpla.title'] + '&creator=' + d['dpla.creator'][0] + '&isbn=' + isbn + "&link=http://api.dp.la/v0.03/&content_type=Book" + '">Put on my Shlv.me shelf</a></span>';
facets[d['dpla.contributor']] = (facets[d['dpla.contributor']] == undefined) ? 1 : (facets[d['dpla.contributor']] + 1);
return node.append(nodeContent).data('d',d);
},
Please sign in to comment.
Something went wrong with that request. Please try again.