Skip to content

Commit

Permalink
Merge pull request #5 from phillipsm/master
Browse files Browse the repository at this point in the history
Added a very basic shlv.me link to each doc
  • Loading branch information
djcp committed Apr 27, 2012
2 parents 45f2d20 + b59de48 commit 34be121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascripts/covered.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 34be121

Please sign in to comment.