<div dir="ltr">Hi Blake,<div><br></div><div>The problem is getting the Average transform to be available for a publication date we pull out of the record already (date1 SVF from 008, sorting metabib field, pubdate display field, maybe others), but they're all marked as text instead of numeric. However, a little adjustment (and if it works, hopefully followed by a patch) should make it possible.</div><div><br></div><div>By default, the Date1 record attribute, which is presented as "Date1" in the Fixed Field Entry source off the Bib Record source, uses the "Approximate Low Date Normalize" index normalizer. That gets the field into a number-ish state when it contains any data at all, so a change to the metabib.rec_descriptor view (that's what's under the Fixed Field Entry source) that casts the date1 column to a number (probably numeric) and makes sure it's NULL if not number-ish will allow a change to the IDL that marks that field as an int. Then, the reporter will let you build templates that average the field.</div><div><br></div><div>Others may have opinions on the ... efficacy ... of forcing the date1 data into a strict number-ish context, though.</div><div><br></div><div>HTH,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<br>Mike Rylander<br>Research and Development Manager<br>Equinox Open Library Initiative<br>1-877-OPEN-ILS (673-6457)<br>miker@equinoxOLI.org<br><a href="https://equinoxOLI.org" target="_blank">https://equinoxOLI.org</a><br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 16, 2024 at 11:23 AM Blake Graham-Henderson via Evergreen-reports <<a href="mailto:evergreen-reports@list.evergreen-ils.org">evergreen-reports@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
We're wrestling with the idea of reporting the average publication year <br>
for a set of items on certain shelves. As we all know, the publication <br>
year comes out of the MARC, and includes lots of non-digit characters <br>
like copyright symbols, brackets, parenthesis, etc. So it would seem we <br>
can't use that for an average. What is everyone else doing for this? Or <br>
are you?<br>
<br>
-- <br>
-Blake-<br>
Conducting Magic<br>
Will consume any data format<br>
MOBIUS<br>
<br>
_______________________________________________<br>
Evergreen-reports mailing list<br>
<a href="mailto:Evergreen-reports@list.evergreen-ils.org" target="_blank">Evergreen-reports@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-reports" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-reports</a><br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "Sales" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:sales%2Bunsubscribe@equinoxinitiative.org" target="_blank">sales+unsubscribe@equinoxinitiative.org</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/a/equinoxinitiative.org/d/msgid/sales/6757dbff-10a9-441c-9e13-63d80c643f1b%40mobiusconsortium.org" rel="noreferrer" target="_blank">https://groups.google.com/a/equinoxinitiative.org/d/msgid/sales/6757dbff-10a9-441c-9e13-63d80c643f1b%40mobiusconsortium.org</a>.<br>
</blockquote></div>