[OPEN-ILS-GENERAL] Full author date on individual titles?
Tony Bandy
tonyb at ohionet.org
Thu Jul 30 09:07:20 EDT 2015
Hello everyone, Galen, Mike,
Thanks much for the input--I appreciate it!
--Tony
Tony Bandy
tonyb at ohionet.org
OHIONET
1500 West Lane Ave.
Columbus, OH 43221-3975
614-484-1074 (Direct)
614-486-2966 x19
-----Original Message-----
From: Open-ils-general [mailto:open-ils-general-bounces at list.georgialibraries.org] On Behalf Of Galen Charlton
Sent: Wednesday, July 29, 2015 4:03 PM
To: Evergreen Discussion Group <open-ils-general at list.georgialibraries.org>
Subject: Re: [OPEN-ILS-GENERAL] Full author date on individual titles?
Hi,
On Wed, Jul 29, 2015 at 3:25 PM, Tony Bandy <tonyb at ohionet.org> wrote:
> 2. Now if I select that particular title:
>
> http://blanchester.cool-cat.org/eg/opac/record/930326?query=Sandford%2
> C%20John.;qtype=author;locg=111
>
> The results are:
>
> Sandford, John, 1944- Cook, Michele.
Thanks for providing the example. It turns out that
opac/parts/record/authors.tt2 is in fact responsible for displaying
100 1# ‡a Sandford, John, ‡d 1944 February 23-
as
Sandford, John, 1944-
or more to the point:
<span class="rdetail-author-div" typeof="Person" property="author"
resource="#schemacontrib1">
<a href="/eg/opac/results?...">
<span property="name">Sandford, John,</span>
<span property="birthDate">1944</span>-</span></a>
 
</span>
Specifically, as part of generating the schema.org markup, only the year component of "1944 February 23-" is kept. The normalization is done in the following lines of authors.tt2:
IF subfield.textContent.match('^\s*\d{4}');
birthdate = subfield.textContent.replace('^\s*(\d{4}).*$', '$1'); END;
I *think* that better markup for the birth date in this case would be the following, but I'm hoping Dan Scott can advise further:
<time property="birthDate" datetime="1944-02-23">1994 February 23-</time>
Or, to avoid putting in a full date string parser into the template, perhaps something like this:
<time property="birthDate" datetime="1944">1994 February 23-</time>
Regards,
Galen
--
Galen Charlton
Infrastructure and Added Services Manager Equinox Software, Inc. / The Open Source Experts
email: gmc at esilibrary.com
direct: +1 770-709-5581
cell: +1 404-984-4366
skype: gmcharlt
web: http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org & http://evergreen-ils.org
More information about the Open-ils-general
mailing list