Project

General

Profile

« Previous | Next » 

Revision 4012

Added by berkley over 16 years ago

updated stylesheets for ontologies

View differences:

lib/style/skins/sms/resultset.xsl
5 5
    <table>
6 6
      <xsl:apply-templates select="//document"/>
7 7
    </table>
8
    <!-- page navigation-->
8 9
    <div class="resultnavbar">
9 10
      <!--previous-->
10 11
      <xsl:choose>
11 12
        <xsl:when test="//pagestart = 0">
12
          &lt;
13
          &#8592; previous
13 14
        </xsl:when>
14 15
        <xsl:otherwise>
15 16
          <a>
16 17
            <xsl:attribute name="href">
17 18
              javascript:reloadSearchContent('/sms/metacat?action=query&amp;anytext=%25&amp;qformat=sms&amp;pagesize=10&amp;pagestart=<xsl:value-of select="//previouspage"/>');
18 19
            </xsl:attribute>
19
            &lt;
20
              &#8592; previous
20 21
          </a>
21 22
        </xsl:otherwise>
22 23
      </xsl:choose>
24
            
25
      &#160; &#160; 
23 26
      
24
      <!--current page of num pages-->
25 27
      <!--next-->
26 28
      <xsl:choose>
27 29
        <xsl:when test="//lastpage = 'true'">
28
          &gt;
30
          next &#8594;
29 31
        </xsl:when>
30 32
        <xsl:otherwise>
31 33
          <a>
32 34
          <xsl:attribute name="href">
33 35
            javascript:reloadSearchContent('/sms/metacat?action=query&amp;anytext=%25&amp;qformat=sms&amp;pagesize=10&amp;pagestart=<xsl:value-of select="//nextpage"/>');
34 36
          </xsl:attribute>
35
          &gt;
37
            next &#8594;
36 38
          </a>
37 39
        </xsl:otherwise>
38 40
      </xsl:choose>
39 41
    </div>
40 42
  </xsl:template>
41 43
  
44
  <!--search results-->
42 45
  <xsl:template match="document">
43 46
    <tr>
44 47
      <td>
......
54 57
        <xsl:when test="doctype='eml://ecoinformatics.org/eml-2.0.1'">
55 58
          EML 2.0.1 Document
56 59
        </xsl:when>
60
        <xsl:when test="doctype='rdf:RDF'">
61
          RDF Ontology
62
        </xsl:when>
63
        <!--add more doctypes here-->
57 64
        <xsl:otherwise>
58 65
          Unknown Document Type
59 66
        </xsl:otherwise>
lib/style/skins/sms/sms.xml
20 20
  <doctype publicid="metadata">
21 21
    <target publicid="-//W3C//HTML//EN">/style/skins/knb/knb_fgdc.xsl</target>
22 22
  </doctype>
23
<!--
24
  <doctype publicid="-//NCEAS//eml-generic//EN">
25
    <target publicid="-//W3C//HTML//EN">/style/common/generic-morpho.xsl</target>
23

  
24
  <!--RDF Ontologies-->
25
  <doctype publicid="rdf:RDF">
26
    <target publicid="-//W3C//HTML//EN">/style/skins/sms/rdf.xsl</target>
26 27
  </doctype>
27
-->
28 28

  
29 29
<!-- pre-beta6 modules -->
30 30
<!-- NOTE these settings are unchanged from the previous version - only the xsl 
lib/style/skins/sms/index.jsp
41 41
            <td>Password:</td><td><input id="pw" type="password" name="password"/></td>
42 42
          </tr>
43 43
          <tr>
44
            <td><a href="javascript:" onclick="login()">[Login]</a></td>
44
            <td><a href="javascript:login();" >[Login]</a></td>
45 45
          </tr>
46 46
        </table>
47 47
        
......
49 49
      </div>
50 50
      </div>
51 51
      
52
      <!--main part of the page after logging in-->
52 53
      <div id="maindiv" style="display:none; width:625px; margin:0px auto; padding: 10px;">
