{"id":846,"date":"2018-07-02T23:07:51","date_gmt":"2018-07-02T18:07:51","guid":{"rendered":"http:\/\/sites.nd.edu\/emorgan\/?p=846"},"modified":"2018-07-02T23:07:51","modified_gmt":"2018-07-02T18:07:51","slug":"marc2catalog","status":"publish","type":"post","link":"https:\/\/sites.nd.edu\/emorgan\/2018\/07\/marc2catalog\/","title":{"rendered":"marc2catalog"},"content":{"rendered":"<p>\nGiven a set of MARC records, output a set of library catalogs\n<\/p>\n<p>\nThis set of scripts will take a set of MARC data, parse it into a simple (rudimentary and SQLite) database, and then generate a report against the database in the form of plain text files &#8212; a set of &#8220;library catalogs &amp; indexes&#8221;. These catalogs &amp; indexes are intended to be printed, but they can also be used to support rudimentary search via one&#8217;s text editor. For extra credit, the programer could read the underlying database, feed the result to an indexer, and create an OPAC (online public access catalog).\n<\/p>\n<p>\nThe system requires a bit of infrastructure: 1) Bash, 2) Perl, 3) a Perl module named MARC::Batch, 4) the DBI driver for SQLite.\n<\/p>\n<p>\nThe whole MARC-to-catalog process can be run with a single command:\n<\/p>\n<blockquote><p>\n<code>.\/bin\/make-all.sh &lt;marc&gt; &lt;name&gt;<\/code>\n<\/p><\/blockquote>\n<p>Where &lt;marc&gt; is the name of the MARC file, and &lt;name&gt; is a one-word moniker for the collection. The distribution comes with sample data, and therefore an example execution includes:<\/p>\n<blockquote><p>\n<code>.\/bin\/make-all.sh .\/etc\/morse.mrc morse<\/code>\n<\/p><\/blockquote>\n<p>\nThe result ought to be the creation of a .db file in the .\/etc directory, a collections directory, and sub-directory of collections, and a set of plain text files in the later. The plain text files are intended to be printed or given away like candy to interested learners or scholars.\n<\/p>\n<p>\nThe code for marc2catalog ought to be available on <a href=\"https:\/\/github.com\/ericleasemorgan\/marc2catalog\">GitHub<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Given a set of MARC records, output a set of library catalogs This set of scripts will take a set of MARC data, parse it into a simple (rudimentary and SQLite) database, and then generate a report against the database in the form of plain text files &#8212; a set of &#8220;library catalogs &amp; indexes&#8221;. [&hellip;]<\/p>\n","protected":false},"author":92,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-846","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/posts\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/users\/92"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":4,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/posts\/846\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.nd.edu\/emorgan\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}