Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
103 lines
5.6 KiB
Text
103 lines
5.6 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Comments on [% title |html %]</title>
|
|
<style type="text/css">
|
|
#custom-doc { width:37.08em;*width:36.16em;min-width:485px; margin:1em auto; text-align:left; }
|
|
</style>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='comment' bodyclass='popup' %]
|
|
<div class="main">
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<div id="userreview">
|
|
[% IF ( cgi_debug ) %]
|
|
<div class="debug">CGI debug is on.</div>
|
|
[% END %]
|
|
[% IF ( ERRORS ) %]
|
|
<div class="alert">
|
|
[% FOREACH ERROR IN ERRORS %]
|
|
[% IF ( ERROR.scrubbed ) %]
|
|
<p>Note: your comment contained illegal markup code. It has been saved with the markup removed, as below. You can edit the comment further, or cancel to retain the comment as is.</p>
|
|
[% END %]
|
|
|
|
[% IF ( ERROR.scrubbed_all ) %]
|
|
<p>Error! Your comment was entirely illegal markup code. It has NOT been added.</p>
|
|
[% END %]
|
|
|
|
[% IF ( ERROR.empty ) %]
|
|
<p>Error! You cannot add an empty comment. Please add content or cancel.</p>
|
|
[% END %]
|
|
[% END # / FOREACH ERROR %]
|
|
[% IF ( WINDOW_CLOSE ) %]
|
|
Note: this window will close automatically in 5 seconds.
|
|
[% END %]
|
|
</div>
|
|
[% END # / ERRORs %]
|
|
|
|
<h1>Comments on <i>[% title |html %] [% subtitle %]</i></h1>
|
|
[% IF ( author ) %]<h3>[% author |html %]</h3>[% END %]
|
|
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
|
|
<input type="hidden" name="biblionumber" value="[% biblionumber | html%]" />
|
|
[% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html%]" />[% END %]
|
|
<fieldset>
|
|
<textarea id="review" name="review" cols="60" rows="8">[% review %]</textarea>
|
|
</fieldset>
|
|
<p>Note: Your comment must be approved by a librarian. </p>
|
|
<fieldset class="action">
|
|
<input type="submit" class="btn" value="Submit and close this window" />
|
|
<a class="cancel close" href="#">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
</div> <!-- / #usersendshelfform -->
|
|
</div> <!-- / .span12 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
|
|
[% BLOCK jsinclude %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
var inject_old = function(comment) {
|
|
[% IF ( reviewid ) %]
|
|
[% IF ( cgi_debug ) %]alert(_("injecting OLD comment: ")+comment);[% END %]
|
|
parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html(_("Your edited comment (preview, pending approval)"));
|
|
parent.opener.$('#c[% reviewid %] p').html(comment);
|
|
parent.opener.$('#c[% reviewid %] p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | uri %]&reviewid=[% reviewid | uri%]\');\">"+_("Edit")+"<\/a>");
|
|
[% END %]
|
|
return 1;
|
|
};
|
|
var inject_new = function(comment) {
|
|
[% IF ( cgi_debug ) %]alert(_("injecting NEW comment: ") +comment);[% END %]
|
|
parent.opener.$('#newcomment').attr("class","yours");
|
|
parent.opener.$('#newcomment').html(
|
|
"<h5>" + _("Your comment (preview, pending approval)") + "<\/h5>" +
|
|
"<p>"+comment+"<\/p>" +
|
|
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber |uri%]\');\">"+_("Edit")+"<\/a><\/p>"
|
|
);
|
|
parent.opener.$("#addcomment").prev("p").remove();
|
|
parent.opener.$("#addcomment").remove();
|
|
};
|
|
[% IF ( clean_review ) %]
|
|
var clean_review = "[% clean_review |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"; // TMPL var must not contain " quotes.
|
|
[% IF ( reviewid ) %]
|
|
inject_old(clean_review);
|
|
[% ELSE %]
|
|
inject_new(clean_review);
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( WINDOW_CLOSE ) %]
|
|
[% IF ( ERRORS ) %]
|
|
// flash this page, then close. Change warning in template if you change this value.
|
|
setTimeout("window.close()",5000);
|
|
[% ELSE %]
|
|
window.close();
|
|
[% END %]
|
|
[% END %]
|
|
});
|
|
//]]>
|
|
</script>
|
|
[% END %]
|