+
+[% UNLESS Koha.Preference( 'OPACDigitalSigns' ) %]
+
+ Digital signs are not enabled. Please enable
OPACDigitalSigns for OPAC digital signs to work.
+
+[% END %]
+
+[% IF ( else ) %]
+
+[% END %]
+
+[% IF op == 'stream_form' %]
+ [% UNLESS ( reports ) %]
+
+
No reports found
+ No reports with group code "SIGN" were found. Please
create a new report with group code "SIGN" and try again.
+
+ [% END %]
+
+ [% IF ( stream.sign_stream_id ) %]
+
Edit stream
+ [% ELSE %]
+
Add stream
+ [% END %]
+
+
+[% ELSIF op == 'sign_form' %]
+ [% IF ( sign.sign_id ) %]
+
Edit sign
+ [% ELSE %]
+
Add sign
+ [% END %]
+
+
+[% ELSIF op == 'edit_streams' %]
+
Edit streams attached to [% sign.name %]
+
Streams already attached to this sign
+ [% IF ( sts.count ) %]
+
+
+
+ Name |
+ Parameters |
+ |
+
+
+
+ [% FOREACH s IN sts %]
+
+ [% s.sign_stream.name %] |
+ [% IF s.params %][% s.params %][% ELSE %]None[% END %] |
+
+ [% IF s.params %]
+
+ [% ELSE %]
+
+ [% END %]
+ |
+ Detach |
+
+ [% END %]
+
+
+ [% ELSE %]
+ There are no streams attached to this sign.
+ [% END %]
+
+
Attach a new stream to this sign
+
+
+[% ELSIF op == 'get_params' %]
+
Parameters for [% stream.name %]
+ Based on report: [% sql.report_name %] |
Edit this report
+
+
+
+
Raw SQL
+
[% sql.savedsql | html %]
+
+
SQL with current parameters replaced
+
[% newsql | html %]
+
+ [% IF ( has_params ) %]
+ Sorry, your SQL still contains placeholders. You need to add more parameters.
+ [% ELSE %]
+
Records
+ [% INCLUDE display_records %]
+ [% END %]
+
+[% ELSIF op == 'del_stream' %]
+
+
Confirm deletion of stream '[% stream.name %]'?
+
+
+
+
+
+[% ELSIF op == 'del_stream_ok' %]
+
+
Stream deleted
+
+
+
+[% ELSIF op == 'del_sign' %]
+
+
Confirm deletion of sign '[% sign.name %]'?
+
+
+
+
+
+[% ELSIF op == 'del_sign_ok' %]
+
+
Sign deleted
+
+
+
+[% ELSIF op == 'view_sign' %]
+
[% sign.name %]
+
Streams
+
+ [% IF ( streams ) %]
+ [% FOREACH stream IN streams %]
+
[% stream.sign_stream.name %]
+
+ [% END %]
+ [% ELSE %]
+ No streams attached.
+ [% END %]
+
+[% ELSIF op == 'view_stream' %]
+
[% stream.name %]
+ Based on report: [% stream.saved_sql_id.report_name %] |
Edit this report
+
+
SQL
+
[% stream.saved_sql_id.savedsql | html %]
+
+
Records
+ [% IF ( has_params ) %]
+ Unable to display records. Check that this stream has been attached to a sign and any parameters have been filled appropriately.
+ [% ELSE %]
+ [% INCLUDE display_records %]
+ [% END %]
+
+[% ELSE %]
+
Digital signs
+
+ [% IF ( error_on_insert_stream ) %]
+
Failed to create a new stream.
+ [% ELSIF ( success_on_insert_stream ) %]
+
New stream added.
+ [% END %]
+
+
Signs
+ [% IF signs %]
+
+
+
+ Name |
+ Web-app |
+ Theme (swatch) |
+ Transition |
+ Idle after |
+ Page delay |
+ Reload after |
+ |
+
+
+
+ [% FOREACH s IN signs %]
+
+ [% s.name %] |
+ [% IF ( s.webapp ) %]Yes[% ELSE %]No[% END %] |
+ [% s.swatch %] |
+ [% s.transition %] |
+ [% s.idleafter %] |
+ [% s.pagedelay %] |
+ [% s.reloadafter %] |
+
+
+ |
+
+ [% END %]
+
+
+ [% UNLESS ( OPACBaseURL ) %]Please note: Links to view signs in the OPAC will only be displayed if you fill in the OPACBaseURL system preference.[% END %]
+ [% ELSE %]
+
+ [% END %]
+
+
Streams
+ [% IF streams %]
+
+
+
+ Name |
+ Report |
+ Actions |
+
+
+
+ [% FOREACH s IN streams %]
+
+ [% s.name %] |
+ [% s.saved_sql.report_name %] |
+
+ Edit
+ Delete
+ |
+
+ [% END %]
+
+
+ [% ELSE %]
+
+ [% END %]
+
+[% END %]
+
+