<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Code on nostuff.org archive | Chris Keene</title>
    <link>https://nostuff.org/archive/categories/code/</link>
    <description>Recent content in Code on nostuff.org archive | Chris Keene</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 10 Jul 2012 19:35:39 +0000</lastBuildDate>
    <atom:link href="https://nostuff.org/archive/categories/code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A play with the Talis Aspire API</title>
      <link>https://nostuff.org/archive/posts/2012-07-10-/</link>
      <pubDate>Tue, 10 Jul 2012 19:35:39 +0000</pubDate>
      <guid>https://nostuff.org/archive/posts/2012-07-10-/</guid>
      <description>&lt;p&gt;I wanted to have a go with the Talis Aspire API and see what potential it had and how easy it was to use. Talis Aspire is a Reading List system with the key purposes being, firstly, a method to inform libraries which books and resources they need to buy, secondly, a unified way to access lists and content, especially as more and more stuff is online.&lt;/p&gt;&#xA;&lt;p&gt;But the array of systems across a University delivering the online ‘student experience’ is staggering and often confusing, hence the need to to investigate ways of embedding data from one system (such as this) in to other systems. My end goal is to display a list on a webpage outside of the Aspire website.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MARC Tools &amp; MARC::Record errors</title>
      <link>https://nostuff.org/archive/2011/marc-tools-marcrecord-errors/</link>
      <pubDate>Fri, 15 Jul 2011 12:17:59 +0000</pubDate>
      <guid>https://nostuff.org/archive/2011/marc-tools-marcrecord-errors/</guid>
      <description>&lt;p&gt;I know next to nothing about MARC,though being a &lt;a href=&#34;http://www.shambrarian.org/&#34;&gt;shambrarian&lt;/a&gt; I have to fight it sometimes. My knowledge is somewhat binary, absolutely nothing for most fields/subfields/tags but ‘fairly ok’ for the bits I’ve had to wrestle with.&lt;/p&gt;&#xA;&lt;p&gt;[If you don’t know that MARC21 is an ageing bibliographic metadata standard, move on. This is not the blog post you’re looking for]&lt;/p&gt;&#xA;&lt;p&gt;Recent encounters with MARC&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Importing MARC files in to our Library System (&lt;del&gt;Talis&lt;/del&gt; Capita &lt;a href=&#34;http://www.talis.com/alto/&#34;&gt;Alto&lt;/a&gt;), mainly for our e-journals (so users can search our catalogue and find a link to a journal if we subscribe to it online). Many of the MARC records were of poor quality and often did not even state the item was (a) a journal (b) online. Additionally Alto will only import if there is a &lt;a href=&#34;http://www.loc.gov/marc/bibliographic/bd001.html&#34;&gt;001&lt;/a&gt; field, even though the first thing it does is move the 001 field to the &lt;a href=&#34;http://www.loc.gov/marc/bibliographic/bd035.html&#34;&gt;035&lt;/a&gt; field and create its own. To handle these I used a very simple script to run through the MARC file – using &lt;a href=&#34;http://search.cpan.org/dist/MARC-Record/&#34;&gt;MARC::Record&lt;/a&gt; – to add an 001/&lt;a href=&#34;http://www.loc.gov/marc/bibliographic/bd006.html&#34;&gt;006&lt;/a&gt;/&lt;a href=&#34;http://www.loc.gov/marc/bibliographic/bd007.html&#34;&gt;007&lt;/a&gt; where required.&lt;/li&gt;&#xA;&lt;li&gt;Setting up &lt;a href=&#34;http://sabre.sussex.ac.uk/&#34;&gt;sabre&lt;/a&gt; – a web catalogue which searches the records of both the University of Sussex and the University of Brighton – we need to pre-process the MARC records to add extra fields, in particular a field to tell the software (&lt;a href=&#34;http://vufind.org/&#34;&gt;vufind&lt;/a&gt;) which organisation the record was from.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;record-problems&#34;&gt;Record problems&lt;/h3&gt;&#xA;&lt;div&gt;&#xA;  One of the issues was that not all the records from the University of Brighton were present in sabre. Where were they going missing? Were they being exported from the Brighton system? copied to the sabre server ok? Being output through the perl scritp? lost during the vufind import process?&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA;  To answer these questions I needed to see what was in the MARC files, the problem is that MARC is a binary format so you can&amp;#8217;t just fire up vi to investigate. The first tool of the trade is a quick script using MARC::Record to convert a MARC file to text file. But this wasn&amp;#8217;t getting to the bottom of it. This lead me to a few PC tools that were of use.&#xA;&lt;/div&gt;&#xA;&lt;h3 id=&#34;pc-tools&#34;&gt;PC Tools&lt;/h3&gt;&#xA;&lt;div&gt;&#xA;  &lt;strong&gt;&lt;a href=&#34;http://people.oregonstate.edu/~reeset/marcedit/html/index.php&#34;&gt;MarcEdit&lt;/a&gt;&lt;/strong&gt; : Probably the best known PC application. It allows you to convert a MARC file to text, and contains an editor as well as a host of other tools. A good swiss army knife.&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA;  &lt;strong&gt;MARCView&lt;/strong&gt; : Originally from &lt;a href=&#34;http://www.systemsplanning.com/marconvert/&#34;&gt;Systems Planning&lt;/a&gt; and now &lt;a href=&#34;http://oclc.org/developer/content/marcviewmarconvert-software-description&#34;&gt;provided by OCLC&lt;/a&gt;, I had not come across MARCView until recently. It allows you to browse and search through a file containing MARC records. Though the browsing element does not work on larger files.&#xA;&lt;/div&gt;&#xA;&lt;div&gt;&#xA; &lt;a href=&#34;https://nostuff.org/archive/wp-content/uploads/2011/07/marcview.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;wp-image-700 size-large&#34; title=&#34;marcview&#34; src=&#34;https://nostuff.org/archive/wp-content/uploads/2011/07/marcview-1024x867.jpg&#34; alt=&#34;marcview&#34; width=&#34;620&#34; height=&#34;525&#34; /&gt;&lt;/a&gt;&#xA;  &lt;p&gt;&#xA;    &amp;nbsp;&#xA;  &lt;/p&gt;</description>
    </item>
    <item>
      <title>VuFind in 8 minutes using Amazon EC2</title>
      <link>https://nostuff.org/archive/2011/vufind-in-8-minutes-using-amazon-ec2/</link>
      <pubDate>Wed, 26 Jan 2011 13:02:24 +0000</pubDate>
      <guid>https://nostuff.org/archive/2011/vufind-in-8-minutes-using-amazon-ec2/</guid>
      <description>&lt;p&gt;I’ve created a screencast showing how easy it can be to install VuFind. Here I go from nothing (no server, no OS) to full VuFind install in under 8 minutes.&lt;/p&gt;&#xA;&lt;p&gt;It would probably take less than two minutes (under 10mins in total) to add MARC records to the installation, but I didn’t have any to hand at the time.&lt;/p&gt;&#xA;&lt;p&gt;This demo cheats a bit by using a script that does the heavy work, the script was a mash up I created taking existing scripts and commands that come with VuFind with a few tweaks. It probably would have been only slightly slow to run most commands manually.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Talis Aspire, checking if a course has a list</title>
      <link>https://nostuff.org/archive/2010/talis-aspire-checking-if-a-course-has-a-list/</link>
      <pubDate>Tue, 31 Aug 2010 14:26:18 +0000</pubDate>
      <guid>https://nostuff.org/archive/2010/talis-aspire-checking-if-a-course-has-a-list/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.talis.com/aspire/&#34; target=&#34;_blank&#34;&gt;Talis Aspire&lt;/a&gt; is a new-ish Reading List system used at the University of Sussex Library.&lt;/p&gt;&#xA;&lt;p&gt;On Aspire, a url for a &lt;em&gt;Department&lt;/em&gt; looks like this:&lt;br&gt;&#xA;&lt;a href=&#34;http://liblists.sussex.ac.uk/departments/anthropology.html&#34;&gt;http://liblists.sussex.ac.uk/departments/anthropology.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;A page for a &lt;em&gt;course&lt;/em&gt; looks like this (for course l6061):&lt;br&gt;&#xA;&lt;a href=&#34;http://liblists.sussex.ac.uk/courses/l6061.html&#34;&gt;http://liblists.sussex.ac.uk/courses/l6061.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The nice thing is that you can replace the ‘.html’ with &lt;a href=&#34;http://liblists.sussex.ac.uk/courses/l6061.json&#34; target=&#34;_blank&#34;&gt;.json&lt;/a&gt; or &lt;a href=&#34;http://liblists.sussex.ac.uk/courses/l6061.rdf&#34; target=&#34;_blank&#34;&gt;.rdf&lt;/a&gt; – while the html only has a link to the related list, the json and rdf expose other links and relationships, such as the department.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Dev8D</title>
      <link>https://nostuff.org/archive/2010/dev8d/</link>
      <pubDate>Sun, 28 Feb 2010 20:07:22 +0000</pubDate>
      <guid>https://nostuff.org/archive/2010/dev8d/</guid>
      <description>&lt;p&gt;This isn’t a comprehensive review of dev8d, checkout the &lt;a class=&#34;libx-autolink&#34; style=&#34;border-bottom: 1px dotted;&#34; href=&#34;http://twapperkeeper.com/dev8d/&#34;&gt;twitter stream&lt;/a&gt; (that link uses twapperkeeper by the way, the guy who created it was there and it was great talking to him), and &lt;a class=&#34;libx-autolink&#34; style=&#34;border-bottom: 1px dotted;&#34; href=&#34;http://wiki.2010.dev8d.org/w/Main_Page&#34;&gt;wiki&lt;/a&gt; for and much else on the web for what went on.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ircount development</title>
      <link>https://nostuff.org/archive/2009/ircount-development/</link>
      <pubDate>Thu, 26 Nov 2009 20:59:18 +0000</pubDate>
      <guid>https://nostuff.org/archive/2009/ircount-development/</guid>
      <description>&lt;p&gt;I’ve finally got around to spending a bit of time on the &lt;em&gt;&lt;a href=&#34;http://www.nostuff.org/ircount/&#34;&gt;ircount&lt;/a&gt;&lt;/em&gt; code.&lt;/p&gt;&#xA;&lt;p&gt;This post goes through some of the techy stuff behind it. If you’re just interested in features, I’m afraid there’s none yet, but you can now compare more than 4 repositories, but that’s as far as you’ll want to read.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ircount : Repository Record Statistics</title>
      <link>https://nostuff.org/archive/2009/ircount-repository-record-statistics/</link>
      <pubDate>Thu, 14 May 2009 19:34:53 +0000</pubDate>
      <guid>https://nostuff.org/archive/2009/ircount-repository-record-statistics/</guid>
      <description>&lt;p&gt;I’ve updated &lt;em&gt;Repository Record  Statistics&lt;/em&gt; (which I refer to as &lt;em&gt;ircount&lt;/em&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Some key points:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Repository names with non-standard characters were not displaying properly. They now should, though there are some parts of the site where I have not updated the code yet. Many &lt;a href=&#34;http://www.nostuff.org/ircount/index.php?country=ru&#34;&gt;Russian&lt;/a&gt; IRs are also not showing the correct name, even though it is correct in the database, which I will look in to.&lt;/li&gt;&#xA;&lt;li&gt;If a repository changes its name (in ROAR) then the new name should be shown in ircount&lt;/li&gt;&#xA;&lt;li&gt;When looking at the details for one Repository, you can now compare it with any other repository, not just those from the same country. You’ll see two drop down boxes, one for those from the same country (for convenience) and one listing all repositories.&lt;/li&gt;&#xA;&lt;li&gt;I’ve removed the Full Text numbers, which only appeared for some repositories. They were inaccurate and not very useful.&lt;/li&gt;&#xA;&lt;li&gt;There’s now a link on the homepage to ircount news (which is actually just posts on this blog which have been &lt;a href=&#34;http://www.nostuff.org/words/tag/ircount/&#34;&gt;tagged ‘ircount’,&lt;/a&gt; like this one).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The code is now in a subversion (svn) repository, my first time using such a system, which should help me keep track of changes. I can make it available to others if anyone is interested.&lt;/p&gt;</description>
    </item>
    <item>
      <title>short urls, perl and base64</title>
      <link>https://nostuff.org/archive/2009/short-urls-perl-and-base64/</link>
      <pubDate>Mon, 09 Mar 2009 23:56:20 +0000</pubDate>
      <guid>https://nostuff.org/archive/2009/short-urls-perl-and-base64/</guid>
      <description>&lt;p&gt;One of my many many many faults is coming up with (in my blinkered eyes – good) ideas, thinking about them non-stop for 24hours, developing every little detail and aspect. Then spending a few hours doing some of the first things required. then getting bored and moving on to something else. Repeat ad nauseum.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Today’s brilliant plan (to take over the world)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Over the weekend it was ‘tinyurl.com’ services and specifically creating my own one.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SQL update: doing a find/replace on part of a field</title>
      <link>https://nostuff.org/archive/2006/sql-update-doing-a-findreplace-on-part-of-a-field/</link>
      <pubDate>Thu, 30 Nov 2006 11:10:07 +0000</pubDate>
      <guid>https://nostuff.org/archive/2006/sql-update-doing-a-findreplace-on-part-of-a-field/</guid>
      <description>&lt;p&gt;SQL is one of those things I rarely use, and it’s normally the simple stuff, but doing anything a little more complex can be non-obvious. For example, I had a bunch of URLs where I just need to update a part of the URL, as we were moving some files on a website. I eventually found what I wanted within the &lt;a href=&#34;http://dev.mysql.com/doc/refman/5.0/en/update.html&#34;&gt;comments to the MySQL UPDATE command documentation&lt;/a&gt;. (credit to Alex de Landgraaf on July 21 2004):&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
