[% BLOCK options_for_libraries %] [% FOREACH l IN libraries %] [% IF l.selected %] [% ELSE %] [% END%] [% END %] [% END %] [% BLOCK options_for_desks %] [% FOREACH d IN desks %] [% IF d.branchcode == branch %] [% IF selected == d.desk_id || ( selected == '' && loop.first ) %] [% ELSE %] [% END %] [% ELSE %] [% END %] [% END %] [% END %] [% BLOCK options_for_registers %] [% FOREACH r IN registers %] [% IF r.branch == Branches.GetLoggedInBranchcode %] [% IF r.selected %] [% ELSE %] [% END%] [% ELSE %] [% END %] [% END %] [% END %] [% BLOCK options_for_authorised_value_categories %] [% FOREACH avc IN authorised_value_categories %] [% IF avc.selected %] [% ELSE %] [% END %] [% END %] [% END %] [% BLOCK options_for_authorised_values %] [% FOREACH av IN authorised_values %] [% IF av.authorised_value == selected_av %] [% ELSE %] [% END %] [% END %] [% END %] [% BLOCK options_for_item_types %] [% FOREACH itemtype IN itemtypes %] [% IF itemtype.itemtype == selected_itemtype %] [% END %] [% END %] [% BLOCK biblio_a_href -%] [%- IF Koha.Preference('IntranetBiblioDefaultView') == 'marc' && Koha.Preference('viewMARC') -%] [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=" -%] [%- ELSIF Koha.Preference('IntranetBiblioDefaultView') == 'labeled_marc' && Koha.Preference('viewLabeledMARC') -%] [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=" -%] [%- ELSIF Koha.Preference('IntranetBiblioDefaultView') == 'isbd' && Koha.Preference('viewISBD') -%] [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=" -%] [%- ELSE -%] [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=" -%] [%- END -%] [%- this_biblio_href | url %][% biblionumber | url -%] [%- END %] [% BLOCK subfields_for_item %]
Show/hide columns: [% FOREACH header IN item_header_loop %] [% END %]
[% IF checkboxes_edit OR checkboxes_delete %] | [% END %] | Title | Holds | [% FOREACH item_header IN headers %] [% IF item_header.column_name %][% ELSE %] | [% END %] [% item_header.header_value | html %] | [% END %]||||
---|---|---|---|---|---|---|---|---|---|
[% item.index + 1 | html %] | [% IF checkboxes_edit %] [% UNLESS can_be_edited%][% ELSE %] | [% END %] [% ELSIF checkboxes_delete %] [% UNLESS can_be_edited %] | [% ELSE %] [% IF item.safe_to_delete %] | [% ELSE %] [% SET messages = item.safe_to_delete.messages %] [% FOR m IN messages %] [% SWITCH m.message %] [% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %] [% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %] [% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %] [% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %] [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %] [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ m.message _ ')' %] [% END %] [% END %] | [% END %] [% END %] [% END %] | [% IF item.holds %] [% IF item.item_holds %] [% ELSE %] [% END %] [% ELSE %] [% IF item.holds %] [% ELSE %] [% END %] [% END # /IF item.holds %] [% IF item.holds %] [% item.item_holds | html %]/[% item.holds | html %] [% ELSE %] [% item.holds | html %] [% END %] | [% FOREACH header IN headers %] [% SET attribute = header.attribute %] [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %][% item.$attribute | $KohaDates %] | [% ELSE %][% item.$attribute | html %] | [% END %] [% END %]