<?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>Orzeszek Blog &#187; legislation</title>
	<atom:link href="http://www.orzeszek.org/blog/tag/legislation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.orzeszek.org/blog</link>
	<description>An inchoate upside-down perspective</description>
	<lastBuildDate>Sun, 25 Jul 2010 03:21:12 +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>Get to Any Section on AustLII in One Step</title>
		<link>http://www.orzeszek.org/blog/2009/09/06/get-to-any-section-on-austlii-in-one-step/</link>
		<comments>http://www.orzeszek.org/blog/2009/09/06/get-to-any-section-on-austlii-in-one-step/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 10:58:41 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Law]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[AustLII]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[legislation]]></category>

		<guid isPermaLink="false">http://www.orzeszek.org/blog/?p=919</guid>
		<description><![CDATA[If you’re using a browser that supports search keywords, you can add a keyword for your favourite act. For example, you can add a ‘tpa’ keyword, so that when you type ‘tpa 52’ in the address bar, you’re taken directly to s&#160;52 of the Trade Practices Act 1974 (Cth).]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">T</span>he <a href="http://www.austlii.edu.au/">Australasian Legal Information Institute</a> (AustLII) site is a great resource for Australian legislation. While far from perfect, it’s considerably more convenient than the government-run alternatives, at least when you just want to check a section quickly.</p>
<p>However, if you want to check a section, say <a href="http://www.austlii.edu.au/au/legis/cth/consol_act/tpa1974149/s52.html">s&nbsp;52</a> of the <a href="http://www.austlii.edu.au/au/legis/cth/consol_act/tpa1974149/"><em>Trade Practices Act 1974</em> (Cth)</a>, you have to go to AustLII, select <strong>Commonwealth</strong> from the menu on the left, find and select <strong>Commonwealth Consolidated Acts</strong>, select <strong>T</strong>, scroll through the list to find the Act, and, finally, scroll through the list of sections to locate the right section.</p>
<p>There is a better way:</p>
<p><img src="http://www.orzeszek.org/blog/wp-content/uploads/2009/09/tpa-address-bar.png" alt="Trade Practices Act 1974 (Cth) keyword in the address bar" title="Trade Practices Act 1974 (Cth) keyword in the address bar" width="500" height="129" class="aligncenter size-full wp-image-925 orz-img-no-border" /></p>
<p>If you’re using a browser that supports search keywords, like Firefox, Chrome, or Opera (or Internet Explorer with the right tool), you can add a keyword for your favourite act. For example, you can add a <strong>tpa</strong> keyword, so that when you type <strong>tpa 52</strong> in the address bar, you’re taken directly to s&nbsp;52 of the <em>Trade Practices Act 1974</em> (Cth).</p>
<p><span id="more-919"></span></p>
<h3>Add an Act Keyword</h3>
<p>To set up a keyword for an act in Firefox, first find the act on AustLII and go to any section. Add that section to your bookmarks, and open the new bookmark’s properties (right-click on the bookmark, and select <strong>Properties</strong>).</p>
<p>The location for the bookmark will be something like <strong>…/tpa1974149/s52.html</strong>. You’ll need to change this, replacing the section number with <strong>%s</strong>, so that it looks like <strong>…/tpa1974149/s%s.html</strong>. The browser will replace the <strong>%s</strong> with whatever you type after the keyword in the address bar.</p>
<p>Finally, you’ll need to choose a keyword. This can be whatever you like. The finished bookmark should look something like this:</p>
<p><img src="http://www.orzeszek.org/blog/wp-content/uploads/2009/09/tpa-keyword-properties.png" alt="Trade Practices Act 1974 (Cth) keyword properties" title="Trade Practices Act 1974 (Cth) keyword properties" width="409" height="297" class="aligncenter size-full wp-image-926 orz-img-no-border" /></p>
<p>Now, when you type <strong>tpa 52</strong> in the address bar you’ll be taken directly to the correct section.</p>
<h3>Things to Remember</h3>
<p>Remember that the way this works is that the browser replaces the <strong>%s</strong> in the location for the bookmark with whatever you type after the search keyword. This has some consequences.</p>
<p>For example, even though s&nbsp;51A of the <em>Trade Practices Act 1974</em> (Cth) has a capital A, the address for that section is <strong>…/tpa1974149/s51a.html</strong>. A capital A won’t work, so you have to type <strong>tpa 52a</strong>.</p>
<p>Another example is the <em>Income Tax Assessment Act 1997</em> (Cth). All of the sections in this act include an en-dash, like s&nbsp;6–5. However, AustLII replaces the en-dash with a period, so that the address for s&nbsp;6–5 is <strong>…/itaa1997240/s6.5.html</strong>. To use a keyword, you have to type <strong>itaa 6.5</strong>.</p>
<h3>Advanced Keywords</h3>
<p>Tax lawyers will be familiar with the two most fundamental tax acts: the <em>Income Tax Assessment Act 1936</em> (Cth) and the <em>Income Tax Assessment Act 1997</em> (Cth). Sometimes you need one, and sometimes you need the other. But it’s a pain to type <strong>itaa1997 6.5</strong>.</p>
<p>On AustLII, every section in the <em>Income Tax Assessment Act 1997</em> (Cth) has a period in it, and no section in the <em>Income Tax Assessment Act 1936</em> (Cth) does. So, we can use JavaScript to check whether the section typed after the keyword contains a period, and go to the right act accordingly.</p>
<p>To do that, replace the location in the relevant bookmark with the code below:</p>
<div class="orz-codeblock">
<p><code>javascript:if(&quot;%s&quot;.indexOf(&quot;.&quot;)!=-1){location=&quot;http://www.austlii.edu.au/au/legis/cth/consol_act/itaa1997240/s%s.html&quot;;}else{location=&quot;http://www.austlii.edu.au/au/legis/cth/consol_act/itaa1936240/s%s.html&quot;;}</code></p>
</div>
<p>Make sure that all of the text is on one line and that there are no spaces.</p>
<p>Now, when you type <strong>itaa 6.5</strong> you’ll be taken to s&nbsp;6–5 of the <em>Income Tax Assessment Act 1997</em> (Cth), but if you type <strong>itaa 65</strong> you’ll be taken to s&nbsp;65 of <em>Income Tax Assessment Act 1936</em> (Cth).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orzeszek.org/blog/2009/09/06/get-to-any-section-on-austlii-in-one-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
