From: Michele Morgan Date: Thu, 27 Oct 2022 14:09:50 +0000 (-0400) Subject: LP1396764 - Apply Hours of Operation Note Field to tpac X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5c42bd1b095f374af50fca75563a089cdc5462ca;p=evergreen%2Fmasslnc.git LP1396764 - Apply Hours of Operation Note Field to tpac Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/templates/opac/parts/library/hours.tt2 b/Open-ILS/src/templates/opac/parts/library/hours.tt2 index d0bf5b9bd0..cb5e5aed98 100644 --- a/Open-ILS/src/templates/opac/parts/library/hours.tt2 +++ b/Open-ILS/src/templates/opac/parts/library/hours.tt2 @@ -14,90 +14,125 @@ [%- open = today _ ctx.hours.dow_0_open; close = today _ ctx.hours.dow_0_close; + note = ctx.hours.dow_0_note; IF open == close; %]
[% l('Monday: closed') %]
[%- ELSE %]
[% l('Monday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_0_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_1_open; close = today _ ctx.hours.dow_1_close; + note = ctx.hours.dow_1_note; IF open == close; %]
[% l('Tuesday: closed') %]
[%- ELSE %]
[% l('Tuesday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_1_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_2_open; close = today _ ctx.hours.dow_2_close; + note = ctx.hours.dow_2_note; IF open == close; %]
[% l('Wednesday: closed') %]
[%- ELSE %]
[% l('Wednesday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_2_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_3_open; close = today _ ctx.hours.dow_3_close; + note = ctx.hours.dow_3_note; IF open == close; %]
[% l('Thursday: closed') %]
[%- ELSE %]
[% l('Thursday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_3_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_4_open; close = today _ ctx.hours.dow_4_close; + note = ctx.hours.dow_4_note; IF open == close; %]
[% l('Friday: closed') %]
[%- ELSE %]
[% l('Friday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_4_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_5_open; close = today _ ctx.hours.dow_5_close; + note = ctx.hours.dow_5_note; IF open == close; %]
[% l('Saturday: closed') %]
[%- ELSE %]
[% l('Saturday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_5_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %] [%- open = today _ ctx.hours.dow_6_open; close = today _ ctx.hours.dow_6_close; + note = ctx.hours.dow_6_note; IF open == close; %]
[% l('Sunday: closed') %]
[%- ELSE %]
[% l('Sunday: [_1] - [_2]', '', - '') -%] + '') +-%] +[% IF ctx.hours.dow_6_note %] + [%l('(' _ note _ ')')%] +[% END -%]
[%- END %]