Bugzilla – Attachment 16126 Details for
Bug 8988
item status uses authorized value description for intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.6][SIGNED-OFF] Bug 8988: item status uses authorized value description for intranet
SIGNED-OFF-Bug-8988-item-status-uses-authorized-va.patch (text/plain), 2.03 KB, created by
Owen Leonard
on 2013-03-14 13:40:49 UTC
(
hide
)
Description:
[3.6][SIGNED-OFF] Bug 8988: item status uses authorized value description for intranet
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-03-14 13:40:49 UTC
Size:
2.03 KB
patch
obsolete
>From 847e24173bd36bb42338578e97261b203e27ace7 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 29 Nov 2012 10:46:08 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 8988: item status uses authorized value > description for intranet >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > C4/Items.pm | 6 ++++-- > .../opac-tmpl/prog/en/includes/item-status.inc | 4 ++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 73fafea..026a48c 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1267,8 +1267,10 @@ sub GetItemsInfo { > ); > $sthnflstatus->execute( $authorised_valuecode, > $data->{itemnotforloan} ); >- my ($lib) = $sthnflstatus->fetchrow; >- $data->{notforloanvalue} = $lib; >+ if ( my $nfldata = $sthnflstatus->fetchrow_hashref ) { >+ $data->{notforloanvalue} = $nfldata->{'lib'}; >+ $data->{notforloanvalueopac} = $nfldata->{'lib_opac'}; >+ } > } > > # get restricted status and description if applicable >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >index d05583f..bcc098f 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >@@ -18,8 +18,8 @@ > Item lost > [% END %] > [% ELSIF ( item.itemnotforloan ) %] >- [% IF ( item.notforloanvalue ) %] >- [% item.notforloanvalue %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] >+ [% IF ( item.notforloanvalueopac ) %] >+ [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] > [% ELSE %] > Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] > [% END %] >-- >1.7.9.5
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 8988
:
13120
|
13123
|
13760
|
16126