<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Perl on nostuff.org archive | Chris Keene</title>
    <link>https://nostuff.org/archive/tags/perl/</link>
    <description>Recent content in Perl on nostuff.org archive | Chris Keene</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Fri, 15 Jul 2011 12:17:59 +0000</lastBuildDate>
    <atom:link href="https://nostuff.org/archive/tags/perl/index.xml" rel="self" type="application/rss+xml" />
    <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>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>
  </channel>
</rss>
