Project

General

Profile

« Previous | Next » 

Revision 4013

Added by berkley over 16 years ago

added style for the ontologies and made the search results remember their page

View differences:

lib/style/skins/sms/index.jsp
53 53
      <div id="maindiv" style="display:none; width:625px; margin:0px auto; padding: 10px;">
54 54
      <table style="width:625px">
55 55
        <tr valign="top">
56
          <td width="50%">
56
          <td width="50%" height="100%">
57 57
          
58 58
          <!--search panel-->
59 59
            <div id="leftspan" style="background:grey; border:1px solid; height: 99%; width: 99%;">
lib/style/skins/sms/util.js
118 118

  
119 119
function showDatasets()
120 120
{
121
  reloadSearchContent('/sms/metacat?action=query&anyfield=%25&qformat=sms&pagesize=10&pagestart=0');
121
  var page = getCookie('sms-pagestart');
122
  if(page)
123
  {
124
    reloadSearchContent('/sms/metacat?action=query&anyfield=%25&qformat=sms&pagesize=10&pagestart=' + page);
125
  }
126
  else
127
  {
128
    reloadSearchContent('/sms/metacat?action=query&anyfield=%25&qformat=sms&pagesize=10&pagestart=0');
129
  }
122 130
}
123 131

  
124 132
function reloadSearchContent(url)
125 133
{
134
  var page = url.substring(url.indexOf('pagestart=') + 10, url.length);
135
  setCookie("sms-pagestart", page);
126 136
  $("#searchresulttable").load(url);
127 137
}
128 138

  

Also available in: Unified diff