47 lines
2.7 KiB
Cheetah
47 lines
2.7 KiB
Cheetah
<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Library Home for <!-- TMPL_LOOP name="BORROWER_INFO" --><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --><!-- /TMPL_LOOP -->
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<style type="text/css">
|
|
#custom-doc { width:37.08em;*width:36.16em;min-width:485px; margin:1em auto; text-align:left; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="custom-doc" class="yui-t7">
|
|
<h3> </h3>
|
|
|
|
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl" method="post">
|
|
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
|
|
<input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->" />
|
|
<fieldset class="brief">
|
|
<legend>Comments on <i><!--TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></i><!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></legend>
|
|
<ol><li><textarea id="review" name="review" cols="60" rows="8"><!--TMPL_VAR NAME="review"--></textarea></li></ol>
|
|
</fieldset>
|
|
<p>Note: Your comment must be approved by a librarian. </p>
|
|
<fieldset class="action"> <input type="submit" value="Submit and close this window" /> <a class="cancel close" href="#">Cancel</a></fieldset>
|
|
</form>
|
|
<script type="text/JavaScript" language="JavaScript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$('#reviewf').submit( function() {
|
|
<!-- TMPL_IF NAME="reviewid" -->
|
|
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)");
|
|
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html($("#review").val());
|
|
parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit</a>");
|
|
window.close();
|
|
<!-- TMPL_ELSE -->
|
|
parent.opener.$('#newcomment').attr("class","yours");
|
|
parent.opener.$('#newcomment').html("<h5>Your Comment (preview, pending approval)</h5>");
|
|
parent.opener.$('#newcomment').append("<p>"+$("#review").val());
|
|
parent.opener.$('#newcomment p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit</a></p>");
|
|
parent.opener.$("#addcomment").prev("p").remove();
|
|
parent.opener.$("#addcomment").remove();
|
|
window.close();
|
|
<!-- /TMPL_IF -->
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|