Bugzilla – Attachment 146600 Details for
Bug 32164
Add link to MARC modification templates from batch record modification page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32164: Add link to MARC modification templates from batch record modification page
Bug-32164-Add-link-to-MARC-modification-templates-.patch (text/plain), 3.50 KB, created by
Owen Leonard
on 2023-02-13 19:48:28 UTC
(
hide
)
Description:
Bug 32164: Add link to MARC modification templates from batch record modification page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-02-13 19:48:28 UTC
Size:
3.50 KB
patch
obsolete
>From 42af52c9bb347d5bbbb324628182efbf075676ac Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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' %] >- <div class="dialog alert"> >- No MARC modification template is defined. You have <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">to create</a> at least one template for using this tool. >+ <div class="dialog message"> >+ <p>No MARC modification template is defined. You have to create at least one template in order to use this tool.</p> >+ <a class="btn btn-default" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-plus"></i> Create a new MARC modification template</a> > </div> > [% 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 %] > <h1>MARC modification templates</h1> >- <div class="dialog message"><p>There are no defined templates. Please create a template first.</p></div> >+ <div class="dialog message"> >+ <p>There are no defined templates. Please create a template first.</p> >+ <a href="#" data-toggle="modal" data-target="#createTemplate" class="btn btn-default"><i class="fa fa-plus"></i> Create a new template</a> >+ </div> > [% END # /IF TemplatesLoop %] > > <!-- Modal to create new template --> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32164
:
146600
|
146640
|
146979
|
148653