[%# Page browsedb.html %] [%- IF ajaxRequest -%]

    	[% pageType = 'artwork' %]
    [% IF browseby == 'BROWSE_BY_ARTWORK' && level == 0 %][% pageType = 'artwork' %][% END %]
    	[% PROCESS ajaxRequest.txt page = pageType %]

[% ELSIF artwork == 4 %] [% IF browse_items %]

[% browse_items.1.artist.name %] - [% browse_items.1.itemobj.album.name %]
[% FOREACH item = browse_items %] [% PROCESS browsedbitems_list.html textClass = 'popUpText' playLink = 'ajax' noLink = 1 %] [% END %]

[% END %] [%- ELSE -%] [%- title = BLOCK %] [%- playermodel | string %] : [% browseby | string -%] [%- END -%] [%- browse = '0' playlist = '0' music = '1' -%] [%- IF artwork == 2 -%] [% thispage = 'artwork' %] [%- ELSE -%] [% thispage = 'browse' %] [%- END -%] [%- PROCESS pageheader.html thispage = thispage -%] [% IF warn %]

[% "NOTE" | string %] [% "SCAN_WARNING" | string %] [% IF audiodir %][% "SCAN_CLICK" | string %] [% "HERE" | string %]. [% END %] [% END %] [% PROCESS galleryselect.html %]

[% PROCESS crumblist noHomeLink = 1%]
[%- IF pageinfo.totalpages > 1 && pageinfo.totalalphapages != 1 %] [% IF artwork == 2 %][% PROCESS pagebar artwork = 2 %][% ELSE %][% PROCESS pagebar %][% END %] [%- IF NOT pageinfo.alphamap %] | [% PROCESS pagebarheader %][% END %] [%- END %]

[% IF level == 0 && artwork == 2 %]
[% "SHRINK" | string %] | [% "ENLARGE" | string %]

| [% INCLUDE coverTable cover = 0 %] | [% INCLUDE coverTable cover = 1 %] |

[% ELSE %] [% IF coverArt %] [% "SHRINK" | string %] | [% "ENLARGE" | string %] [% END %] [%- IF artwork == 1 && (levelName == 'album' || levelName == 'age') %] [%- IF browse_items %] [%- FOREACH item = browse_items %] [% IF loop.first && item.text == 'All Songs' %]

[% PROCESS browsedbitems_list.html rowClass = 'even' %]

[% ELSE -%] [% PROCESS browsedb_artwork.html %] [% END -%] [% END -%] [% END -%] [% ELSE -%]

[% IF coverArt %]
[% END %]
| [%- IF browse_items %] [%- FOREACH item = browse_items %] [% PROCESS browsedbitems_list.html %] [% END -%] [%- ELSE -%] [% browse_list -%] [% END -%]

[% END %]

[%- IF pageinfo.totalpages > 1 && pageinfo.totalalphapages != 1 %] [% PROCESS pagebar %] [%- IF NOT pageinfo.alphamap %] | [% PROCESS pagebarheader %][% END %] [%- END %]
[% PROCESS crumblist noHomeLink = 1%]

[% END %] [%# /Page browsedb.html %] [% PROCESS pagefooter.html %] [% END %] [% BLOCK coverTable %] [% IF cover == 0 %][% whichAlbum = 'thisAlbum' %][% ELSE %][% whichAlbum = 'thatAlbum' %][% END %]

[% END %]