Bugzilla – Attachment 84448 Details for
Bug 21877
Show authorized value description for withdrawn in checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21877: Show authorized value description for withdrawn in checkout
Bug-21877-Show-authorized-value-description-for-wi.patch (text/plain), 2.16 KB, created by
Katrin Fischer
on 2019-01-26 13:31:40 UTC
(
hide
)
Description:
Bug 21877: Show authorized value description for withdrawn in checkout
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-01-26 13:31:40 UTC
Size:
2.16 KB
patch
obsolete
>From 91d48ad492531ce77a9905e333a5316d3f328db3 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 22 Jan 2019 09:47:22 +0100 >Subject: [PATCH] Bug 21877: Show authorized value description for withdrawn in > checkout > >During checkout the withdrawn information is displayed in a message : >"Item has been withdrawn". > >Like in other pages and like notforloan, we should display the withdrawn authorized value description. > >This patch adds this display. >Add <span> so that translation does not change. >Also adds class 'co-withdrawn' (like in checkin 'ci-*' classes) to ease hidding this new information via CSS. > >Test plan : >1) On a catalog with items.withdrawn defined with authorized values category WITHDRAWN >2) Define in WITHDRAWN an authorized values 1 with description 'dropped in trash' >3) Define in WITHDRAWN an authorized values 2 with description empty >4) Edit an item with withdrawn=1 >5) Checkout this item => You see 'Item has been withdrawn (dropped in trash)' >6) Edit an item with withdrawn=2 >7) Checkout this item => You see 'Item has been withdrawn' > >Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 3c5a777dc9..c71f127881 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -348,7 +348,11 @@ > [% END %] > > [% IF ( WTHDRAWN ) %] >- <li>Item has been withdrawn</li> >+ <li> >+ <span>Item has been withdrawn</span> >+ [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] >+ [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %] >+ </li> > [% END %] > > [% IF ( RESTRICTED ) %] >-- >2.11.0
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 21877
:
82616
|
82624
|
83400
|
84273
|
84274
|
84436
|
84437
| 84448 |
84449
|
121747