From efe3ed4f27e596f7c1e92cdd948a8afe7643e48b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 8 Sep 2022 15:43:23 +0000 Subject: [PATCH] Bug 30304: (follow-up) Add markup comments This patch adds comments to the template to highlight the markup structure. This patch should have no effect on the page's appearance or functionality. Signed-off-by: Katrin Fischer --- .../prog/en/modules/virtualshelves/shelves.tt | 156 +++++++++--------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 4ad09c6c83..3c1e4c7e5e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -146,67 +146,67 @@ [% FOR m IN messages %]
[% SWITCH m.code %] - [% CASE 'error_on_update' %] - An error occurred when updating this list. - [% CASE 'error_on_insert' %] - An error occurred when creating this list. - [% CASE 'error_on_delete' %] - An error occurred when deleting this list. - [% CASE 'error_on_add_biblio' %] - [% IF m.item_barcode %] - The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list. - [% ELSE %] - The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list. - [% END %] - [% CASE 'success_on_update' %] - List updated. - [% CASE 'success_on_insert' %] - List created. - [% CASE 'success_on_delete' %] - List deleted. - [% CASE 'success_on_add_biblio' %] - [% IF m.item_barcode %] - The item ([% m.item_barcode | html %]) has been added to the list. - [% ELSE %] - The record ([% m.bibnum | html %]) has been added to the list. - [% END %] - [% CASE 'success_on_remove_biblios' %] - The item has been removed from the list. - [% CASE 'does_not_exist' %] - This list does not exist. - [% CASE 'item_does_not_exist' %] - [% IF m.item_barcode %] - The item ([% m.item_barcode | html %]) does not exist. - [% ELSE %] - The record ([% m.bibnum | html %]) does not exist. - [% END %] - [% CASE 'unauthorized_on_view' %] - You do not have permission to view this list. - [% CASE 'unauthorized_on_update' %] - You do not have permission to update this list. - [% CASE 'unauthorized_on_delete' %] - You do not have permission to delete this list. - [% CASE 'unauthorized_on_add_biblio' %] - You do not have permission to add a record to this list. - [% CASE 'unauthorized_transfer' %] - You do not have permission to transfer ownership of this list. - [% CASE 'new_owner_not_found' %] - The new owner could not be found anymore. - [% CASE 'no_biblio_removed' %] - No record was removed. - - [% CASE 'Koha::Exceptions::Virtualshelf::DuplicateObject' %] - An error occurred when creating this list. The name [% shelfname | html %] already exists. - [% CASE 'Koha::Exceptions::Virtualshelf::UseDbAdminAccount' %] - List could not be created. (Do not use the database administrator account.) - [% CASE 'DBIx::Class::Exception' %] - [% m.msg | html %] - - [% CASE %] - [% m.code | html %] [% m.msg | html %] - [% END %] + [% CASE 'error_on_update' %] + An error occurred when updating this list. + [% CASE 'error_on_insert' %] + An error occurred when creating this list. + [% CASE 'error_on_delete' %] + An error occurred when deleting this list. + [% CASE 'error_on_add_biblio' %] + [% IF m.item_barcode %] + The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list. + [% ELSE %] + The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list. + [% END %] + [% CASE 'success_on_update' %] + List updated. + [% CASE 'success_on_insert' %] + List created. + [% CASE 'success_on_delete' %] + List deleted. + [% CASE 'success_on_add_biblio' %] + [% IF m.item_barcode %] + The item ([% m.item_barcode | html %]) has been added to the list. + [% ELSE %] + The record ([% m.bibnum | html %]) has been added to the list. + [% END %] + [% CASE 'success_on_remove_biblios' %] + The item has been removed from the list. + [% CASE 'does_not_exist' %] + This list does not exist. + [% CASE 'item_does_not_exist' %] + [% IF m.item_barcode %] + The item ([% m.item_barcode | html %]) does not exist. + [% ELSE %] + The record ([% m.bibnum | html %]) does not exist. + [% END %] + [% CASE 'unauthorized_on_view' %] + You do not have permission to view this list. + [% CASE 'unauthorized_on_update' %] + You do not have permission to update this list. + [% CASE 'unauthorized_on_delete' %] + You do not have permission to delete this list. + [% CASE 'unauthorized_on_add_biblio' %] + You do not have permission to add a record to this list. + [% CASE 'unauthorized_transfer' %] + You do not have permission to transfer ownership of this list. + [% CASE 'new_owner_not_found' %] + The new owner could not be found anymore. + [% CASE 'no_biblio_removed' %] + No record was removed. + + [% CASE 'Koha::Exceptions::Virtualshelf::DuplicateObject' %] + An error occurred when creating this list. The name [% shelfname | html %] already exists. + [% CASE 'Koha::Exceptions::Virtualshelf::UseDbAdminAccount' %] + List could not be created. (Do not use the database administrator account.) + [% CASE 'DBIx::Class::Exception' %] + [% m.msg | html %] + + [% CASE %] + [% m.code | html %] [% m.msg | html %] + [% END # /SWITCH %]
- [% END %] + [% END # /FOR m IN messages %] [% IF op == 'transfer' %]

Transfer ownership of public list [% shelf.shelfname | html %]

@@ -237,7 +237,7 @@ - [% END %] + [% END # /IF op == transfer %] [% IF op == 'view' %]

Contents of [% shelf.shelfname | html %]

@@ -378,16 +378,16 @@ [[% item.itemcallnumber | html %]] [% END %] - [% END %] + [% END # /FOREACH item %] - [% END %] - + [% END #/FOREACH itemsloo %] +
[% pagination_bar | $raw %]
- [% END %] - [% END %] + [% END # /IF itemsloop %] + [% END # /IF op == 'view' %] [% IF op == 'add_form' OR op == 'edit_form' %] @@ -481,7 +481,7 @@ [% END %] - [% END %] + [% END # /IF op == 'add_form'... %] [% IF op == 'list' %]

Lists

@@ -531,10 +531,10 @@ - - - - [% END %] + + + + [% END # /IF op == 'list' %]
@@ -573,16 +573,16 @@ - +
- - -[% END %] + + +[% END # IF /( can_add_biblios ) %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] @@ -597,7 +597,7 @@ setTimeout('window.close()', 1000); // Hack for Chrome < 63 }); - [% END %] + [% END #/print %] [% IF op == 'view' %] [% Asset.js("lib/hc-sticky.js") | $raw %] @@ -707,7 +707,7 @@ return confirmDelete(MSG_CONFIRM_DELETE_LIST); }); }); - [% END %] + [% END # /IF op == 'list' %] [% IF shelf AND op == 'view' %] var Sticky; @@ -804,7 +804,7 @@ $("#barcodes").focus(); }); }); - [% END %] + [% END # /IF shelf %] [% IF shelf AND op == 'edit_form' %] $(document).ready(function(){ -- 2.30.2