From 5c95148bb1852d4b26e64368b6d1013b60a5cf18 Mon Sep 17 00:00:00 2001 From: Rafal Kopaczka Date: Wed, 15 May 2013 16:19:05 +0200 Subject: [PATCH 1/2] Bug 10266 - 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 Signed-off-by: Katrin Fischer Passes all tests and test plan. Simple change fixing a display problem, no string changes. Signed-off-by: Jared Camins-Esakov --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 9283b5c63e..2d2c62ce94 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 From 3898e70fe55b9e56a474220223adcf205a12add1 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Fri, 17 May 2013 07:53:53 -0400 Subject: [PATCH 2/2] Add Rafal Kopaczka to the history Welcome, Rafal! You are the 211th developer with a patch in Koha. --- docs/history.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/history.txt b/docs/history.txt index abb3ce0aa6..ec6c556acf 100644 --- a/docs/history.txt +++ b/docs/history.txt @@ -665,3 +665,4 @@ March 30 2013 Aaron Wells becomes the 207th developer to have a patch pushed April 21 2013 Barry Cannon becomes the 208th developer to have a patch pushed April 27 2013 Stefano Bargioni becomes the 209th developer to have a patch pushed May 1 2013 Edmund Balnaves becomes the 210th developer to have a patch pushed +May 17 2013 Rafal Kopaczka becomes the 211th developer to have a patch pushed