[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% SET PRIVATE = 1 %] [% SET PUBLIC = 2 %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › [% IF op == 'view' %]Lists › Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list [% shelf.shelfname | html %][% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") | $raw %] [% BLOCK list_permissions %]
  • [% END %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
    [% INCLUDE 'virtualshelves-toolbar.inc' %]
    [% FOR m IN messages %]
    [% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this list. [% CASE 'error_on_insert' %] An error occurred when creating this list. [% CASE 'error_on_delete' %] An error occurred when deleting this list. [% CASE 'error_on_add_biblio' %] [% IF m.item_barcode %] The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list. [% ELSE %] The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list. [% END %] [% CASE 'success_on_update' %] List updated. [% CASE 'success_on_insert' %] List created. [% CASE 'success_on_delete' %] List deleted. [% CASE 'success_on_add_biblio' %] [% IF m.item_barcode %] The item ([% m.item_barcode | html %]) has been added to the list. [% ELSE %] The record ([% m.bibnum | html %]) has been added to the list. [% END %] [% CASE 'success_on_remove_biblios' %] The item has been removed from the list. [% CASE 'does_not_exist' %] This list does not exist. [% CASE 'item_does_not_exist' %] [% IF m.item_barcode %] The item ([% m.item_barcode | html %]) does not exist. [% ELSE %] The record ([% m.bibnum | html %]) does not exist. [% END %] [% CASE 'unauthorized_on_view' %] You do not have permission to view this list. [% CASE 'unauthorized_on_update' %] You do not have permission to update this list. [% CASE 'unauthorized_on_delete' %] You do not have permission to delete this list. [% CASE 'unauthorized_on_add_biblio' %] You do not have permission to add a record to this list. [% CASE 'no_biblio_removed' %] No record was removed. [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %] An error occurred when creating this list. The name [% shelfname | html %] already exists. [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %] List could not be created. (Do not use the database administrator account.) [% CASE 'DBIx::Class::Exception' %] [% m.msg | html %] [% CASE %] [% m.code | html %] [% m.msg | html %] [% END %]
    [% END %] [% IF op == 'view' %]
    [% IF itemsloop %]

    Contents of [% shelf.shelfname | html %]

    [% pagination_bar | $raw %]
    [% IF direction == 'asc' %] [% SET new_direction = 'desc' %] [% ELSE %] [% SET direction = 'desc' %] [% SET new_direction = 'asc' %] [% END %]
    [% IF itemsloop %]
    | |   [% IF CAN_user_reserveforothers && Koha.Preference('DisplayMultiPlaceHold') %]
    [% END %] [% IF can_remove_biblios %]
    [% END %] [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
    [% END %]
    [% END %]
    [% IF ( itemsloop ) %][% END %] [% UNLESS ( item_level_itypes ) %][% END %] [% FOREACH itemsloo IN itemsloop %] [% IF itemsloop %] [% END %] [% UNLESS ( item_level_itypes ) %][% END %] [% END %]
     Item type Title [% IF sortfield == 'title' %] [% direction | html %] sort [% ELSE %] [% END %] Author [% IF sortfield == 'author' %] [% direction | html %] sort [% ELSE %] [% END %] Date added Call number [% IF sortfield == 'itemcallnumber' %] [% direction | html %] sort [% ELSE %] [% END %]
    [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %][% itemsloo.description | html %][% END %][% itemsloo.description | html %] [% IF ( itemsloo.XSLTBloc ) %] [% itemsloo.XSLTBloc | $raw %] [% ELSE %] [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %] [% itemsloo.title | html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield | html %][% END %] [% END %]

    [% IF ( itemsloo.notforloan ) %] No holds allowed [% ELSE %] [% IF ( itemsloo.ITEM_RESULTS.size ) %] Holds [% IF ( holdfor ) %] | Place hold for [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])[% END %] [% ELSE %] No holds allowed [% END %] [% END %] [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] | Edit record [% END %] [% IF ( CAN_user_editcatalogue_edit_items ) %] | Edit items [% END %]

    [% itemsloo.author | html %] [% itemsloo.dateadded | $KohaDates%]
      [% FOREACH result IN itemsloo.ITEM_RESULTS %]
    • [% result.holdingbranch | html %] [% IF ( result.location_intranet ) %] ([% result.location_intranet | html %]) [% END %] [% IF ( result.itemcallnumber ) %] [[% result.itemcallnumber | html %]] [% END %]
    • [% END %]
    [% pagination_bar | $raw %]
    [% END %]
    [% END %] [% IF op == 'add_form' OR op == 'edit_form' %]
    [% IF op == 'add_form' %] Create a new list [% ELSE %] Edit list [% shelf.shelfname | html %] [% END %]
    1. Required
    2. Owner: [% IF op == 'add_form' %] [% loggedinusername | html %]
    3. [% ELSE %] [% IF owner %] [% owner.firstname _ ' ' _ owner.surname | html %] [% ELSE %] [% loggedinusername | html %] [% END %] [% END %]
    4. [% INCLUDE list_permissions %]
    [% IF referer == 'view' %] Cancel [% ELSE %] [% IF category == PUBLIC %] Cancel [% ELSE %] Cancel [% END %] [% END %]
    [% END %] [% IF op == 'list' %]

    Lists

    Type List name Contents Type Owner Sort by Creation date Modification date Actions
    [% END %]
    [% IF ( can_add_biblios ) %]

    Add items

    [% END %]
    [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] [% IF print %] [% END %] [% IF op == 'view' %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %] [% END %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]