Changeset 8720 for trunk/greenstone3-extensions/gsdl-as
- Timestamp:
- 2004-12-02T09:56:11+13:00 (19 years ago)
- Location:
- trunk/greenstone3-extensions/gsdl-as
- Files:
-
- 10 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/greenstone3-extensions/gsdl-as/lib/templates/error.vm
r8630 r8720 3 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <head> 6 <title>Greenstone Digital Library Software</title> 7 <link href="default.css" rel="stylesheet" type="text/css"/> 8 </head> 9 <body> 10 <h1>Alerting Service for Greenstone</h1> 11 <h2>$title</h2> 12 <div class="content"> 13 <p class="error">$message</p> 14 <p class="details">$details</p> 15 </div> 5 <head> 6 <title>Greenstone Digital Library Software</title> 7 <link href="default.css" rel="stylesheet" type="text/css"/> 8 </head> 9 <body> 10 <div id="content"> 11 <h3>Alerting Service for Greenstone</h3> 12 <p>$title</p> 13 <p class="error">$message</p> 14 <p class="details">$details</p> 15 <a href="/alerting">back</a> to the alerting service 16 </div> 16 17 17 </body>18 </body> 18 19 </html> -
trunk/greenstone3-extensions/gsdl-as/lib/templates/general.vm
r8630 r8720 8 8 </head> 9 9 <body> 10 < h1>Alerting Service for Greenstone</h1>11 <h 2>$title</h2>12 < div class="content">10 <div id="content"> 11 <h3>Alerting Service for Greenstone</h3> 12 <p>$title</p> 13 13 <p class="message">$message</p> 14 <a href="/alerting">back</a> to the alerting service 14 15 </div> 15 16 -
trunk/greenstone3-extensions/gsdl-as/lib/templates/list.vm
r8630 r8720 5 5 <head> 6 6 <title>Greenstone Digital Library Software</title> 7 <link href=" default.css" rel="stylesheet" type="text/css"/>7 <link href="list.css" rel="stylesheet" type="text/css"/> 8 8 </head> 9 9 <body> 10 < h1>Alerting Service for Greenstone</h1>11 <h 2>$title</h2>12 < div class="content">10 <div id="content"> 11 <h3>Alerting Service for Greenstone</h3> 12 <p>$title</p> 13 13 #foreach($sub in $list) 14 14 <div class="subscription"> 15 <span class="sub_id">$sub.Id</span> 16 <table> 15 <p><span class="sub_id">Subscription $sub.Id</span><br/> 16 <a href="service?action=showFeed&subscriptionID=$sub.Id">show matching events</a> | <a href="service?action=editSubscription&subscriptionID=$sub.Id">edit subscription</a></p> 17 <table class="subscription"> 17 18 <thead> 18 19 <tr><th>Field</th><th>Predicate</th></tr> 19 20 </thead> 20 <tfoot />21 <tfoot><tr><th/><th/></tr></tfoot> 21 22 <tbody> 22 23 #foreach($pred in $sub.Predicates) … … 28 29 </tbody> 29 30 </table> 31 <br/> 30 32 </div> 31 33 #end 34 <a href="/alerting">back</a> to the alerting service 32 35 </div> 33 36 -
trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/GreenstoneCommunicator.java
r8609 r8720 9 9 package org.greenstone.gsdlas; 10 10 11 import java.io.OutputStreamWriter; 11 12 import java.net.URL; 12 13 import java.util.*; … … 17 18 import org.apache.soap.Fault; 18 19 import org.apache.soap.rpc.*; 20 import org.apache.soap.util.xml.DOM2Writer; 19 21 import org.w3c.dom.*; 20 22 … … 119 121 120 122 Set result = new TreeSet(); 123 //DOM2Writer.serializeAsXML(root, new OutputStreamWriter(System.out)); 121 124 122 125 Element response = sendToGreenstone(document.getDocumentElement()); -
trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/profiles/PredicateFactory.java
r8609 r8720 46 46 throws ParseException { 47 47 Predicate result = null; 48 if (value == null || value.length() == 0) { 49 return null; 50 } 51 48 52 if (key.equals("type")) { 49 53 return result; -
trunk/greenstone3-extensions/gsdl-as/web/about.html
r8630 r8720 1 <html><head> 2 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 3 <title>Greenstone Version 3</title></head> 4 5 <body alink="#cc9900" background="images/chalk.gif" bgcolor="#ffffff" link="#006666" text="#000000" vlink="#666633"> 1 <?xml version="1.0"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <head> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 7 <title>Greenstone Version 3</title> 8 <link rel="stylesheet" type="text/css" href="default.css"/> 9 </head> 10 <body> 6 11 7 12 <!-- page banner (_style:pagebanner_) --> 8 <center> 9 <table cellpadding="0" cellspacing="0" width="537"> 10 <tbody><tr valign="top"> 11 <td rowspan="2" align="left"><center><img src="images/gsdlhead.gif" alt="Greenstone Digital Library Software" height="100" width="300"></center></td> 12 <td align="right"></td> 13 </tr> 13 <div id="content"><h3>Alerting Service for Greenstone – About</h3> 14 <p></p> 14 15 15 <tr>16 <td align="right"></td>17 </tr>18 16 19 <tr> 20 <td colspan="2"></td> 21 </tr> 22 </tbody></table> 23 </center> 24 <!-- end of page banner --> 25 26 <center> 27 28 <table width="537"> 29 <tbody><tr><td><h3>Alerting Service for Greenstone 3 – About</h3></td></tr> 30 <tr><td> </td></tr> 31 <tr><td>Here be text</td></tr> 32 <tr><td> </td></tr> 33 <tr><td><p>Go <a href="index.html">back</a> to the alerting service.</p></td></tr> 34 </tbody></table> 35 </center> 17 (description of what an alerting service does)<br/> 18 <a href="index.html">back</a> to the alerting service.<br/> 19 </div> 36 20 </body></html> -
trunk/greenstone3-extensions/gsdl-as/web/default.css
r8630 r8720 1 1 body { 2 font-family: "Trebuchet MS",Arial,helvetica,sans-serif; 2 color: black; 3 background-color: white; 4 /*font-family: "Trebuchet MS", Arial, helvetica, sans-serif;*/ 5 text-align: center; 6 margin: 0px; 7 background-image: url("images/chalk.gif"); 8 background-repeat: repeat-y; 3 9 } 4 10 11 #content { 12 background-image: url("images/gsdlhead.gif"); 13 background-repeat: no-repeat; 14 background-position: center top; 15 padding-top: 88px; 16 width: 537px; 17 position: relative; 18 text-align: left; 19 margin-left: auto; 20 margin-right: auto; 21 margin-top: 10px; 22 } 23 24 5 25 .error { 6 7 26 color: red; 27 font-weight: bold; 8 28 } 9 29 10 30 .details { 11 31 font-size: small; 12 32 } 13 33 14 34 table, thead { 15 35 border: 1pt solid black; 16 36 } 17 37 18 38 thead { 19 39 background-color: gray; 20 40 } 41 42 a:link { 43 color: #006666; 44 } 45 46 a:active { 47 color: #cc9900; 48 } 49 50 a:visited { 51 color: #666633; 52 } 53 54 img.help { 55 cursor: help; 56 } -
trunk/greenstone3-extensions/gsdl-as/web/index.html
r8644 r8720 1 <html><head> 2 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 3 <title>Greenstone Version 3</title></head> 4 5 <body alink="#cc9900" background="images/chalk.gif" bgcolor="#ffffff" link="#006666" text="#000000" vlink="#666633"> 1 <?xml version="1.0"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <head> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 7 <title>Greenstone Version 3</title> 8 <link rel="stylesheet" type="text/css" href="default.css"/> 9 </head> 10 <body> 6 11 7 12 <!-- page banner (_style:pagebanner_) --> 8 <center> 9 <table cellpadding="0" cellspacing="0" width="537"> 10 <tbody><tr valign="top"> 11 <td rowspan="2" align="left"><center><img src="images/gsdlhead.gif" alt="Greenstone Digital Library Software" height="100" width="300"></center></td> 12 <td align="right"></td> 13 </tr> 14 15 <tr> 16 <td align="right"></td> 17 </tr> 18 19 <tr> 20 <td colspan="2"></td> 21 </tr> 22 </tbody></table> 23 </center> 24 <!-- end of page banner --> 25 26 <center> 27 28 <table width="537"> 29 <tbody><tr><td><h3>Alerting Service for Greenstone 3</h3></td></tr> 30 <tr><td> </td></tr> 31 <tr><td>What do you want to do today?</td></tr> 32 <tr><td> </td></tr> 33 34 35 <tr><td><a href="test.html">Test</a> the alerting service servlet.</td></tr> 36 <tr><td><a href="service?action=listSubscriptions">List</a> the existing subscriptions.</td></tr> 37 <tr><td><a href="about.html">Read more</a> about the alerting service.</td></tr> 38 39 </tbody></table> 40 </center> 41 </body></html> 13 <div id="content"> 14 <h3>Alerting Service for Greenstone</h3> 15 <p>What do you want to do today?</p> 16 17 <ul> 18 <li> 19 <a href="subscribe.html">Create</a> a subscription.</li> 20 <li> 21 <a href="service?action=listSubscriptions">View and edit</a> your existing subscriptions.</li> 22 <li> 23 <a href="about.html">Read more</a> about the alerting service.</li> 24 </ul> 25 </div> 26 </body> 27 </html> -
trunk/greenstone3-extensions/gsdl-as/web/test.html
r8644 r8720 1 <?xml version="1.0"?> 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 3 <html >3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 5 6 <title>Alerting Service for Greenstone</title> 7 <link href="default.css" rel="stylesheet" type="text/css"/> 6 8 <style type="text/css"> 7 9 <!-- … … 10 12 th,td { border-width:0px; } 11 13 --> 12 </style 14 </style> 13 15 </head> 14 16 <body> 15 <h1>Test</h1> 16 <form action="/alerting/service?test" method="POST"> 17 <div id="content"> 18 <!-- <h1>Test</h1> 19 <form action="/alerting/service?test" method="post"> 17 20 <input type="text" name="text"/><br/> 18 21 <input type="submit" value="submit"/> 19 22 </form> 20 <hr/> 23 <hr/> --> 21 24 22 <h 1>Subscribe</h1>23 <form action="/alerting/service" method=" POST" name="subscribe">25 <h3>Subscribe</h3> 26 <form action="/alerting/service" method="post" name="subscribe"> 24 27 <input type="hidden" name="action" value="subscribe"/> 25 28 <table border="1"> … … 61 64 <input type="submit" value="submit"/> 62 65 </form> 66 </div> 63 67 </body> 64 68 </html>
Note:
See TracChangeset
for help on using the changeset viewer.