[% extJsScripts = BLOCK %]
[% END %] [% pagetitle = 'ADVANCEDSEARCH' | string %] [% pageicon = icons.SEARCHMUSIC %] [% pwd_list = BLOCK %] [% "ADVANCEDSEARCH" | string %] [% END %] [% IF NOT ajaxUpdate; PROCESS pageheader.html; END %] [% FILTER null %] [% MACRO containsBlock BLOCK %]
[% END %] [% MACRO logicalSelectionBlock BLOCK %]
[% END %] [% size = maxInputSize ? maxInputSize : 35 %] [% MACRO timeSelectionBlock BLOCK %]
[% END %] [% BLOCK field %]
[% title | string %] [% content %]
[% END %] [% END %]

[% IF searches.size %]
| [% IF savedSearch %][% END %]
[% END %] [% WRAPPER field title='TITLE' %] [% containsBlock(name='search.me_titlesearch.op') %] [% END %]
[% "ARTIST" | string %] | [% containsBlock(name='search.contributor_namesearch.op') %] [% FOREACH role = roles.keys.sort %] [% IF loop.count % 2 > 0 %]
[% END %] [% roles.$role | string %] [% IF loop.last OR loop.count+1 % 2 == 0 %]
[% END %] [% END %]
[% WRAPPER field title='ALBUM' %] [% containsBlock(name='search.album_titlesearch.op') %] [% END %] [% WRAPPER field title='SUBTITLE' %] [% containsBlock(name='search.me_subtitle.op') %] [% END %] [% WRAPPER field title='DISCSUBTITLE' %] [% containsBlock(name='search.me_discsubtitle.op') %] [% END %] [% WRAPPER field title='WORK' %] [% containsBlock(name='search.work_titlesearch.op') %] [% END %] [% WRAPPER field title='RELEASE_TYPE' %] [% containsBlock(name='search.album_release_type.op') %] [% END %] [% WRAPPER field title='GENRE' %]
[% END %] [% WRAPPER field title='LENGTH' %] [% logicalSelectionBlock(name='search.secs.op', withRange=1) %] [% END %] [% WRAPPER field title='TRACK' %] [% logicalSelectionBlock(name='search.tracknum.op') %] [% END %] [% WRAPPER field title='YEAR' %] [% timeSelectionBlock(name='search.year.op', withRange=1) %] [% END %] [% IF statistics; WRAPPER field title='PLAYCOUNT' %] [% logicalSelectionBlock(name='search.persistent_playcount.op', withRange=1) %] [% END; END %] [% IF statistics; WRAPPER field title='RATING' %] [% logicalSelectionBlock(name='search.persistent_rating.op', withRange=1) %] [% END; END %] [% WRAPPER field title='MODTIME' %] [% timeSelectionBlock(name='search.timestamp.op') %] [% END %] [% WRAPPER field title='BITRATE' %] [% logicalSelectionBlock(name='search.bitrate.op') %]
[% END %] [% IF samplerates.size; WRAPPER field title='SAMPLERATE' %] [% logicalSelectionBlock(name='search.samplerate.op') %]
[% END; END %] [% IF samplesizes.size; WRAPPER field title='SAMPLESIZE' %] [% logicalSelectionBlock(name='search.samplesize.op') %]
[% END; END %] [% IF fileTypes %] [% WRAPPER field title='TYPE' %]
[% END %] [% END %] [% WRAPPER field title='PATH' %] [% containsBlock(name='search.url.op') %] [% END %] [% WRAPPER field title='FILELENGTH' %] [% logicalSelectionBlock(name='search.filesize.op', withRange=1) %] [% END %] [% WRAPPER field title='COMMENT' %] [% containsBlock(name='search.comments_value.op') %] [% END %] [% WRAPPER field title='LYRICS' %] [% containsBlock(name='search.lyrics.op') %] [% END %] [% IF browse_items.size %]
[% "SAVE_AS" | string %] |
[% END %]

[% IF searchError %] [% searchError %] [% END %] [% IF pageinfo.totalpages && pageinfo.totalpages > 1 %][% PROCESS pagebar %][% END %]
[% BLOCK albumBrowsecontrols %] [%- header='1' width=cmdLinkIconSize height=cmdLinkIconSize -%] [% PROCESS favoritescontrol %] [% WRAPPER playlink %][% PROCESS cmdHRef cmdType='play' %][% END %] [% IF allLinks; WRAPPER insertlink %][% PROCESS cmdHRef cmdType='insert' %][% END; END %] [% WRAPPER addlink %][% PROCESS cmdHRef cmdType='add' %][% END %] [% IF allLinks; WRAPPER removelink %][% PROCESS cmdHRef cmdType='remove' %][% END; END %] [% WRAPPER morelink %]href="[% webroot %]clixmlbrowser/clicmd=albuminfo+items&album_id=[% item.itemobj.id %]&linktitle=[% stringINFO %]%20([% item.albumTitle | html %])/?player=[% playerURI %]" target="browser"[% END %] [%- END %] [% BLOCK workBrowsecontrols %] [%- header='1' width=cmdLinkIconSize height=cmdLinkIconSize -%] [% PROCESS favoritescontrol %] [% WRAPPER playlink %][% PROCESS cmdHRef cmdType='play' %][% END %] [% IF allLinks; WRAPPER insertlink %][% PROCESS cmdHRef cmdType='insert' %][% END; END %] [% WRAPPER addlink %][% PROCESS cmdHRef cmdType='add' %][% END %] [% IF allLinks; WRAPPER removelink %][% PROCESS cmdHRef cmdType='remove' %][% END; END %] [%- END %] [% IF browse_items.size %]
[% IF searchType == 'Album'; itemInfoTemplate = 'albuminfo'; leftControls = 'albumBrowsecontrols'; ELSIF searchType == 'Work'; itemInfoTemplate = 'workinfo'; leftControls = 'workBrowsecontrols'; ELSE; itemInfoTemplate = 'trackinfo'; leftControls = 'browsecontrols'; END %] [% FOREACH item = browse_items %] [% PROCESS browsedbitems_list.html %] [% END %]
[% ELSIF search %] [% "NO_SEARCH_RESULTS" | string %] [% END %] [%- IF pageinfo.totalitems && useExtJS; infoTab = BLOCK -%]
[% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %]
[%- END %] [% ELSIF pageinfo.totalpages && pageinfo.totalpages > 1; PROCESS pagebar; END %] [% IF not ajaxUpdate; PROCESS pagefooter.html; END %]