Bugzilla – Attachment 15528 Details for
Bug 9650
Show message if there are no notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9650 - Show message if there are no notices
Bug-9650---Show-message-if-there-are-no-notices.patch (text/plain), 2.06 KB, created by
Jonathan Druart
on 2013-02-19 09:31:40 UTC
(
hide
)
Description:
Bug 9650 - Show message if there are no notices
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-19 09:31:40 UTC
Size:
2.06 KB
patch
obsolete
>From 4f217ca154e3e5aac60dee976dc03eccd323e925 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Sat, 16 Feb 2013 19:11:52 -0500 >Subject: [PATCH] Bug 9650 - Show message if there are no notices > >When there are no notices for the selected library, the >interface displays a table header with an empty table. > >This patch adds a message which appears when there are no >notices for the selected library, or if no library selected >and there are no notices at all. > >To test, visit the notices and slips page and >select a library for which there are no notices. A message >should be displayed, "There are no notices for this library." > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Work as described. No errors. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 11 +++++++++++ > tools/letter.pl | 1 + > 2 files changed, 12 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index e095bdc..c6150bb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -166,6 +166,8 @@ $(document).ready(function() { > </select> > [% END %] > [% END %] >+ >+[% IF ( letter ) %] > <table id="lettert"> > <thead><tr> > <th>Library</th> >@@ -218,6 +220,15 @@ $(document).ready(function() { > [% END %] > </tbody> > </table> >+[% ELSE %] >+ <div class="dialog message"> >+ [% IF ( branchcode ) %] >+ <p>There are no notices for this library.</p> >+ [% ELSE %] >+ <p>There are no notices.</p> >+ [% END %] >+ </div> >+[% END %] > [% END %] > > >diff --git a/tools/letter.pl b/tools/letter.pl >index 317ea83..a462aba 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -115,6 +115,7 @@ $template->param( > independant_branch => $my_branch, > script_name => $script_name, > searchfield => $searchfield, >+ branchcode => $branchcode, > action => $script_name > ); > >-- >1.7.10.4
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 9650
:
15434
|
15467
|
15528
|
15529