]> git.koha-community.org Git - koha.git/commit
Bug 21877: Show authorized value description for withdrawn in checkout
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Jan 2019 08:47:22 +0000 (09:47 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 11:23:14 +0000 (11:23 +0000)
commitcfd59672bb09c4766632de4c6f11cf9cf4bea3f9
treeeb501c05d960b9fd28ed3ed014744326213529c1
parent258c538e76914e6c2023242b555bb38c6f1970b9
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>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt