@@ -, +, @@ --- C4/XSLT.pm | 7 ++ .../prog/en/xslt/MARC21slim2OPACResults.xsl | 78 +++++++++----------- 2 files changed, 42 insertions(+), 43 deletions(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -184,6 +184,7 @@ sub buildKohaItemsNamespace { my @items = C4::Items::GetItemsInfo($biblionumber); my $branches = GetBranches(); my $itemtypes = GetItemTypes(); + my $not_loan_values = GetKohaAuthorisedValues('items.notforloan', '', 1); my $xml = ''; for my $item (@items) { my $status; @@ -200,6 +201,12 @@ sub buildKohaItemsNamespace { if ( $item->{itemnotforloan} > 0 || $item->{notforloan} > 0 || $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) { $status = "reference"; } + if($item->{itemnotforloan} and defined $not_loan_values->{$item->{itemnotforloan}}){ + $status = $not_loan_values->{$item->{itemnotforloan}}; + } + if($item->{notforloan} and defined $not_loan_values->{$item->{notforloan}}) { + $status = $not_loan_values->{$item->{notforloan}}; + } if ($item->{onloan}) { $status = "Checked out"; } --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -1023,49 +1023,41 @@ - - - Checked out ( - - ). - - - - - Withdrawn ( - - ). - - - - Lost ( - - ). - - - - Damaged ( - - ). - - - - On order ( - - ). - - - - In transit ( - - ). - - - - On hold ( - - ). - + + + + + + Checked out ( + + + Withdrawn ( + + + Lost ( + + + Damaged ( + + + On order ( + + + In transit ( + + + On hold ( + + + + ( + + + + ). + + + --