[% USE Koha %] [% SET PRIVATE = 1 %] [% SET PUBLIC = 2 %] [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %] [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF op == 'view' %]Contents of [% shelf.shelfname %][% ELSE %]Your lists[% END %][% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] [% IF ( loggedinusername ) %][% INCLUDE 'bodytag.inc' bodyid='opac-userlists' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-lists' bodyclass='scrollto' %][% END %] [% BLOCK list_permissions %]
  •  anyone else to add entries.
  •  anyone to remove their own contributed entries.
  •  anyone to remove other contributed entries.
  • [% END %] [% INCLUDE 'masthead.inc' %]
    [% IF ( OpacNav||loggedinusername ) && !print %]
    [% END %] [% IF ( OpacNav||loggedinusername ) %]
    [% ELSE %]
    [% END %]
    [% FOR m IN messages %] [% SWITCH m.type %] [% CASE 'message' %]
    | Select titles to: [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% END %] [% IF ( TagsInputEnabled && loggedinusername ) %] Tag [% END %] [% IF loggedinusername && can_remove_biblios %] [% END %]
    [% IF can_manage_shelf %] [% END %]
    [% FOREACH itemsloo IN itemsloop %] [% UNLESS ( item_level_itypes ) %] [% END %] [% END # / FOREACH itemsloop %]
    [% UNLESS ( noItemTypeImages ) %] [% itemsloo.description %] [% END %] [% itemsloo.description %] [% IF ( itemsloo.XSLTBloc ) %] [% itemsloo.XSLTBloc %] [% ELSE %] [% IF ( itemsloo.BiblioDefaultViewmarc ) %] [% ELSE %] [% IF ( itemsloo.BiblioDefaultViewisbd ) %] [% ELSE %] [% END %] [% END %] [% IF ( itemsloo.title ) %] [% itemsloo.title %] [% ELSE %] No title [% END %] [% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %] [% END %] [% IF ( itemsloo.author ) %] by [% itemsloo.author %] [% ELSE %]   [% END %] Publication: [% IF ( itemsloo.place ) %] [% itemsloo.place %] [% END %] [% IF ( itemsloo.publishercode ) %] [% itemsloo.publishercode %] [% END %] [% IF ( itemsloo.publicationyear ) %] [% itemsloo.publicationyear %] [% ELSE %] [% IF ( itemsloo.copyrightdate ) %] [% itemsloo.copyrightdate %] [% END %] [% END %] [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %] [% IF ( itemsloo.notes ) %], [% itemsloo.notes %][% END %] [% IF ( itemsloo.item('size') ) %] [% itemsloo.item('size') %][% END %] Holdings: [% IF ( itemsloo.ITEM_RESULTS ) %] [% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %] [% ITEM_RESULT.homebranch %] [% IF ( ITEM_RESULT.location_opac ) %] , [% ITEM_RESULT.location_opac %] [% END %] [% IF ( ITEM_RESULT.itemcallnumber ) %] ([% ITEM_RESULT.itemcallnumber %]) [% IF ( loop.last ) %].[% ELSE %],[% END %] [% END %] [% END %] [% ELSE %] This record has no items. [% END %] [% END # / IF itemsloo.XSLTBloc %] [% IF ( TagsShowEnabled && itemsloo.TagLoop.size ) %]
    Tags:
      [% FOREACH TagLoo IN itemsloo.TagLoop %]
    • [% TagLoo.term %] ([% TagLoo.weight_total %])
    • [% END %]
    [% END %] [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% UNLESS ( itemsloo.norequests ) %] [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% IF ( itemsloo.allow_onshelf_holds ) %] Place hold [% ELSE %] [% IF ( itemsloo.itemsissued ) %] Place hold [% END %] [% END %] [% END # / IF opacuserlogin %] [% END # / UNLESS itemsloo.norequests %] [% END # / RequestOnOpac %] [% IF ( TagsInputEnabled ) %] [% IF ( loggedinusername ) %] [% ELSIF ( loop.first ) %] Log in to add tags. [% END # / IF loggedinusername %] [% END # / IF TagsInputEnabled %] [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %] Save to another list [% END %] [% IF can_remove_biblios %] Remove from this list [% END %] [% IF Koha.Preference( 'opacbookbag' ) == 1 %] [% IF ( itemsloo.incart ) %] [% ELSE %] [% END %] [% END # / IF opacbookbag %]
    [% IF ( pagination_bar ) %]
    [% pagination_bar.raw %]
    [% END %] [% ELSE %]
    New list [% IF can_manage_shelf %] |
    [% END %]
    This list is empty. [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] You can add to your lists from the results of any search. [% END %]
    [% END # / IF itemsloop %] [% END %] [% IF itemsloop && can_remove_biblios %] [% ELSIF !itemsloop && can_manage_shelf %]
    [% END %] [% IF op == 'add_form' OR op == 'edit_form' %]
    [% IF op == 'add_form' %]
    Create a new list [% ELSE %] Editing [% shelf.shelfname %] [% END %]
    1. [% IF Koha.Preference('OpacAllowPublicListCreation') OR category == PUBLIC %]
    2. [% IF shelf.category == PUBLIC AND NOT Koha.Preference('OpacAllowPublicListCreation') %] The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again. [% END %]
    3. [% INCLUDE list_permissions %] [% END %]
    [% UNLESS Koha.Preference('OpacAllowPublicListCreation') OR category == PUBLIC %] [% END %]
    [% IF referer == 'view' %] Cancel [% ELSE %] Cancel [% END %]
    [% ELSIF op == 'list' %]

    Lists

    [% IF category == PRIVATE %]
    [% ELSE %]
    [% END %] [% IF loggedinusername %] [% ELSE %] [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
    Log in to create new lists.
    [% END %] [% END %] [% IF shelves.count %] [% FOREACH s IN shelves %] [% SET contents = s.get_contents %] [% END %]
    List name Contents Type  
    [% s.shelfname %] [% IF contents.count %][% contents.count %] [% IF contents.count == 1 %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %] [% IF s.category == PRIVATE %] [% IF s.is_shared %]Shared[% ELSE %]Private[% END %] [% ELSE %] Public [% END %] [% IF s.can_be_managed( loggedinusernumber ) %]
    [% END %] [% IF s.can_be_deleted( loggedinusernumber ) %]
    [% END %] [% IF s.category == PRIVATE AND s.can_be_managed( loggedinusernumber ) AND Koha.Preference('OpacAllowSharingPrivateLists') %] Share [% END %] [% IF s.is_shared_with( loggedinusernumber ) %]
    [% END %] 
    [% pagination_bar %]
    [% ELSE %] [% IF category == PUBLIC %]

    No public lists.

    [% ELSIF loggedinusernumber %]

    No private lists.

    [% END %] [% END %]
    [%# privateshelves or publicshelves %]
    [%#
    %] [% ELSIF NOT loggedinusernumber %] [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
    Log in to create new lists.
    [% END %] [% END # IF loggedinusername %]
    [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% END %]