Thinking About User Tracking on WriteToReply http://j.mp/1Kixdg
Tagged: userCase RSS
-
psychemedia
-
psychemedia
Paragraph Embedding from JISCPress
One of the things I was keen to explore within the context of the JISCPress project was the potential for using Wordpress as a platform for publishing paragraph level fragments that could be embedded in third party web pages.
As Joss announced on the JISCPress blog, We’ve got paragraph data output switches! that expose paragraph level content through a unique URI in a variety of formats (xml, txt, html, rss and json), as well as object embed codes for each paragraph, though I’m not sure if this is going to be maintained…? e..g at the moment, I think we’re trialling literal text blockquote embeds:
(If the object embed does disappear, similar functionality could be achieved using the JSON feed and a Javascript function, though I guess we need JSON-P (i.e. support for something like &callback=foo to make that really easy.)
See also: A Quick Update for a review of the latest feature releases within the digress.it theme we’re using.
To demonstrate one possible use case for object embedding, see the post Engaging With the Issues Raised By The Google Book Settlement which includes three embedded paragraphs from the JISC’s current consultation around the Google books settlement.
Here’s the actual HTML:
Note that currently there is an issue with sizing the embed container (can any CSS gurus out there give us a fix?
Ideally we need to identify the container height and then size it automatically so there are no scrollbars? I’m guessing .scrollHeight might have a role to play in autodetecting this?)
One thing you might notice is that the URIs for the embedded consultation questions follow a similar pattern – only the paragraph number identifier changes:
http://writetoreply.org/googlebooks?p=8&digressit-embed=4What this means is that we should be able to pull in a random paragraph by constructing a URI with a randomly generated paragraph number. So for example:
If you reload the page, you have an 80% chance of seeing a different question…
Here’s the Javascript snippet:
var n=2+Math.floor(Math.random()*5); var o=document.createElement('object'); o.setAttribute('style','width: 100%; height:70px;'); o.setAttribute('id','61c197964762012d4819093ebeee4fcf'); var p='http://writetoreply.org/googlebooks?p=8&digressit-embed='+n; p=p.replace(/#038;/,''); //get round Wordpress escaping everything... o.setAttribute('data',p); document.getElementById('wtr_embed').appendChild(o);//There’s a div with an appropriate id attribute (’wtr_embed’) also added to the page…
//Note that the div needs to be placed before any inline Javascript in the page;-)I’m not sure yet if we can track the use of embeds (certainly server logs should be able to track calls, but these probably can’t be captured using Google Analytics?), but it’s still early days…
-
psychemedia
Content Transclusion: One Step Closer
Following a brief exchange with @lesteph last night, I thought it might be worth making a quick post about the idea of content or document transclusion.
Simply put, transclusion refers to the inclusion, or embedding, of one document or resource in another. To a certain extent, whenever you embed an image or Youtube video in a page is a form of transclusion. (Actually, I’m not sure that’s strictly true? But it gets the point across…)
Whilst doing a little digging around for references to fill out this post, I came across a nicely worked example of transclusion from Wikipedia – Transclusion in Wikipedia

The idea? You can embed the content of any Wikipedia page in any other Wikipedia page. And presumably the same is true within any Mediawiki installation.
That is, in a MediaWiki wiki:
you can embed the content of any one page in any other page.
(I’m not sure if one MediaWiki installation can transclude content from any other MediaWiki installation? I assume it can???)
It’s also possible to include, (that is, transclude) MediaWiki content in a WordPress environment using the Wiki Inc plugin. A compelling demonstration of this is provided by Jim Groom, who has shown how to republish documentation authored in a Wiki via a WordPress page, an approach we adopted in our WriteToReply Digital Britain tinkerings.
One of the things we’ve started exploring the JISCPress project is the ability to publish each separate paragraph in a document (each with its own URI), in a variety of formats – txt, JSON, HTML, XML. That is, we have (or soon will have) an engine in place that supports the “publishing” side of paragraph level transclusion of content from reports published via the JISCPress/WTR platform. Now all we need is the transclusion (re-presentation of transcluded content) part to be able to transclude content from one document in another. (See Taking the Conversation Elsewhere – Embedded Quotes; see also Image Based Quotes from WriteToReply Using Kwout for a related mashup).
(Hmm, although Joss won’t like this, I do think we need a [WTR-include=REF] shortcode handler installed by default in WTR/JISCPress that will pull in paragraph level content in to one document from a document elsewhere on the local platform?)
Now this is really what hypertext is about – URIs (that is, links), that can act as a portal that can pull content in to one location from another. It may be of course that the idea of textual transclusion is just too confusing for people. But it’s something we’re going to explore with WriteToReply.
And on of the things we’re looking at for both WriteToReply and JISCPress is the use of semantic tagging to automatically annotate parts of the document (at the paragraph level, if possible?) so that content on a particular topic (i.e. tagged in a particular way) in one document can be automatically transcluded in – or alongside – a related paragraph in a separate document. (Hmm – maybe we need a ‘related paragraphs’ panel, cf. the comments panel, that can display transcluded, related paragraphs, from elsewhere in the document or from other documents?)
PS If you have an hour, here’s the venerable Ted Nelson giving a Google Tech Talk on the topic of transclusion:
Enjoy…
PPS here’s an old library that provides a more general case framework for content transclusion: Purple Include. I’m not sure if it still works though?
PPPS Here’s the scarey W3C take on linking and transclusion ;-) This is also interesting: auto/embed is not node transclusion
PPPPS for another take on including content by reference, see Email By Reference, Not By Value, or “how I came up with the idea for Google Wave first”;-)
PPPPPS Seems like eprints may also support transclusion… E-prints – VLit Transclusion Support.







Joss Winn 11:27 am on October 2, 2009 Permalink |
Note that this post was pulled through via RSS from the WriteToReply blog and was originally authored by Tony. The random paragraph embedding that he refers to won’t work on this site. See the original here: http://writetoreply.org/actually/2009/10/02/paragraph-embedding-from-jiscpress/