<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>discontents &#187; Mapping our Anzacs</title>
	<atom:link href="http://discontents.com.au/tag/mapping-our-anzacs/feed" rel="self" type="application/rss+xml" />
	<link>http://discontents.com.au</link>
	<description>working for the triumph of content over form, ideas over control, people over systems</description>
	<lastBuildDate>Wed, 21 Jul 2010 23:24:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cooliris-enabled scrapbook</title>
		<link>http://discontents.com.au/shed/hacks/cooliris-enabled-scrapbook</link>
		<comments>http://discontents.com.au/shed/hacks/cooliris-enabled-scrapbook#comments</comments>
		<pubDate>Mon, 09 Feb 2009 12:08:08 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[Cooliris]]></category>
		<category><![CDATA[Mapping our Anzacs]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://discontents.com.au/?p=659</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Cooliris-enabled+scrapbook&amp;rft.aulast=Sherratt&amp;rft.aufirst=Tim&amp;rft.subject=hacks&amp;rft.source=discontents&amp;rft.date=2009-02-09&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://discontents.com.au/shed/hacks/cooliris-enabled-scrapbook&amp;rft.language=English"></span>

There&#8217;s more 3D goodness for you to enjoy now that the  Mapping our Anzacs scrapbook is Cooliris-enabled. If you have Cooliris installed, you&#8217;ll notice that the Cooliris icon on your browser toolbar lights up when you visit the site. Just click on the icon to browse all the photos posted to the scrapbook on [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Cooliris-enabled+scrapbook&amp;rft.aulast=Sherratt&amp;rft.aufirst=Tim&amp;rft.subject=hacks&amp;rft.source=discontents&amp;rft.date=2009-02-09&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://discontents.com.au/shed/hacks/cooliris-enabled-scrapbook&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://discontents.com.au/?p=659"><!-- &nbsp; --></abbr>
<p>There&#8217;s more 3D goodness for you to enjoy now that the  <a href="http://our-anzacs.tumblr.com">Mapping our Anzacs scrapbook</a> is Cooliris-enabled. If you have Cooliris installed, you&#8217;ll notice that the Cooliris icon on your browser toolbar lights up when you visit the site. Just click on the icon to browse all the photos posted to the scrapbook on a glorious 3D wall.</p>
<div id="attachment_660" class="wp-caption aligncenter" style="width: 310px"><a href="http://discontents.com.au/wp-content/uploads/2009/02/moa-3d.jpg"><img class="size-medium wp-image-660" title="moa-3d" src="http://discontents.com.au/wp-content/uploads/2009/02/moa-3d-300x187.jpg" alt="Scrapbook posts in 3D" width="300" height="187" /></a><p class="wp-caption-text">Scrapbook posts in 3D</p></div>
<p>(If you don&#8217;t have Cooliris then <a href="http://cooliris.com">go and get it</a>. It can be used both in Internet Explorer and Firefox, though you&#8217;ll probably need to have admin rights to install for IE.)</p>
<p>Having given the 3D treatment to <a href="http://discontents.com.au/shoebox/archives-shoebox/archives-in-3d">digitised files</a> from the National Archives of Australia and <a href="http://discontents.com.au/shed/experiments/cloudy-biographies-and-portrait-walls">portrait images</a> from the Australian Dictionary of Biography, it wasn&#8217;t too hard to do. The scrapbook is a Tumblr site and the api makes it easy to extract all the photos. So I created a php file to gather all the details and then write them to a media-rss file. Then it was just a matter of  inserting a link to it in the scrapbook.<span id="more-659"></span></p>
<p>Code follows:</p>
<p><pre class="brush: php">&lt;/p&gt;
&lt;p&gt;&lt;?php&lt;br /&gt;
if ($_GET[&#039;start&#039;]) {&lt;br /&gt;
$start = $_GET[&#039;start&#039;];&lt;br /&gt;
} else {&lt;br /&gt;
$start = 0;&lt;br /&gt;
}&lt;br /&gt;
$url = &quot;http://our-anzacs.tumblr.com/api/read?start=$start&amp;#038;num=50&amp;#038;type=photo&amp;#038;filter=text&quot;;&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_FAILONERROR, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_TIMEOUT, 20);&lt;br /&gt;
$result = curl_exec($ch);&lt;br /&gt;
if (!$result) {&lt;br /&gt;
echo &quot;cURL error number:&quot; .curl_errno($ch);&lt;br /&gt;
echo &quot;cURL error:&quot; . curl_error($ch);&lt;br /&gt;
exit;&lt;br /&gt;
}&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
$dom = new DOMDocument();&lt;br /&gt;
@$dom-&gt;loadHTML($result);&lt;br /&gt;
$xpath = new DOMXPath($dom);&lt;br /&gt;
$attrs = $xpath-&gt;evaluate(&quot;//posts/@total[1]&quot;);&lt;br /&gt;
foreach ($attrs as $attr) {&lt;br /&gt;
$total = $attr-&gt;nodeValue;&lt;br /&gt;
}&lt;br /&gt;
$num_pages = ceil($total/50);&lt;br /&gt;
$start_next = $start+50;&lt;br /&gt;
$start_previous = $start-50;&lt;/p&gt;
&lt;p&gt;echo &quot;&lt;?xml version=&#039;1.0&#039; encoding=&#039;utf-8&#039; standalone=&#039;yes&#039;?&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;rss version=&#039;2.0&#039; xmlns:media=&#039;http://search.yahoo.com/mrss/&#039; xmlns:atom=&#039;http://www.w3.org/2005/Atom&#039;&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;channel&gt;n&quot;;&lt;br /&gt;
echo &quot;n&quot;;&lt;br /&gt;
echo &quot;&lt;description&gt;Photos posted to the Mapping our Anzacs scrapbook&lt;/description&gt;n&quot;;&lt;br /&gt;
echo &quot;
&lt;link&gt;http://our-anzacs.tumblr.com&lt;/link&gt;n&quot;;&lt;br /&gt;
if ($start_previous &gt;= 0) {&lt;br /&gt;
echo &quot;&lt;atom:link rel=&#039;previous&#039; href=&#039;moa-media-rss.php?start=$start_previous&#039; /&gt;&quot;;&lt;br /&gt;
}&lt;br /&gt;
if ($start_next &lt;= $total) {&lt;br /&gt;
echo &quot;&lt;atom:link rel=&#039;next&#039; href=&#039;moa-media-rss.php?start=$start_next&#039; /&gt;&quot;;&lt;br /&gt;
}&lt;br /&gt;
$posts = $xpath-&gt;evaluate(&quot;//post/@id&quot;);&lt;br /&gt;
foreach ($posts as $post) {&lt;br /&gt;
$id = $post-&gt;nodeValue;&lt;br /&gt;
$url = &quot;http://our-anzacs.tumblr.com/post/$id&quot;;&lt;br /&gt;
$photos = $xpath-&gt;evaluate(&quot;//post[@id=&#039;$id&#039;]/photo-url[@max-width=&#039;500&#039;]/text()&quot;);&lt;br /&gt;
foreach ($photos as $photo) {&lt;br /&gt;
$photo_500 = $photo-&gt;nodeValue;&lt;br /&gt;
}&lt;br /&gt;
$photos = $xpath-&gt;evaluate(&quot;//post[@id=&#039;$id&#039;]/photo-url[@max-width=&#039;250&#039;]/text()&quot;);&lt;br /&gt;
foreach ($photos as $photo) {&lt;br /&gt;
$photo_250 = $photo-&gt;nodeValue;&lt;br /&gt;
}&lt;br /&gt;
$nodes = $xpath-&gt;evaluate(&quot;//post[@id=&#039;$id&#039;]/photo-caption/text()&quot;);&lt;br /&gt;
foreach ($nodes as $node) {&lt;br /&gt;
$caption = $node-&gt;nodeValue;&lt;br /&gt;
preg_match(&quot;/View details fors+([ws,-]*)/&quot;, $caption, $matches);&lt;br /&gt;
$names = explode(&quot;, &quot;, $matches[1]);&lt;br /&gt;
$name = &quot;$names[1] $names[0]&quot;;&lt;br /&gt;
}&lt;br /&gt;
echo &quot;&lt;item&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;guid isPermaLink=&#039;false&#039;&gt;$id&lt;/guid&gt;n&quot;;&lt;br /&gt;
echo &quot;n&quot;;&lt;br /&gt;
echo &quot;
&lt;link&gt;$url&lt;/link&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;media:thumbnail url=&#039;$photo_250&#039; /&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;media:content url=&#039;$photo_500&#039; type=&#039;image/jpeg&#039; /&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;/item&gt;n&quot;;&lt;br /&gt;
}&lt;br /&gt;
echo &quot;&lt;/channel&gt;n&quot;;&lt;br /&gt;
echo &quot;&lt;/rss&gt;n&quot;;&lt;br /&gt;
?&gt;&lt;/p&gt;
&lt;p&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://discontents.com.au/shed/hacks/cooliris-enabled-scrapbook/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MoA buttons galore</title>
		<link>http://discontents.com.au/shoebox/archives-shoebox/moa-buttons-galore</link>
		<comments>http://discontents.com.au/shoebox/archives-shoebox/moa-buttons-galore#comments</comments>
		<pubDate>Fri, 30 Jan 2009 06:41:40 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[archives]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[Mapping our Anzacs]]></category>
		<category><![CDATA[recordsearch]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://discontents.com.au/?p=626</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MoA+buttons+galore&amp;rft.aulast=Sherratt&amp;rft.aufirst=Tim&amp;rft.subject=archives&amp;rft.subject=hacks&amp;rft.source=discontents&amp;rft.date=2009-01-30&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://discontents.com.au/shoebox/archives-shoebox/moa-buttons-galore&amp;rft.language=English"></span>

Mapping our Anzacs, in case you don&#8217;t know, provides a Google map interface to the 375,000+ WWI service records held by the National Archives of Australia. Amongst other other things, you can add scrapbook posts to individual entries and create tributes. It&#8217;s meant to encourage exploration, so go on&#8230; explore!
If you&#8217;ll do, you&#8217;ll notice that [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MoA+buttons+galore&amp;rft.aulast=Sherratt&amp;rft.aufirst=Tim&amp;rft.subject=archives&amp;rft.subject=hacks&amp;rft.source=discontents&amp;rft.date=2009-01-30&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://discontents.com.au/shoebox/archives-shoebox/moa-buttons-galore&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://discontents.com.au/?p=626"><!-- &nbsp; --></abbr>
<p><a href="http://mappingouranzacs.naa.gov.au/">Mapping our Anzacs</a>, in case you don&#8217;t know, provides a Google map interface to the 375,000+ WWI service records held by the National Archives of Australia. Amongst other other things, you can add <a href="http://our-anzacs.tumblr.com/">scrapbook posts</a> to individual entries and create tributes. It&#8217;s meant to encourage exploration, so go on&#8230; explore!</p>
<p>If you&#8217;ll do, you&#8217;ll notice that there are direct links into the National Archives&#8217; database <a href="http://naa.gov.au/collection/recordsearch/index.aspx">RecordSearch</a>. However, there are currently no links going to other way. Why does this matter? Well perhaps you&#8217;d like to use NameSearch to find an individual record, but then add a scrapbook post in Mapping our Anzacs. Up until now you had to find them all over again. But not any more&#8230;</p>
<p>Introducing our new range of &#8216;View in Mapping our Anzacs&#8217; buttons:</p>
<ul>
<li>For the discerning Firefox devotee we have a <a href="http://userscripts.org/scripts/show/41314">Greasemonkey userscript</a> which adds a button to the RecordSearch item details page.</li>
<li>For fashion-challenged IE user we have a bookmarklet. Just right click on this link – <a href="javascript:if%20(document.location.href.match(/ItemDetail.asp/i)){var%20matches=document.body.innerHTML.match(/SeriesDetail.asp\?M=0\&amp;amp;B=([\d\w\/]+)/i);series=matches[1];var%20matches=document.body.innerHTML.match(/Barcode\<\/B>\<BR\>(\d+)\</i);barcode=matches[1];if%20(series=='B2455'){window.location='http://mappingouranzacs.naa.gov.au/details-permalink.aspx?barcode_no='+barcode;}}">View in Mapping our Anzacs</a> – and save it as a favourite in your &#8216;Links&#8217; folder (you may need to enable the &#8216;Links&#8217; toolbar first by checking Tools > Toolbars > Links.)</li>
</ul>
<p>Yes, it&#8217;s true&#8230; you could use the Bookmarklet with Firefox (just drag it to your bookmarks toolbar), but Greasemonkey is so much more chic.</p>
<p>Once you&#8217;re fully button-enabled just head into RecordSearch, find an item in series B2455 (the WWI service records) and click! Hurrah! You will be instantly transported to Mapping our Anzacs.</p>
<p>You can test out your new button by heading here:</p>
<ul>
<li><a href="http://www.aa.gov.au/cgi-bin/Search?O=I&#038;Number=3445411">B2455, WRAGGE C L E</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://discontents.com.au/shoebox/archives-shoebox/moa-buttons-galore/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
