[OPEN-ILS-GENERAL] Receipt template date formats?

Jane Sandberg sandbej at linnbenton.edu
Fri Oct 9 15:06:12 EDT 2015


Hi all,

Thanks for these suggestions.  The "sledgehammer" approach of using
the library setting was the only thing I had much success with, but it
looks like this should work for us.  I used the following format to
make sure it wasn't too many characters to display nicely in the staff
client:

yyyy-MM-dd (EEE)

Again, I really appreciate your help!

  -Jane

On Fri, Oct 2, 2015 at 6:12 AM, Thomas Berezansky <tsbere at mvlc.org> wrote:
> Which is why I suggested the %due_date_sort_value% variant.
>
>
> Quoting "McCanna, Terran" <tmccanna at georgialibraries.org>:
>
>> I tested %a (and every other standard and non-standard letter, lower case
>> and capitalized) and didn't find one that worked with %due_date%.
>>
>>
>> Terran McCanna
>> PINES Program Manager
>> Georgia Public Library Service
>> 1800 Century Place, Suite 150
>> Atlanta, GA 30345
>> 404-235-7138
>> tmccanna at georgialibraries.org
>> ----- Original Message -----
>> From: "Thomas Berezansky" <tsbere at mvlc.org>
>> To: "Evergreen Discussion Group"
>> <open-ils-general at list.georgialibraries.org>
>> Sent: Friday, October 2, 2015 8:44:19 AM
>> Subject: Re: [OPEN-ILS-GENERAL] Receipt template date formats?
>>
>> If %a works (and I haven't tested to see that it does) you would
>> probably want this:
>>
>> %DATE_FORMAT(%due_date_sort_value%, %a)%
>>
>> The pre-formatted %due_date% doesn't usually parse as a date.
>>
>> Quoting "McCanna, Terran" <tmccanna at georgialibraries.org>:
>>
>>> Hi Jane,
>>>
>>> I haven't tested this, but I think you can get the day of the week with
>>> %a:
>>>
>>> %DATE_FORMAT(%due_date%, %a)%
>>>
>>>
>>> Terran McCanna
>>> PINES Program Manager
>>> Georgia Public Library Service
>>> 1800 Century Place, Suite 150
>>> Atlanta, GA 30345
>>> 404-235-7138
>>> tmccanna at georgialibraries.org
>>> ----- Original Message -----
>>> From: "Jane Sandberg" <sandbej at linnbenton.edu>
>>> To: "Evergreen Discussion Group"
>>> <open-ils-general at list.georgialibraries.org>
>>> Sent: Thursday, October 1, 2015 4:43:47 PM
>>> Subject: [OPEN-ILS-GENERAL] Receipt template date formats?
>>>
>>> Hi Evergreen,
>>>
>>> We were wondering if we could change the format of the due date in
>>> receipt templates.  The %due_date% macro gives us the YYYY-MM-DD
>>> format, but we were interested in getting the day of the week in there
>>> somehow.  Is this a possibility?
>>>
>>> Thanks,
>>>
>>>   -Jane
>>>
>>> --
>>> Jane Sandberg
>>> Electronic Resources Librarian
>>> Linn-Benton Community College
>>> sandbej at linnbenton.edu / 541-917-4655
>>
>>
>>
>> --
>> Thomas Berezansky
>> Assistant Network Administrator
>> Merrimack Valley Library Consortium
>> 4 High ST, Suite 175
>> North Andover, MA 01845
>> Phone: 978-557-8161
>
>
>
> --
> Thomas Berezansky
> Assistant Network Administrator
> Merrimack Valley Library Consortium
> 4 High ST, Suite 175
> North Andover, MA 01845
> Phone: 978-557-8161
>



-- 
Jane Sandberg
Electronic Resources Librarian
Linn-Benton Community College
sandbej at linnbenton.edu / 541-917-4655


More information about the Open-ils-general mailing list