Bugzilla – Attachment 18162 Details for
Bug 4173
Statuses not appearing in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.8.x] Bug 4173 - Statuses not appearing in the OPAC Simply revert order of 2 lines in Items.pm. Previous line write to variable used in next line as function argument.
38x-Bug-4173---Statuses-not-appearing-in-the-OPAC-.patch (text/plain), 1.60 KB, created by
Liz Rea
on 2013-05-15 22:57:47 UTC
(
hide
)
Description:
[3.8.x] Bug 4173 - Statuses not appearing in the OPAC Simply revert order of 2 lines in Items.pm. Previous line write to variable used in next line as function argument.
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2013-05-15 22:57:47 UTC
Size:
1.60 KB
patch
obsolete
>From 59bf9483891d1c418471f4afea2b8dc0d3ce51d9 Mon Sep 17 00:00:00 2001 >From: Rafal Kopaczka <rkk0@poczta.onet.pl> >Date: Wed, 15 May 2013 16:19:05 +0200 >Subject: [PATCH] [3.8.x] Bug 4173 - Statuses not appearing in the OPAC Simply > revert order of 2 lines in Items.pm. Previous line write to > variable used in next line as function argument. > >To Test: > >Give an item a special restricted value, define one if you have to in the authorised values. >Observe that, without this patch, statuses are not shown in the OPAC in parentheses. My example was an item that had a restricted value of "Library Staff Only" >It should have been shown under status on the detail page of the OPAC, but was not. > >Apply the patch, observe that restricted values are now shown for your item, for example: >Available (Library Staff Only) in the status column. > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >--- > C4/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 9283b5c..2d2c62c 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1284,8 +1284,8 @@ sub GetItemsInfo { > > # 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}, 1 ); >+ $data->{restricted} = C4::Koha::GetKohaAuthorisedValueLib( $code, $data->{restricted} ); > } > > # my stack procedures >-- >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 4173
:
1884
|
1885
|
1886
|
1887
|
2810
|
2863
|
2864
|
10798
|
11132
|
11133
|
11135
|
12009
|
12010
|
18158
|
18161
|
18162