Changeset 1030
- Timestamp:
- 01/02/11 21:45:01 (13 years ago)
- Location:
- MDService2/trunk/MDService2/WebContent
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/WebContent/index.jsp
r980 r1030 97 97 98 98 <div class="cmds-ui-block"> 99 <div class="header">Profiles/Components</div>99 <div class="header">Profiles/Components</div> 100 100 <div id="compreg" class="content"> 101 101 <div id="profiles" > … … 110 110 <div id="search"> 111 111 <!-- <label id="toggle_inputmode_cmd" >TEXT</label> --> 112 <div id="query-input"class="cmds-ui-block init-show" >112 <div class="cmds-ui-block init-show" > 113 113 <!-- <div class="ui-widget-header ui-state-default ui-corner-top" >Query</div> 114 114 <div class="ui-widget-content ui-corner-bottom"> --> 115 115 <div class="header" >Query</div> 116 <div class="content">116 <div id="query-input" class="content"> 117 117 <s:form action="searchretrieve"> 118 118 <!-- <label id="toggle_inputmode_cmd" value="TEXT" />--> -
MDService2/trunk/MDService2/WebContent/scripts/mdservice2_ui.js
r1029 r1030 81 81 params = getUrlVars(); 82 82 createSearchClauses(); 83 84 createInfos(); 85 } 86 87 function createInfos(){ 88 var info = "<span class='cmd cmd-info'></span>"; 89 $('.cmds-ui-block').children('.header').append(info); 90 91 $('.cmds-ui-block').children('.header').children('.cmd-info').click(function(){ 92 var a = $(this).parent().next().attr('id'); 93 var uri = window.location.pathname + "static/info.xml"; 94 $.get(uri,{"id":a}, showDetail,'html'); 95 return false; 96 }); 83 97 } 84 98 … … 136 150 } 137 151 138 function showDetail( data, textStatus) {152 function showDetail(_data, textStatus, xmlhttpreq) { 139 153 try { 154 var data = _data; 155 var blankdata = "<html><\html>"; 156 157 var isinfo = xmlhttpreq.responseXML.baseURI.split("/static/info.xml?id="); 158 if ( isinfo.length = 2){ 159 var infoid = new RegExp('[\\?]id=([^&#]*)').exec(xmlhttpreq.responseXML.baseURI); 160 infoid = infoid[1] || 0; 161 infoid = infoid + "-info"; 162 data = $(_data).find('#' + infoid); 163 } 164 140 165 141 166 if (data == null){ 142 var blankdata = "<html><\html>";143 167 var title = ""; 144 168 $('#detail-float').html(blankdata); … … 982 1006 $('#input-simplequery').attr("value",query.squery); 983 1007 984 $('#query-input .content').show();1008 $('#query-input').show(); 985 1009 986 1010 hideWelcomeMessage(); -
MDService2/trunk/MDService2/WebContent/static/info.xml
r1028 r1030 28 28 29 29 </div> 30 <div id=" public-space-info">30 <div id="serverqs-info"> 31 31 <p>Public space - sample queries, select target repository (not yet)</p> 32 32 </div> 33 33 34 <div id="userq uerysets-info">34 <div id="userqs-info"> 35 35 <p>Personalized workspace - when logged in, you can store your queries and bookmarks(not yet) here</p> 36 36 </div> … … 42 42 <p>You can search in he fields of individual profiles used by the MDrecords in the repository, or search over multiple profiles via datacategories</p> 43 43 </div> 44 <div id="compreg-info"> 45 <p>Overview of </p> 46 </div> 44 47 <div id="query-input-info"> 45 48
Note: See TracChangeset
for help on using the changeset viewer.