<!-- >>> fubagTools.html_content.search <<<
//***********************************************************************
//
// This file is part of the "fubagToolbox" System
// Author: Marko Seidel, Klaus Wendel
// Copyright (C) 2021, archium GmbH
//
//***********************************************************************
-->
		<div id="dialog_search" class="easyui-dialog" style="height:auto;display:none;height:650px" data-options="
			 resizable:true
			,modal:true
			,minheight:'600'
			,maxheight:'650'
			,minWidth:'550'
			,maxWidth:'550'
			,minimizable:false
			,maximizable:false
			,collapsible:false
			,cache:false
			,draggable:true
			,openAnimation:'fade'
			,closeAnimation:'fade'
			,title:''">
			<div class="easyui-tabs" id="searches" data-options="tabPosition:'top',fit:true" style="">
				<div class='' id='tab_1' title='Advanced' style="height:100%;">
					<table cellpadding="2" style="width:100%;margin-top:5px;margin-bottom:3px;">	
						<tbody>
							<tr>
								<td text="L_search_title" style="width:30%;text-align:right;margin-top:10px;">Title:</td>
								<td style="margin-top:10px;">
									<input class="easyui-textbox" id="search_title" field="title" prompt="Title" iconWidth="28" style="width:95%;" >
								</td>
							</tr>
							<tr>
								<td text="L_search_author" style="width:30%;text-align:right;">Author:</td>
								<td>
									<input class="easyui-textbox" id="search_authorName" field="authorName" prompt="Author" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_description" style="width:30%;text-align:right;">Description:</td>
								<td>
									<input class="easyui-textbox" id="search_dsDescriptionValue" field="dsDescriptionValue" prompt="Description" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_subject" style="width:30%;text-align:right;vertical-align:top;padding-top:10px;">Subject:</td>
								<td>
									<div class = "easyui-panel" style="width:95%;height:130px" data-options=" 
										title:''">							
										<SELECT class="headitem-value easyui-datalist" id="search_subject" field="subject" style="width:100%;" data-options="
											 border:false
											,required:false
											,checkbox:true
											,singleSelect:false
											,onLoadSuccess:function(d){}
											,onCheck:function(i,row,s=true){var val = 0;var c = $('#search_subject');var e = ($(c).attr('disabled'))?false:true;console.log('val', e);if (!e){app.message({type:'alert', title:'ERROR postJSON in [Check(true)]', msg:'Änderungen <B>nicht gespeichert</B>, da Bearbeitung <B>nicht erlaubt</B> ist.<BR><BR> >>> Konfiguration der Liste!'});return false;}else{var rows = $(c).datalist('getRows');$.each(rows,function(_i,_row){if (_i==i){_row.selected=s;}switch (_row.selected){case true:{val|=_row.id;}}});}$(c).data('val',val);}
											,onUncheck:function(i,row,s=false){var val = 0;var c = $('#search_subject');var e = ($(c).attr('disabled'))?false:true;console.log('val', e);if (!e){app.message({type:'alert', title:'ERROR postJSON in [Check(false)]', msg:'Änderungen <B>nicht gespeichert</B>, da Bearbeitung <B>nicht erlaubt</B> ist.<BR><BR> >>> Konfiguration der Liste!'});return false;}else{var rows = $(c).datalist('getRows');$.each(rows,function(_i,_row){if (_i==i){_row.selected=s;}switch (_row.selected){case true:{val|=_row.id;}}});}$(c).data('val',val);}
											%subject%">
										</SELECT>
									</div>
								</td>	  
							</tr>
							<tr>
								<td text="L_search_keyword" style="width:30%;text-align:right;">Keyword:</td>
								<td>
									<input class="easyui-textbox" id="search_keywordValue" field="keywordValue" prompt="Keyword" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_topicclassvalue" style="width:30%;text-align:right;">Topic classification:</td>
								<td>
									<input class="easyui-textbox" id="search_topicclassvalue" field="topicClassValue" prompt="Topic classification" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_kindofdata" style="width:30%;text-align:right;">Kind of data:</td>
								<td>
									<input class="easyui-textbox" id="search_kindOfData" field="kindOfData" prompt="Kind of data" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_publication" style="width:30%;text-align:right;">Publication:</td>
								<td>
									<input class="easyui-textbox" id="search_dsPublicationDate" field="dsPublicationDate" prompt="Publication" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr>
								<td text="L_search_datasetPersistentId" style="width:30%;text-align:right;">Dataset Persistent-Id:</td>
								<td>
									<input class="easyui-textbox" id="search_dsPersistentId" field="dsPersistentId" prompt="Dataset Persistent-Id" iconWidth="28" style="width:95%;">
								</td>
							</tr>
							<tr class="dialog-line">
								<td class="dialog-line" style="width:30%;text-align:left;font-size:0.8em;">File:</td>
								<td style="border:none;">&nbsp;</td>
							</tr>
							<tr>
								<td text="L_search_filedescription" style="width:30%;text-align:right;">Description:</td>
								<td>
									<input class="easyui-textbox" id="search_fileDescription" field="fileDescription" prompt="Description" iconWidth="28" style="width:95%;">
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<!-- <div class='' id='tab_2' title='Generally' style="height:100%;display:none;"></div> -->
			</div>
			<div id="archium_search_footer" class="panel-footer" style="margin-left:1px;margin-right:1px;padding:2px; font-size:75%; text-align:right;">
				<div id="archium_search_btns" style="text-align:center;">
					<table cell-padding="2" style="width:100%;padding:5px 8px 2px 8px;">	
						<tbody>
							<tr>
								<td align="right" style="">
									<a text="AC_load" id="btn_load_frm" class="easyui-linkbutton" href="#" style="min-width:65px;" %mousedown% disabled>Load</a>
									<a text="AC_save" id="btn_save_frm" class="easyui-linkbutton" href="#" style="min-width:65px;width:49%;" %mousedown% disabled>Save</a>
								</td>
								<td align="center" style="width:5%;">
									<span class="app-tb-btn-sep"></span>
								</td>
								<td align="right" style="width:50%;">
									<a text="AC_search" id="btn_search_frm" class="easyui-linkbutton" href="#" style="min-width:130px;width:100%;" %mousedown% onclick="app.module[app.active_module].gosearch(this, $('#dialog_search'))" >Go search</a>
								</td>
								<td align="left" style="width:15%;">
									<a href="#" class="easyui-linkbutton" style="min-width:80px;width:100%;" onclick="$('#dialog_search').dialog('close')" %mousedown%>Cancel</a>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div id="archium_search_copyright" style="padding-top:5px;font-size:80%;text-align:center;">Copyright &copy; 2021 <a href="http://www.archium.org" target="_blank">archium GmbH</a></div>
			</div>
		</div>
