<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.code4lib.org/index.php?action=history&amp;feed=atom&amp;title=245_indicator_2</id>
		<title>245 indicator 2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.code4lib.org/index.php?action=history&amp;feed=atom&amp;title=245_indicator_2"/>
		<link rel="alternate" type="text/html" href="https://wiki.code4lib.org/index.php?title=245_indicator_2&amp;action=history"/>
		<updated>2026-04-29T19:33:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://wiki.code4lib.org/index.php?title=245_indicator_2&amp;diff=7739&amp;oldid=prev</id>
		<title>Doran: New page: This little (Perl) code snippet may be useful for parsing titles in data being converted to MARC record format.  It determines the 245 indicator 2 value (Number of nonfiling characters).  ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.code4lib.org/index.php?title=245_indicator_2&amp;diff=7739&amp;oldid=prev"/>
				<updated>2011-03-31T23:59:56Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This little (Perl) code snippet may be useful for parsing titles in data being converted to MARC record format.  It determines the 245 indicator 2 value (Number of nonfiling characters).  ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This little (Perl) code snippet may be useful for parsing titles in data being converted to MARC record format.  It determines the 245 indicator 2 value (Number of nonfiling characters).  Although it is fairly trivial and only covers a few languages (and may be incomplete or have errors), it can be improved upon, corrected, and added to.&lt;br /&gt;
&lt;br /&gt;
    #  Search the title string for beginning articles.  The 245 field&lt;br /&gt;
    #  indicator 2 is the amount of spaces until the start of the&lt;br /&gt;
    #  article-less title.&lt;br /&gt;
    #&lt;br /&gt;
    #  English:  A, An, The&lt;br /&gt;
    #  German:   Das, De, Dem, Den, Der, Des, Die,&lt;br /&gt;
    #            Ein, Eine, Einem, Einer, Eines,&lt;br /&gt;
    #            Keine, Keinen, Keiner&lt;br /&gt;
    #  French:   De l', De la, Des, Du,&lt;br /&gt;
    #            L', La, Le, Les&lt;br /&gt;
    #            Un Une&lt;br /&gt;
    #  Spanish:  El, La, Las, Los&lt;br /&gt;
    #            Un, Una, Unas, Unos&lt;br /&gt;
    #  Italian:  Il&lt;br /&gt;
    # &lt;br /&gt;
    my $title_ind2 = &amp;quot;&amp;quot;;&lt;br /&gt;
    if ($title =~ /^Keine[rn] /i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;7&amp;quot;;&lt;br /&gt;
    } elsif (&lt;br /&gt;
        $title =~ /^Eine[mrs] /i ||&lt;br /&gt;
        $title =~ /^Keine /i ||&lt;br /&gt;
        $title =~ /^De la /i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;6&amp;quot;;&lt;br /&gt;
    } elsif (&lt;br /&gt;
        $title =~ /^Eine /i ||&lt;br /&gt;
        $title =~ /^De l'/i ||&lt;br /&gt;
        $title =~ /^Un[ao]s /i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;5&amp;quot;;&lt;br /&gt;
    } elsif (&lt;br /&gt;
        $title =~ /^The /i ||&lt;br /&gt;
        $title =~ /^D[ae]s /i ||&lt;br /&gt;
        $title =~ /^Die /i ||&lt;br /&gt;
        $title =~ /^De[mnrs] /i ||&lt;br /&gt;
        $title =~ /^Ein /i ||&lt;br /&gt;
        $title =~ /^Un[ae] /i ||&lt;br /&gt;
        $title =~ /^L[aeo]s /i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;4&amp;quot;;&lt;br /&gt;
        $title_ind2 = &amp;quot;4&amp;quot;;&lt;br /&gt;
    } elsif (&lt;br /&gt;
        $title =~ /^An /i ||&lt;br /&gt;
        $title =~ /^D[eu] /i ||&lt;br /&gt;
        $title =~ /^Un /i ||&lt;br /&gt;
        $title =~ /^L[ae] /i ||&lt;br /&gt;
        $title =~ /^El /i ||&lt;br /&gt;
        $title =~ /^Il /i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;3&amp;quot;;&lt;br /&gt;
    } elsif (&lt;br /&gt;
        $title =~ /^A /i ||&lt;br /&gt;
        $title =~ /^L'/i) {&lt;br /&gt;
        $title_ind2 = &amp;quot;2&amp;quot;;&lt;br /&gt;
    } else {&lt;br /&gt;
        $title_ind2 = &amp;quot;0&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
--[[User:Doran|Doran]] 16:59, 31 March 2011 (PDT)&lt;/div&gt;</summary>
		<author><name>Doran</name></author>	</entry>

	</feed>