Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Added a very basic shlv.me link to each doc #5

Merged
merged 1 commit into from almost 2 years ago

2 participants

Matthew Phillips Daniel Collis-Puro
Matthew Phillips

No description provided.

Daniel Collis-Puro djcp merged commit 34be121 into from April 26, 2012
Daniel Collis-Puro djcp closed this April 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 26, 2012
added shlv.me link to each doc b59de48
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  javascripts/covered.js
1  javascripts/covered.js
@@ -46,6 +46,7 @@ $.extend({
46 46
 
47 47
     nodeContent += '<span class="date">' + ((typeof(d['dpla.date']) === 'object') ? d['dpla.date'][0] : d['dpla.date']) + '</span>';
48 48
     nodeContent += '<br/><span class="data_source">' + d['dpla.contributor'] + '</span>';
  49
+    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>';
49 50
     facets[d['dpla.contributor']] = (facets[d['dpla.contributor']] == undefined) ? 1 : (facets[d['dpla.contributor']] + 1);
50 51
     return node.append(nodeContent).data('d',d);
51 52
   },
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.