Hello everyone, Galen, Mike, Thanks much for the input--I appreciate it!
--Tony Tony Bandy [email protected] OHIONET 1500 West Lane Ave. Columbus, OH 43221-3975 614-484-1074 (Direct) 614-486-2966 x19 -----Original Message----- From: Open-ils-general [mailto:[email protected]] On Behalf Of Galen Charlton Sent: Wednesday, July 29, 2015 4:03 PM To: Evergreen Discussion Group <[email protected]> Subject: Re: [OPEN-ILS-GENERAL] Full author date on individual titles? Hi, On Wed, Jul 29, 2015 at 3:25 PM, Tony Bandy <[email protected]> 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: [email protected] 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
