From 42af52c9bb347d5bbbb324628182efbf075676ac Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 13 Feb 2023 19:34:45 +0000 Subject: [PATCH] Bug 32164: Add link to MARC modification templates from batch record modification page This patch adds a more visible link from the batch record modification page in the event that there are no MARC modification templates defined. The patch also modifies the same message on the MARC modification templates page so that the interfaces are more unified. To test you should have no MARC modification templates defined. - Apply the patch and go to Tools -> Batch record modification. - You should see a message dialog containing a button, "Create a new MARC modification template." - Clicking it should take you to the MARC modification templates page, where you'll see a similar message and a button, "Create a new template." Clicking this button should trigger a modal form, just like clicking the "New template" button in the toolbar should. --- .../prog/en/modules/tools/batch_record_modification.tt | 5 +++-- .../prog/en/modules/tools/marc_modification_templates.tt | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index 3914e57cfc..deef201d1f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -269,8 +269,9 @@ [% ELSIF view == 'errors' %] [% FOR error IN errors %] [% IF error == 'no_template_defined' %] -
- No MARC modification template is defined. You have to create at least one template for using this tool. +
+

No MARC modification template is defined. You have to create at least one template in order to use this tool.

+ Create a new MARC modification template
[% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 53e80a5d88..04c2d10d69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -307,7 +307,10 @@ [% ELSE %]

MARC modification templates

-

There are no defined templates. Please create a template first.

+
+

There are no defined templates. Please create a template first.

+ Create a new template +
[% END # /IF TemplatesLoop %] -- 2.30.2