I keep all my Perl scripts in one directory, and then call them from the
command line. I don't quite trust the Windows GUI when running scripts,
but that's just me. So, eg.
C:> cd [c:\Documents and Settings\...\...\[location of finding aids]
C:> c:\Program Files\Perl programs\tri-XMLdate-normalizer.pl
Then follow the prompts. By 'cd'ing to the finding aid directory in the
first step, you don't have to type that long path to your finding aid
once inside the script (which does not do autocompletion as does the
Jason, you're a genius for thinking of all those date formats, thank you!
Irish Virtual Research Library and Archive Project (HII),
James Joyce Library,
(t) 01 716 7506
(e) [log in to unmask]
----- Original Message -----
From: Jason Casden <[log in to unmask]>
Date: Wednesday, July 11, 2007 6:06 pm
Subject: Re: Normalization of Dates - clarification
To: [log in to unmask]
> Hi all,
> It's great to hear that people are still interested in this script!
> Sorryfor any confusion in the installation instructions. Let me try
> to clear it
> up a little bit. It sounds like you all have been able to install
> ActivePerl(by the way, it should be safe to install the most
> current version), so the
> steps after that should go about as follows:
> 1) Go to your Start Menu, the "ActivePerl 5.8...." folder, and run
> "PerlPackage Manager"
> 2) Click the leftmost icon on the menu bar ("View All Packages")
> 3) Type XML-Twig
> 4) XML-Twig should show up in the main display area. Right click on
> it and
> select "Install XML-Twig."
> 5) Go to the File menu and select "Run Marked Actions."
> 6) Exit.
> This process is a little more user friendly than it was when the
> script was
> released. Also, it looks like HTML::Entities is packaged with
> ActivePerlalready. Now...
> 7) Create a directory for the date normalizer script.
> 8) Put copies of the finding aids you want to work on in that
> directory.9) Put the script in that directory.
> 10) Run the script by double clicking it, and then following the
> Hopefully this will work for everyone. Please let me know if you
> have any
> other problems with it. Also, if you notice any bugs or have ideas for
> possible enhancements, I am happy to try to improve the tool.
> Regarding Date::Manip, I am pretty sure there were some good
> reasons that I
> ended up doing the date manipulation manually (using regular
> expressions),but they aren't all available to me right now. I know
> one issue was the
> impressive creativity of the people who entered dates originally,
> which gave
> us a lot of formats that were either ambiguous, not usable by
> Date::Manip or
> which contained information (like question marks) that we wanted to
> around 1977
> I don't know
> not dated
> the 50's
> It's probably possible to simplify the script by using Date::Manip
> to work
> with the more standard-ish dates, but I ended up using regex the
> whole way.
> By the way, this script was the brainchild of Amy McCrory at Ohio
> State, so
> there are some decisions the script makes in ambiguous situations
> that are
> in line with practices at OSU that may not agree with those of your
> institution. In most situations where there isn't an obvious way to
> normalize a date, however, the script asks the user for their own
> And, again, please don't hesitate to get ahold of me with any
> Jason Casden / [log in to unmask]
> Digital Projects Librarian
> Ehrman Medical Library, NYU School of Medicine
> v: 212-263-8935 f: 212-263-6534