[HepData-svn] r1323 - in trunk/hepdata-webapp/src/main: java/cedar/hepdata/webapp/pages resources/cedar/hepdata/webapp/components resources/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Nov 27 12:15:11 GMT 2009


Author: whalley
Date: Fri Nov 27 12:15:10 2009
New Revision: 1323

Log:
adding HepData pages/same as Index

Added:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/HepData.java
   trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/HepData.tml
Modified:
   trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/components/Layout.tml

Added: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/HepData.java
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/HepData.java	Fri Nov 27 12:15:10 2009	(r1323)
@@ -0,0 +1,31 @@
+package cedar.hepdata.webapp.pages;
+
+import java.util.Date;
+
+import org.apache.tapestry5.*;
+import org.apache.tapestry5.annotations.*;
+import org.apache.tapestry5.ioc.annotations.*;
+import org.apache.tapestry5.services.*;
+import java.net.URLEncoder;
+import java.net.URLDecoder;
+
+
+public class HepData{
+
+    @Property
+    private String query;
+
+    @InjectPage
+    private Search _search;
+
+    @OnEvent(value="submit", component="search")
+    public Object onFormSubmit() {
+        try{
+            query = URLEncoder.encode(query,"UTF-8");
+        } catch(Exception ex){};
+//        _search.setSearchString(query.replace(" ", "_"));
+        _search.setSearchString(query);
+       return _search;
+    }
+    
+}

Modified: trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/components/Layout.tml
==============================================================================
--- trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/components/Layout.tml	Thu Nov 26 10:34:34 2009	(r1322)
+++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/components/Layout.tml	Fri Nov 27 12:15:10 2009	(r1323)
@@ -9,11 +9,11 @@
       <img style="float:right;" alt="Durham University" src="${asset:context:/logounidurham-new.gif}"/>
     </a>
     <h1>
-      <a href="#" t:type="pagelink" t:page="index">The Durham HepData Project</a>
+      <a href="#" t:type="pagelink" t:page="hepdata">The Durham HepData Project</a>
       <!-- HepData Reaction Database -->
     </h1>
   <div class="navbar">
-    <a href="#" id="nav-reaction" t:type="pagelink" t:page="index">Reaction Database</a>&nbsp;&#8226;
+    <a href="#" id="nav-reaction" t:type="pagelink" t:page="hepdata">Reaction Database</a>&nbsp;&#8226;
     <a href="#" id="nav-review" t:type="pagelink" t:page="reviews">Data Reviews</a>&nbsp;&#8226;
     <a href="#" id="nav-pdf" t:type="pagelink" t:page="pdfs">Parton Distribution Function Server</a>&nbsp;&#8226;
     <a href="#" id="nav-resources" t:type="pagelink" t:page="otherhepresources">Other HEP Resources</a>

Added: trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/HepData.tml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/HepData.tml	Fri Nov 27 12:15:10 2009	(r1323)
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html t:type="layout" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+
+
+  <title>HepData search</title>
+
+<body class="reaction">
+
+  <table>
+    <tr>
+      <td id="mainsearchcol">
+        <h2>Reaction Database Standard Search Interface</h2>
+         Database of Numerical HEP scattering cross sections
+        <t:form t:id="search" t:context="query" action="search">
+          Enter query:
+          <input t:type="textfield" t:value="query" name="q" size="50"/>&nbsp;<input type="submit" value="Search"/>
+          <br/>
+          <span class="searchexamples">examples:
+            <a href="#" t:type="pagelink" t:page="search" t:context="literal:re_gamma_gamma">re gamma gamma</a>,&nbsp;
+            <a href="#" t:type="pagelink" t:page="search" t:context="literal:re_p_p_--&gt;_p_p_and_obs_sig">re p p --&gt; p p and obs sig</a>,&nbsp;
+            <a href="#" t:type="pagelink" t:page="search" t:context="literal:exp_cern">exp cern</a>
+            <p/>
+            <a href="#" t:type="pagelink" t:page="searchhelp">Search Help</a>&nbsp;&ndash;&ndash;
+            <a href="#" t:type="pagelink" t:page="outputhelp">Output Help</a>&nbsp;&ndash;&ndash;
+            <a href="#" t:type="pagelink" t:page="form">Form Search</a>&nbsp;&ndash;&ndash;
+            <a href="#" t:type="pagelink" t:page="browse">Browse Keywords</a>&nbsp;
+          </span>
+        </t:form>	
+
+        <div class="searchtip">
+          The HepData Reaction Database has recently moved from its former
+          hierarchical database, with its in-house BDMS management system, to
+          a new relational system using MySQL and modern Java based tools.
+          This will allow better long-term management of the project and also
+          improved searching and display facilities.  
+          <br/><br/>
+          Please send any comments or suggestions to 
+          <a href="mailto:hepdata at projects.hepforge.org">hepdata at projects.hepforge.org</a>
+        </div>
+        
+                         
+      </td>
+      <td>
+
+
+        <div id="datareviewbox" class="searchlinkbox">
+          <h3 class="">Quick link to HepData data reviews</h3>
+          <ul>
+            <li><a href="http://durpdg.dur.ac.uk/hepdata/online/f2/structindex.html">Structure functions in DIS</a></li>
+            <li><a href="http://durpdg.dur.ac.uk/hepdata/online/photon/photonindex.html">Single photon production in hadronic interactions</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/2gamma/2gammaindex.html">Two-photon reactions leading to hadron final states</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/dy/dyindex.html">Drell-Yan cross-sections</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/ee/eeindex.html">Inclusive particle production data in e+ e- interactions</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/rsig/index.html">Hadronic total cross-sections (R) in e+e- interactions</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/neutrino/index.html">Low-energy neutrino cross-sections</a></li>
+			<li><a href="http://durpdg.dur.ac.uk/hepdata/online/shapes/index.html">Event shapes in lepton-lepton and lepton-nucleon interactions</a></li>
+          </ul>
+
+          <h3>Predefined event shape / jet searches</h3>
+          <ul>
+            <li><a href="#" t:type="pagelink" t:page="search" t:context="literal:EventShapes">Event shapes</a> (thrust, etc...)</li>
+			<li><a href="#" t:type="pagelink" t:page="search" t:context="literal:EventShapesEE">Event shapes in e+e- collisions</a></li>
+			<li><a href="#" t:type="pagelink" t:page="search" t:context="literal:EventShapesNotEE">Event shapes in non-e+e- collisions</a></li>
+			<li><a href="#" t:type="pagelink" t:page="search" t:context="literal:JetProduction">Jet production</a> (in any process)</li>
+			<li><a href="#" t:type="pagelink" t:page="search" t:context="literal:JetProductionEE">Jet production in e+e- collisions</a></li>
+			<li><a href="#" t:type="pagelink" t:page="search" t:context="literal:JetProductionNotEE">Jet production in non-e+e- collisions</a></li>
+          </ul>
+        </div>
+      </td>
+    </tr>
+    
+  </table>
+                         
+  <div style="margin-top:1em; font-size: smaller;">
+    <a href="#" t:type="pagelink" t:page="abouthepdata">About HepData</a>&nbsp;&ndash;&ndash;
+    <a href="#" t:type="pagelink" t:page="submittingdata">Submitting your data to HepData</a>
+    <br/>
+  </div>
+    <br/>
+
+ </body>
+
+</html>


More information about the HepData-svn mailing list