Bugzilla – Attachment 13120 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]
Proposed patch
0001-Bug-8988-item-status-uses-authorized-value-descripti.patch (text/plain), 2.46 KB, created by
Fridolin Somers
on 2012-10-30 16:14:44 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2012-10-30 16:14:44 UTC
Size:
2.46 KB
patch
obsolete
>From 3812dcbeec3240804318eaefc997429bd89a75d0 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] Bug 8988: item status uses authorized value description for > intranet > >--- > 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