Bugzilla – Attachment 82648 Details for
Bug 21883
Show authorized value description for withdrawn in check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21883: Show authorized value description for withdrawn in check-in
Bug-21883-Show-authorized-value-description-for-wi.patch (text/plain), 2.89 KB, created by
Fridolin Somers
on 2018-11-26 14:40:32 UTC
(
hide
)
Description:
Bug 21883: Show authorized value description for withdrawn in check-in
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2018-11-26 14:40:32 UTC
Size:
2.89 KB
patch
obsolete
>From c22f2169666eb176cdc39f8445f94478bfedc293 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 26 Nov 2018 15:37:02 +0100 >Subject: [PATCH] Bug 21883: Show authorized value description for withdrawn in > check-in > >During check-in (circ/returns.pl) the withdrawn information may be displayed in a message : >"Item is withdrawn". > >Like Bug 21877 we should display the withdrawn authorized value description during check-in. > >This patch adds this display. >Add <span> for easier translation. >Also adds class 'ci-withdrawn' 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) Check-out an item >5) Edit this item with withdrawn=1 >6) Check-in this item => You see 'Item is withdrawn (dropped in trash)' >7) Edit this item with withdrawn=2 >8) Check-in this item => You see 'Item is withdrawn' >--- > circ/returns.pl | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 +++++- > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 63cf75b10b..509053bd6e 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -292,6 +292,7 @@ if ($barcode) { > biblionumber => $biblio->biblionumber, > additional_materials => $materials, > issue => $checkout, >+ item_withdrawn => $item->withdrawn, > ); > } # FIXME else we should not call AddReturn but set BadBarcode directly instead > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index dec258ba17..d0ca67b796 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -565,7 +565,11 @@ > <h5>Cannot check in</h5> > <p><strong>NOT CHECKED IN</strong></p> > [% END %] >- <p class="problem">Item is withdrawn.</p> >+ <p class="problem"> >+ <span>Item is withdrawn</span> >+ [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item_withdrawn ) %] >+ [% IF (item_withdrawn_lib) %]<span class="ci-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %] >+ </p> > [% END %] > [% IF ( errmsgloo.debarred ) %] > <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p> >-- >2.17.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 21883
:
82648
|
82810
|
111037
|
111038
|
117719
|
117720
|
117913
|
117914
|
119794
|
119795