Bug 11529: Add templates for biblio title display. Unify display.
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-review.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Comments on [% title | html %]</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' %]
7 [% BLOCK cssinclude %][% END %]
8 </head>
9 [% INCLUDE 'bodytag.inc' bodyid='comment' bodyclass='popup' %]
10     <div class="main">
11         <div class="container-fluid">
12             <div class="row-fluid">
13                 <div class="span12">
14                     <div id="userreview">
15                         [% IF ( cgi_debug ) %]
16                             <div class="debug">CGI debug is on.</div>
17                         [% END %]
18                         [% IF ( ERRORS ) %]
19                             <div class="alert">
20                                 [% FOREACH ERROR IN ERRORS %]
21                                     [% IF ( ERROR.nobiblio ) %]
22                                         <p>Error: we cannot find this bibliographic record.</p>
23                                     [% END %]
24                                     [% IF ( ERROR.unauthorized ) %]
25                                         <p>Sorry, only the creator of this comment is allowed to change it.</p>
26                                     [% END %]
27                                     [% IF ( ERROR.scrubbed ) %]
28                                         <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>
29                                     [% END %]
30
31                                     [% IF ( ERROR.scrubbed_all ) %]
32                                         <p>Error!  Your comment was entirely illegal markup code.  It has NOT been added.</p>
33                                     [% END %]
34
35                                     [% IF ( ERROR.empty ) %]
36                                         <p>Error!  You cannot add an empty comment.  Please add content or cancel.</p>
37                                     [% END %]
38                                 [% END # / FOREACH ERROR %]
39                                 [% IF ( WINDOW_CLOSE ) %]
40                                     Note: this window will close automatically in 5 seconds.
41                                 [% END %]
42                             </div>
43                         [% END # / ERRORs %]
44
45                         <h1>Comments on <i>[% INCLUDE 'biblio-title.inc' biblio=Stash.stash() %]</i></h1>
46                         [% IF ( author ) %]<h3>[% author | html %]</h3>[% END %]
47                         <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 %]" />
49                             [% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
50                             <fieldset>
51                                 <textarea id="review" name="review" cols="60" rows="8">[% review | html %]</textarea>
52                             </fieldset>
53                             <p>Note: Your comment must be approved by a librarian. </p>
54                             <fieldset class="action">
55                                 <input type="submit" class="btn" value="Submit and close this window" />
56                                 <a class="cancel close" href="#">Cancel</a>
57                             </fieldset>
58                         </form>
59                     </div> <!-- / #usersendshelfform -->
60                 </div> <!-- / .span12 -->
61             </div> <!-- / .row-fluid -->
62         </div> <!-- / .container-fluid -->
63     </div> <!-- / .main -->
64
65 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
66 [% BLOCK jsinclude %]
67 <script>
68     //<![CDATA[
69          $(document).ready(function() {
70             [% IF WINDOW_CLOSE %]
71                 opener.location.reload();
72                 window.close();
73             [% END %]
74         });
75     //]]>
76 </script>
77 [% END %]