update to embed code

209 views
Skip to first unread message

Heather Piwowar

unread,
Jul 13, 2012, 8:33:24 AM7/13/12
to total-...@googlegroups.com
Hi all, 

We pushed out an update to the embed code this morning.  It no longer polls, waiting for total-impact to finish collecting metrics: the total-impact api now tells the embed code when it has finished collecting metrics for an item (response code 210 when updating, response code 200 when updating complete).

It should work as before, but be a bit faster.  Let us know if you run into any problems.

Heather

Jason Priem

unread,
Jul 13, 2012, 11:33:21 PM7/13/12
to total-...@googlegroups.com
sweet, hadn't read this! this is pretty awesome.

you should brace for more emails...have been in mostly-ignore-email mode until I fixed that bug...so now in mostly-do-email mode :)
j
--
Jason Priem
UNC Royster Scholar
School of Information and Library Science
University of North Carolina at Chapel Hill

Mark Wood

unread,
Jul 19, 2012, 9:53:36 AM7/19/12
to total-...@googlegroups.com, hpiw...@gmail.com
Thanks!

I tried insinuating this into a DSpace instance, to put the metrics near the bottom of item detail pages.  Either I'm doing something wrong (not unlikely) or the CSS needs some more specificity:  all the links on the page turned large and orange.  I think that all the rules need a "#ti-data" ancestor.

Mark Wood

unread,
Jul 19, 2012, 12:39:18 PM7/19/12
to total-...@googlegroups.com, hpiw...@gmail.com
|  I think that all the rules need a "#ti-data" ancestor.

Like this.  Not really tested yet:  it no longer munges the rest of the page, but now I need to put some content into the repo. I'm testing with so I can see the metrics div.

Jason Priem

unread,
Jul 19, 2012, 11:43:13 PM7/19/12
to total-...@googlegroups.com
Awesome, Mark!  I'm travel all tomorrow, but will try to test out your code. Looks good from here. Let me know if you test it and it works with a pull request, and I'll merge it in right away. 

Heather, sorry did not get more time to work on this today. 
J

Sent from my telephone
Reply all
Reply to author
Forward
0 new messages