Lines 11-17
Link Here
|
11 |
[% IF ( cgi_debug ) %]alert(_('injecting OLD comment: ')+comment);[% END %] |
11 |
[% IF ( cgi_debug ) %]alert(_('injecting OLD comment: ')+comment);[% END %] |
12 |
parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html(_("Your edited comment (preview, pending approval)")); |
12 |
parent.opener.$('#c[% reviewid %] p').prev("small").prev("h5").html(_("Your edited comment (preview, pending approval)")); |
13 |
parent.opener.$('#c[% reviewid %] p').html(comment); |
13 |
parent.opener.$('#c[% reviewid %] p').html(comment); |
14 |
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>"); |
14 |
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>"); |
15 |
[% END %] |
15 |
[% END %] |
16 |
return 1; |
16 |
return 1; |
17 |
}; |
17 |
}; |
Lines 21-27
Link Here
|
21 |
parent.opener.$('#newcomment').html( |
21 |
parent.opener.$('#newcomment').html( |
22 |
"<h5>" + _("Your comment (preview, pending approval)") + "<\/h5>" + |
22 |
"<h5>" + _("Your comment (preview, pending approval)") + "<\/h5>" + |
23 |
"<p>"+comment+"<\/p>" + |
23 |
"<p>"+comment+"<\/p>" + |
24 |
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber |uri%]\');\">Edit<\/a><\/p>" |
24 |
"<a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber |uri%]\');\">"+_("Edit")+"<\/a><\/p>" |
25 |
); |
25 |
); |
26 |
parent.opener.$("#addcomment").prev("p").remove(); |
26 |
parent.opener.$("#addcomment").prev("p").remove(); |
27 |
parent.opener.$("#addcomment").remove(); |
27 |
parent.opener.$("#addcomment").remove(); |
Lines 41-47
Link Here
|
41 |
window.close(); |
41 |
window.close(); |
42 |
[% END %] |
42 |
[% END %] |
43 |
[% END %] |
43 |
[% END %] |
44 |
// $('#reviewf').submit(function() {}); |
|
|
45 |
}); |
44 |
}); |
46 |
//]]> |
45 |
//]]> |
47 |
</script> |
46 |
</script> |
Lines 67-72
Link Here
|
67 |
[% END %] |
66 |
[% END %] |
68 |
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post"> |
67 |
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post"> |
69 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html%]" /> |
68 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html%]" /> |
|
|
69 |
[% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html%]" />[% END %] |
70 |
<fieldset class="brief"> |
70 |
<fieldset class="brief"> |
71 |
<legend>Comments on <i>[% title |html %] [% subtitle %]</i>[% IF ( author ) %]by [% author %][% END %]</legend> |
71 |
<legend>Comments on <i>[% title |html %] [% subtitle %]</i>[% IF ( author ) %]by [% author %][% END %]</legend> |
72 |
<ol><li><textarea id="review" name="review" cols="60" rows="8">[% review %]</textarea></li></ol> |
72 |
<ol><li><textarea id="review" name="review" cols="60" rows="8">[% review %]</textarea></li></ol> |
73 |
- |
|
|