Bugzilla – Attachment 93202 Details for
Bug 23602
Library limitations should display in the item types table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23602: (follow-up) Improve tooltip formatting
Bug-23602-follow-up-Improve-tooltip-formatting.patch (text/plain), 1.88 KB, created by
Martin Renvoize (ashimema)
on 2019-09-27 12:16:35 UTC
(
hide
)
Description:
Bug 23602: (follow-up) Improve tooltip formatting
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-09-27 12:16:35 UTC
Size:
1.88 KB
patch
obsolete
>From 37bf000ce4a8001719654c38d6938b2521897989 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 27 Sep 2019 13:13:05 +0100 >Subject: [PATCH] Bug 23602: (follow-up) Improve tooltip formatting > >This follow-up changes the formatting of the tooltip to add a newline for >library limit. > >To test, apply the patch and go to Administration -> Item types. > >In the table of item types, find one with library limitations. Hovering >over the "# library limitations" test should trigger a Bootstrap-styled >tooltip showing the library name and code, one per line. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index a1b4f1ff8b..666701f312 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -416,7 +416,11 @@ Item types administration > [% IF itemtype.branches.size > 0 %] > [% branches_str = "" %] > [% FOREACH branch IN itemtype.branches %] >- [% branches_str = branches_str _ " " _ branch.branchname _ " (" _ branch.branchcode _ ")" %] >+ [%- IF loop.first -%] >+ [% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %] >+ [% ELSE %] >+ [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %] >+ [% END %] > [% END %] > <span class="library_limitation" title="[% branches_str | html %]"> > [% IF itemtype.branches.size > 1 %] >-- >2.20.1
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 23602
:
92800
|
92815
|
92816
|
93044
|
93046
|
93200
|
93201
|
93202
|
93205