Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt
Wainui Witika-Park 9db6630c61 Bug 27610: Changed pages of OPAC to have a <h1>
Changed each of the pages in the OPAC to have one <h1> tag showing that describes the page, rather than the <h1> describing the logo.

The hierarchy of heading tags may be broken in many pages, but this will be dealt with in a follow up patch or bug.

To test:
1) Go to the OPAC
2) Apply patch
3) Go to each of the pages and check that they have an obvious and
descriptive heading
4) Ensure that the heading in the page is <h1>

Sponsored by: Catalyst IT
Signed-off-by: Hayley Pelham <hayleypelham@catalyst.net.nz>
Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-01 18:51:38 +02:00

75 lines
4 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Comments on [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
[% 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">
<div class="col order-first order-md-first order-lg-2">
<div id="userreview" class="maincontent">
<h1>Reviews</h1>
[% IF ( cgi_debug ) %]
<div class="debug">CGI debug is on.</div>
[% END %]
[% IF ( ERRORS ) %]
<div class="alert alert-warning">
[% FOREACH ERROR IN ERRORS %]
[% IF ( ERROR.nobiblio ) %]
<p>Error: we cannot find this bibliographic record.</p>
[% END %]
[% IF ( ERROR.unauthorized ) %]
<p>Sorry, only the creator of this comment is allowed to change it.</p>
[% END %]
[% 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 %]
<h2>Comments on <em>[% INCLUDE 'biblio-title.inc' %]</em></h2>
[% IF ( biblio.author ) %]<h3>[% biblio.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="[% biblio.biblionumber | html %]" />
[% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
<fieldset>
<textarea id="review" name="review" cols="60" rows="8">[% review | html %]</textarea>
</fieldset>
<p>Note: Your comment must be approved by a librarian. </p>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Submit and close this window" />
<a class="cancel close" href="#">Cancel</a>
</fieldset>
</form>
</div> <!-- / #usersendshelfform -->
</div> <!-- / .span12 -->
</div> <!-- / .row -->
</div> <!-- / .container-fluid -->
</div> <!-- / .main -->
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
[% BLOCK jsinclude %]
<script>
$(document).ready(function() {
[% IF WINDOW_CLOSE %]
opener.location.reload();
window.close();
[% END %]
});
</script>
[% END %]