53 54
      <table style="width:625px">
54 55
        <tr valign="top">
55
          <td width="312px">
56
            <div id="leftspan" style="background:grey; border:1px solid">
56
          <td width="50%">
57
          
58
          <!--search panel-->
59
            <div id="leftspan" style="background:grey; border:1px solid; height: 99%; width: 99%;">
57 60
              <h4 style="text-align:center">Semantic Search</h4>
61
              <form>
62
                <table>
63
                  <tr>
64
                    <td>Search:</td><td><input id="searchtextbox" type="text" name="anytext"/></td>
65
                  </tr>
66
                  <tr>
67
                    <td><a href="javascript:search()">[Search]</a></td><td>&nbsp;</td>
68
                  </tr>
69
                </table>
70
              </form>
58 71
            </div>
72
          
59 73
          </td>
60 74
          
61
          <td width="312px">
62
            <div id="rightspan" style="background:grey; border:1px solid; padding:10px;">
75
          <!--upload panel-->
76
          <td width="50%">
77
            <div id="rightspan" style="background:grey; border:1px solid; width: 99%; height: 99%;">
63 78
              <h4 style="text-align:center">Upload an ontology or data package</h4>
64 79
              <form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data">
65 80
                <input type="hidden" name="action" value="insertmultipart"/>
......
72 87
                    <td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td>
73 88
                  </tr>
74 89
                  <tr>
75
                    <td><a href="javascript:" onclick="uploadfile()">[Upload]</a>
76
                    <!--<input type="submit"/></td>-->
90
                    <td><a href="javascript:uploadfile()" >[Upload]</a>
91
                    <input type="submit"/></td>
77 92
                  </tr>
78 93
                </table>
79 94
              </form>
......
99 114
        </tr>
100 115
      </table>
101 116
      
102
      <div id="searchresultdiv" style="border: 1px solid; padding: 10px; width: 600px;">
117
      <!--search result panel-->
118
      <div id="searchresultdiv" style="position: relative; left: 3px; border: 1px solid ; padding: 10px; width: 595px;">
103 119
        <div id="searchresulttable">
104
        
120
          <!--this is filled in via an AJAX call.  see showDatasets()-->
105 121
        </div>
106 122
      </div>
107 123
      
lib/style/skins/sms/util.js
16 16
        setCookie("sms-user", user);
17 17
        setCookie("sms-org", org);
18 18
        setLoginHeader(true);
19
        checkLogin();
19 20
      }
20 21
      else
21 22
      { //login not successful
......
55 56
    updateStatus();
56 57
    var user = getCookie("sms-user");
57 58
    $('#loginheader').replaceWith("<h2 style=\"text-align:center\" id=\"loginheader\">" 
58
      + user + " Logged In <a href=\"javascript:\" onclick=\"logout()\" style=\"font-size:70%\">[logout]</a></h2>");
59
      + user + " Logged In <a href=\"javascript:logout()\" style=\"font-size:70%\">[logout]</a></h2>");
59 60
    slideUp("#loginformdiv");
60 61
    $('#maindiv').css("display", "block");
61 62
    $('#bottomimg').css("bottom", "0px");
......
108 109
  }
109 110
}
110 111

  
112
function search()
113
{
114
  var searchval = document.getElementById("searchtextbox").value
115
  var url = '/sms/metacat?action=query&anyfield=' + searchval + '&qformat=sms&pagesize=10&pagestart=0';
116
  reloadSearchContent(url);
117
}
118

  
111 119
function showDatasets()
112 120
{
113
  reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=0');
121
  reloadSearchContent('/sms/metacat?action=query&anyfield=%25&qformat=sms&pagesize=10&pagestart=0');
114 122
}
115 123

  
116 124
function reloadSearchContent(url)
lib/style/skins/sms/sms.css
41 41
  text-decoration:none;
42 42
  color:white;
43 43
}
44

  
45
/* Disable the error console */
46
#javascriptConsole {display: none !important}
47

  

Also available in: Unified diff