View | Details | Raw Unified | Return to bug 25340
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt (-7 / +4 lines)
Lines 1-8 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Comments on [% title | html %]</title>
2
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Comments on [% INCLUDE 'biblio-title-head.inc' %]</title>
3
<style>
4
  #custom-doc { width:37.08em;*width:36.16em;min-width:485px; margin:1em auto; text-align:left; }
5
</style>
6
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
7
[% BLOCK cssinclude %][% END %]
4
[% BLOCK cssinclude %][% END %]
8
</head>
5
</head>
Lines 42-51 Link Here
42
                            </div>
39
                            </div>
43
                        [% END # / ERRORs %]
40
                        [% END # / ERRORs %]
44
41
45
                        <h1>Comments on <i>[% INCLUDE 'biblio-title.inc' biblio=Stash.stash() %]</i></h1>
42
                        <h1>Comments on <i>[% INCLUDE 'biblio-title.inc' %]</i></h1>
46
                        [% IF ( author ) %]<h3>[% author | html %]</h3>[% END %]
43
                        [% IF ( biblio.author ) %]<h3>[% biblio.author | html %]</h3>[% END %]
47
                        <form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
44
                        <form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
48
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
45
                            <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
49
                            [% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
46
                            [% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
50
                            <fieldset>
47
                            <fieldset>
51
                                <textarea id="review" name="review" cols="60" rows="8">[% review | html %]</textarea>
48
                                <textarea id="review" name="review" cols="60" rows="8">[% review | html %]</textarea>
(-)a/opac/opac-review.pl (-3 / +1 lines)
Lines 97-107 if( !@errors && defined $review ) { Link Here
97
$review = $clean;
97
$review = $clean;
98
$review ||= $savedreview->review if $savedreview;
98
$review ||= $savedreview->review if $savedreview;
99
$template->param(
99
$template->param(
100
    'biblionumber'   => $biblionumber,
101
    'borrowernumber' => $borrowernumber,
100
    'borrowernumber' => $borrowernumber,
102
    'review'         => $review,
101
    'review'         => $review,
103
    'reviewid'       => $reviewid || 0,
102
    'reviewid'       => $reviewid || 0,
104
    'title'          => $biblio->title,
103
    'biblio'         => $biblio,
105
);
104
);
106
105
107
output_html_with_http_headers $query, $cookie, $template->output;
106
output_html_with_http_headers $query, $cookie, $template->output;
108
- 

Return to bug 25340