Bugzilla – Attachment 83400 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: [ALTERNATIVE-PATCH] Display authorized value description for withdrawn in checkout
Bug-21877-Display-authorized-value-description-for.patch (text/plain), 2.58 KB, created by
Jonathan Druart
on 2018-12-19 18:31:54 UTC
(
hide
)
Description:
Bug 21877: [ALTERNATIVE-PATCH] Display authorized value description for withdrawn in checkout
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-19 18:31:54 UTC
Size:
2.58 KB
patch
obsolete
>From b6f79d5a697f6a2dc935c1a911e578d446664e54 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 19 Dec 2018 15:30:58 -0300 >Subject: [PATCH] Bug 21877: Display authorized value description for withdrawn > in checkout > >--- > circ/circulation.pl | 6 ------ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 ++++++-- > 2 files changed, 6 insertions(+), 8 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 98b011bd11..a35741a7bf 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -350,12 +350,6 @@ if (@$barcodes) { > my $item = Koha::Items->find({ barcode => $barcode }); > my ( $biblio, $mss ); > >- if ( $item ) { >- $biblio = $item->biblio; >- my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $biblio->frameworkcode, kohafield => 'items.notforloan', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] }); >- $template_params->{authvalcode_notforloan} = $mss->count ? $mss->next->authorised_value : undef; >- } >- > # Fix for bug 7494: optional checkout-time fallback search for a book > > if ( $error->{'UNKNOWN_BARCODE'} >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 6700b0e581..951ec90070 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -341,14 +341,18 @@ > [% IF ( itemtype_notforloan ) %] > Item type not for loan. > [% ELSIF ( item_notforloan ) %] >- [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] >+ [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] > Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. > [% END %] > </li> > [% 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