[% 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") %] [% 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 %]) has not been added to the list. Please verify it is not already in the list. [% ELSE %] The record ([% m.bibnum %]) 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 %]) has been added to the list. [% ELSE %] The record ([% m.bibnum %]) 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 %]) does not exist. [% ELSE %] The record ([% m.bibnum %]) 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 %] 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 %] [% CASE %] [% m.code %] [% m.msg %] [% END %]
    [% END %] [% IF op == 'view' %]
    [% IF itemsloop %]

    Contents of [% shelf.shelfname | html %]

    [% pagination_bar %]
    [% 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 %] sort [% ELSE %] [% END %] Author [% IF sortfield == 'author' %] [% direction %] sort [% ELSE %] [% END %] Date added Call number [% IF sortfield == 'itemcallnumber' %] [% direction %] sort [% ELSE %] [% END %]
    [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %][% itemsloo.description %][% END %][% itemsloo.description %] [% IF ( itemsloo.XSLTBloc ) %] [% itemsloo.XSLTBloc %] [% ELSE %] [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %] [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %] [% END %]

    [% IF ( itemsloo.notforloan ) %] No holds allowed [% ELSE %] [% IF ( itemsloo.ITEM_RESULTS.size ) %] Holds [% IF ( holdfor ) %] | Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])[% 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 %] [% itemsloo.dateadded | $KohaDates%]
      [% FOREACH result IN itemsloo.ITEM_RESULTS %]
    • [% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %] [% IF ( result.itemcallnumber ) %] [[% result.itemcallnumber %]] [% END %]
    • [% END %]
    [% pagination_bar %]
    [% 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 %]
    3. [% ELSE %] [% IF owner %] [% owner.firstname _ ' ' _ owner.surname %] [% ELSE %] [% loggedinusername %] [% 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") %] [% IF print %] [% END %] [% IF op == 'view' %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %] [% END %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]