From: Kyle Huckins Date: Mon, 4 Apr 2022 09:13:57 +0000 (+0000) Subject: lp1396764 - Hourse of Operation Note Field X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=16c2c12e48cb0121a41475cdf33889276c297e3f;p=working%2FEvergreen.git lp1396764 - Hourse of Operation Note Field - Add a note field to each day of the week for the Hours of Operation object - Display any existing notes note in the OPAC after their specified day Signed-off-by: Kyle Huckins Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 35eaebcacd..86e8fc0ff9 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -3747,18 +3747,25 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html index 0955e981ad..19b803a751 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html @@ -67,6 +67,7 @@
Open Time
Close Time
+
Edit Note Field?
@@ -92,6 +93,24 @@
+
+ +
+
+
+
+
+
+
Note:
+
+ +
+
+
+
[% 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 %]
\ No newline at end of file