Hi Giuseppe,

I notice the same, when item has authorized value different from 0 on
subfield $4 (DAMAGE category), opac details doesn't say "Available", only
"Item damaged", even you still can check it out.
This is probably a bug.

I found (for English) on  /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap
*/en/*includes/item-status.inc,

on line 2:
* [% SET itemavailable = 1 %]*

on line 70:
[% IF ( item.damaged ) %]
* [% SET itemavailable = 0 %]*
[% av_lib_include = AuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1
) %]
[% IF av_lib_include %]
<span class="item-status damaged">[% av_lib_include %]</span>
[% ELSE %]
<span class="item-status damaged">Item damaged</span>
[% END %]
[% END %]

on line 85:
* [% IF ( itemavailable ) %]*
* <span class="item-status available">Available [% IF ( item.restrictedopac
) %]<span class="restricted">([% item.restrictedopac %])</span>[% END
%]</span>*
* [% END %]*

so just change (for each lang code) on line 71 the "0" to "1" (or remove
it), to tell Koha that damaged does not imply unavailable.

Maybe Koha should let you define exactly which situations imply item is
unavailable/not_for_loan.

Regards,
Pablo

> More precisely: when a record only contains a damaged item, the OPAC says
>
> "Availability: No items available Damaged (1)."
>
> as a result of a search, which is misleading for the user, since it is
> still possible to check that item out.
>
> Thanks for your comments.
>
> Regards,
>
> Giuseppe.
>
> On Sun, 1 Feb 2015, Giuseppe Angilella wrote:
>
>> Hi,
>>
>> would it be possible to record the damaged status of an item (say, Cover
>> missing) with a nonzero value of the 952$4 MARC subfield, and make the
item
>> still available for loan?
>>
>> Thanks,
>>
>> Giuseppe.
_______________________________________________
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to