[OPEN-ILS-GENERAL] Full author date on individual titles?
Galen Charlton
gmc at esilibrary.com
Wed Jul 29 16:02:53 EDT 2015
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%2C%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