Bugzilla – Attachment 13123 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]
[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.56 KB, created by
Owen Leonard
on 2012-10-30 19:32:29 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8988: item status uses authorized value description for intranet
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-10-30 19:32:29 UTC
Size:
2.56 KB
patch
obsolete
>From c21f87410d6ea0892b32edf1e076a00de0510683 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Tue, 30 Oct 2012 17:12:33 +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 | 5 +++-- > .../opac-tmpl/prog/en/includes/item-status.inc | 4 ++-- > 2 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index c114e63..18a7cb1 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1277,13 +1277,14 @@ sub GetItemsInfo { > > # get notforloan complete status if applicable > if ( my $code = C4::Koha::GetAuthValCode( 'items.notforloan', $data->{frameworkcode} ) ) { >- $data->{notforloanvalue} = C4::Koha::GetAuthorisedValueByCode( $code, $data->{itemnotforloan} ); >+ $data->{notforloanvalue} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{itemnotforloan} ); >+ $data->{notforloanvalueopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{itemnotforloan}, 1 ); > } > > # get restricted status and description if applicable > if ( my $code = C4::Koha::GetAuthValCode( 'items.restricted', $data->{frameworkcode} ) ) { > $data->{restricted} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted} ); >- $data->{restrictedopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted}, 'opac' ); >+ $data->{restrictedopac} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted}, 1 ); > } > > # my stack procedures >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 51c2e9f..98fdb38 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >@@ -25,8 +25,8 @@ > [% END %] > [% 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