Revision 4613
Added by walbridge about 16 years ago
lib/style/common/templates/getReviews.tmpl | ||
---|---|---|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 |
<head> |
|
4 |
<title>Reviews</title> |
|
5 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
6 |
|
|
7 |
<script src="[% styleCommonPath %]/prototype.js"></script> |
|
8 |
<script src="[% styleCommonPath %]/accordion.js"></script> |
|
9 |
<script src="[% styleCommonPath %]/review_behaviors.js"></script> |
|
10 |
<link href="[% styleCommonPath %]/reviews.css" media="all" rel="Stylesheet" type="text/css" /> |
|
11 |
|
|
12 |
</head> |
|
13 |
|
|
14 |
<body onload="get_reviews('[%reviewdocid%]')"> |
|
15 |
|
|
16 |
[% IF isModerator == 'true' %] |
|
17 |
<div class="comment_form"> |
|
18 |
<p class="sectionnames">Moderator Actions</p> |
|
19 |
<form target="_top" id="reviewForm" method="POST" action="[% cgiPrefix %]/register-dataset.cgi"> |
|
20 |
<input value="mod_accept" id="stage" name="stage" type="hidden"> |
|
21 |
<input value="esa" name="cfg" type="hidden"> |
|
22 |
<input name="docid" type="hidden" value="[%docid%]"> |
|
23 |
<h3 style="margin-bottom: -18px;" class="review_emphasis">Please comment</h3> |
|
24 |
<ul> |
|
25 |
<li> |
|
26 |
<textarea name="review" rows="5" cols="25"></textarea> |
|
27 |
</li> |
|
28 |
<li> |
|
29 |
<input name="Accept" value=" Accept " type="SUBMIT" onClick="document.getElementById('stage').value='mod_accept';"> |
|
30 |
<input name="Decline" value="Decline" type="SUBMIT" onClick="document.getElementById('stage').value='mod_decline';"> |
|
31 |
<input name="Revise" value=" Revise " type="SUBMIT" onClick="document.getElementById('stage').value='mod_revise';"> |
|
32 |
</form> |
|
33 |
</div> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% IF reviewdocid != '' %] |
|
37 |
<h3 style="margin-top:-8px" class="review_emphasis"> |
|
38 |
Reviews |
|
39 |
<img id="busy" src="[% contextUrl %]/style/images/spinner.gif" style="display:none; margin-bottom: -3px;"/> |
|
40 |
</h3> |
|
41 |
|
|
42 |
<!-- ajax will populate this node --> |
|
43 |
<div id="review_list_container"><div id="review_list"></div></div> |
|
44 |
|
|
45 |
[% ELSE %] |
|
46 |
No reviews found. |
|
47 |
[% END %] |
|
48 |
|
|
49 |
</body> |
|
50 |
</html> |
|
51 |
|
|
52 |
|
|
53 | 0 |
lib/style/skins/knb2/resultset.xsl | ||
---|---|---|
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
32 | 32 |
|
33 | 33 |
<xsl:output method="html"/> |
34 |
<xsl:param name="cgi-url" select='string("")'/>
|
|
34 |
<xsl:param name="cgi-prefix"/>
|
|
35 | 35 |
<xsl:param name="contextURL"/> |
36 | 36 |
<xsl:param name="servletURL"/> |
37 | 37 |
<xsl:param name="sessid"/> |
... | ... | |
193 | 193 |
</input> |
194 | 194 |
</center> |
195 | 195 |
</form> |
196 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
196 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
197 | 197 |
method="POST"> |
198 | 198 |
<input type="hidden" name="stage" value="modify"/> |
199 | 199 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
... | ... | |
208 | 208 |
</input> |
209 | 209 |
</center> |
210 | 210 |
</form> |
211 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
211 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
212 | 212 |
method="POST"> |
213 | 213 |
<input type="hidden" name="stage" value="delete"/> |
214 | 214 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
lib/style/skins/sbclter/templates/xsl/resultset.xsl | ||
---|---|---|
33 | 33 |
--> |
34 | 34 |
|
35 | 35 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
36 |
<xsl:param name="cgi-url" select='string("")'/>
|
|
36 |
<xsl:param name="cgi-prefix"/>
|
|
37 | 37 |
<xsl:param name="sessid"/> |
38 | 38 |
<xsl:param name="enableediting">false</xsl:param> |
39 | 39 |
<xsl:param name="contextURL"/> |
... | ... | |
331 | 331 |
</input> |
332 | 332 |
</center> |
333 | 333 |
</form> |
334 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
334 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
335 | 335 |
method="POST"> |
336 | 336 |
<input type="hidden" name="stage" value="modify"/> |
337 | 337 |
<input type="hidden" name="cfg" value="sbclter"/> |
... | ... | |
344 | 344 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
345 | 345 |
</input> |
346 | 346 |
</form> |
347 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
347 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
348 | 348 |
method="POST"> |
349 | 349 |
<input type="hidden" name="stage" value="delete"/> |
350 | 350 |
<input type="hidden" name="cfg" value="sbclter"/> |
... | ... | |
388 | 388 |
<xsl:param name="entity_name"/> |
389 | 389 |
<xsl:param name="URL1"/> |
390 | 390 |
<!-- create form to pass url and entity's name to cgi with data agreement page. form name must be unique/dynamic --> |
391 |
<form action="{$cgi-url}/data-use-agreement.cgi" method="POST">
|
|
391 |
<form action="{$cgi-prefix}/data-use-agreement.cgi" method="POST">
|
|
392 | 392 |
<!-- <form action="http://sbcdata.lternet.edu/cgi-bin/data-use-agreement.cgi" method="POST"> --> |
393 | 393 |
<xsl:attribute name="name"> |
394 | 394 |
<xsl:value-of select="translate($entity_name,',:()-. ' ,'')" /> |
lib/style/skins/sbclter/templates/xsl/data_use_agreement.xsl | ||
---|---|---|
29 | 29 |
* into an HTML format suitable for rendering with modern web browsers. |
30 | 30 |
--> |
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
32 |
<xsl:param name="cgi-url" select='string("")'/>
|
|
32 |
<xsl:param name="cgi-prefix"/>
|
|
33 | 33 |
<xsl:param name="contextURL"/> |
34 | 34 |
<!-- This parameter gets overidden by the chosen default qformat --> |
35 | 35 |
<xsl:param name="qformat">default</xsl:param> |
... | ... | |
193 | 193 |
</input> |
194 | 194 |
</center> |
195 | 195 |
</form> |
196 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
196 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
197 | 197 |
method="POST"> |
198 | 198 |
<input type="hidden" name="stage" value="modify"/> |
199 | 199 |
<input type="hidden" name="cfg" value="sbclter"/> |
... | ... | |
206 | 206 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
207 | 207 |
</input> |
208 | 208 |
</form> |
209 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
209 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
210 | 210 |
method="POST"> |
211 | 211 |
<input type="hidden" name="stage" value="delete"/> |
212 | 212 |
<input type="hidden" name="cfg" value="sbclter"/> |
lib/style/skins/esa/esa.properties | ||
---|---|---|
25 | 25 |
# ESA-skin specific templates |
26 | 26 |
registry.templates.modEmailNotification=esaModNotification.tmpl |
27 | 27 |
registry.templates.modResult=esaModResultTemplate.tmpl |
28 |
registry.templates.getReviews=getReviews.tmpl
|
|
28 |
registry.templates.getReviews=esaGetReviews.tmpl
|
|
29 | 29 |
|
30 | 30 |
# email settings |
31 | 31 |
email.sender=ESA Data Registry <esaadmin@nceas.ucsb.edu> |
lib/style/skins/esa/esa-resultset.xsl | ||
---|---|---|
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
32 | 32 |
|
33 | 33 |
<xsl:output method="html"/> |
34 |
<xsl:param name="cgi-url" select='string("")'/>
|
|
34 |
<xsl:param name="cgi-prefix"/>
|
|
35 | 35 |
<xsl:param name="sessid"/> |
36 | 36 |
<xsl:param name="contextURL"/> |
37 | 37 |
<xsl:param name="qformat">default</xsl:param> |
... | ... | |
108 | 108 |
|
109 | 109 |
<xsl:choose> |
110 | 110 |
<xsl:when test="$enableediting = 'true'"> |
111 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
111 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
112 | 112 |
<xsl:attribute name="name"> |
113 | 113 |
<xsl:value-of select="translate(./docid, '()-.', '____')" /> |
114 | 114 |
</xsl:attribute> |
... | ... | |
215 | 215 |
<xsl:choose> |
216 | 216 |
<xsl:when test="$isModerator = 'true'"> |
217 | 217 |
<td class="text_plain"> |
218 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
218 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
219 | 219 |
<input type="hidden" name="stage" value="mod_accept"/> |
220 | 220 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
221 | 221 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
... | ... | |
229 | 229 |
</input> |
230 | 230 |
</center> |
231 | 231 |
</form> |
232 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
232 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
233 | 233 |
<input type="hidden" name="stage" value="mod_decline"/> |
234 | 234 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
235 | 235 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
... | ... | |
243 | 243 |
</input> |
244 | 244 |
</center> |
245 | 245 |
</form> |
246 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
246 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
247 | 247 |
<input type="hidden" name="stage" value="mod_revise"/> |
248 | 248 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
249 | 249 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
... | ... | |
261 | 261 |
</xsl:when> |
262 | 262 |
<xsl:otherwise> |
263 | 263 |
<td class="text_plain"> |
264 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
264 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
265 | 265 |
<input type="hidden" name="stage" value="read"/> |
266 | 266 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
267 | 267 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
... | ... | |
274 | 274 |
<input type="SUBMIT" value=" View " name="View"></input> |
275 | 275 |
</center> |
276 | 276 |
</form> |
277 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
277 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
278 | 278 |
method="POST"> |
279 | 279 |
<input type="hidden" name="stage" value="modify"/> |
280 | 280 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
lib/style/skins/pisco/templates/xsl/resultset.xsl | ||
---|---|---|
43 | 43 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
44 | 44 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /> |
45 | 45 |
|
46 |
<xsl:param name="cgi-url" select='string("")'/>
|
|
46 |
<xsl:param name="cgi-prefix"/>
|
|
47 | 47 |
<xsl:param name="sessid"/> |
48 | 48 |
<xsl:param name="enableediting">false</xsl:param> |
49 | 49 |
<xsl:param name="contextURL"/> |
... | ... | |
292 | 292 |
</input> |
293 | 293 |
</center> |
294 | 294 |
</form> |
295 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
295 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
296 | 296 |
method="POST"> |
297 | 297 |
<input type="hidden" name="stage" value="modify"/> |
298 | 298 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
... | ... | |
305 | 305 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
306 | 306 |
</input> |
307 | 307 |
</form> |
308 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
308 |
<form action="{$cgi-prefix}/register-dataset.cgi"
|
|
309 | 309 |
method="POST"> |
310 | 310 |
<input type="hidden" name="stage" value="delete"/> |
311 | 311 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
lib/style/common/templates/esaGetReviews.tmpl | ||
---|---|---|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 |
<head> |
|
4 |
<title>Reviews</title> |
|
5 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
6 |
|
|
7 |
<script src="[% styleCommonPath %]/prototype.js"></script> |
|
8 |
<script src="[% styleCommonPath %]/accordion.js"></script> |
|
9 |
<script src="[% styleCommonPath %]/review_behaviors.js"></script> |
|
10 |
<link href="[% styleCommonPath %]/reviews.css" media="all" rel="Stylesheet" type="text/css" /> |
|
11 |
|
|
12 |
</head> |
|
13 |
|
|
14 |
<body onload="get_reviews('[%reviewdocid%]', '[% metacatUrl %]')"> |
|
15 |
|
|
16 |
[% IF isModerator == 'true' %] |
|
17 |
<div class="comment_form"> |
|
18 |
<p class="sectionnames">Moderator Actions</p> |
|
19 |
<form target="_top" id="reviewForm" method="POST" action="[% cgiPrefix %]/register-dataset.cgi"> |
|
20 |
<input value="mod_accept" id="stage" name="stage" type="hidden"> |
|
21 |
<input value="esa" name="cfg" type="hidden"> |
|
22 |
<input name="docid" type="hidden" value="[%docid%]"> |
|
23 |
<h3 style="margin-bottom: -18px;" class="review_emphasis">Please comment</h3> |
|
24 |
<ul> |
|
25 |
<li> |
|
26 |
<textarea name="review" rows="5" cols="25"></textarea> |
|
27 |
</li> |
|
28 |
<li> |
|
29 |
<input name="Accept" value=" Accept " type="SUBMIT" onClick="document.getElementById('stage').value='mod_accept';"> |
|
30 |
<input name="Decline" value="Decline" type="SUBMIT" onClick="document.getElementById('stage').value='mod_decline';"> |
|
31 |
<input name="Revise" value=" Revise " type="SUBMIT" onClick="document.getElementById('stage').value='mod_revise';"> |
|
32 |
</form> |
|
33 |
</div> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% IF reviewdocid != '' %] |
|
37 |
<h3 style="margin-top:-8px" class="review_emphasis"> |
|
38 |
Reviews |
|
39 |
<img id="busy" src="[% contextUrl %]/style/images/spinner.gif" style="display:none; margin-bottom: -3px;"/> |
|
40 |
</h3> |
|
41 |
|
|
42 |
<!-- ajax will populate this node --> |
|
43 |
<div id="review_list_container"><div id="review_list"></div></div> |
|
44 |
|
|
45 |
[% ELSE %] |
|
46 |
No reviews found. |
|
47 |
[% END %] |
|
48 |
|
|
49 |
</body> |
|
50 |
</html> |
|
51 |
|
|
52 |
|
|
0 | 53 |
lib/style/common/review_behaviors.js | ||
---|---|---|
1 | 1 |
|
2 |
function get_reviews(docid) { |
|
2 |
function get_reviews(docid, metacatUrl) {
|
|
3 | 3 |
if (docid != null && docid != '') { |
4 |
new Ajax.Request("../../metacat?action=read&docid=" + docid,
|
|
4 |
new Ajax.Request( metacatUrl + "?action=read&docid=" + docid,
|
|
5 | 5 |
{asynchronous:true, evalScripts:true, method:'post', |
6 | 6 |
onLoading:function(request){Element.show('busy')}, |
7 | 7 |
onComplete: render_reviews}); |
Also available in: Unified diff
Replace usage of 'cgi-url' with 'cgi-prefix' in XSLT transformations, fix the ESA review process to accept the 'metacatUrl' parameter (#3687)