Koha/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc
Josef Moravec 56cae15990 Bug 22452: Fix typos in add mana comment modals
There are typos in modal where you can add a comment to mana:

'caracters' should be 'characters'
'commment' should be 'comment'

Test plan:
1) Create subscription from Mana
2) On subscription detail page: report mistake > other a modal is shown
--> without patch it reads 'Please enter a new commment (max 35 caracters)'
--> with patch it reads 'Please enter a new comment (max 35 characters)'
3) The same in mana search resultss and in reports

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-11 10:50:57 +00:00

93 lines
4.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[% USE KohaDates %]
[% USE Koha %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE raw %]
[% INCLUDE 'mana.inc' %]
<script>
//<![CDATA[
$(document).ready(function() {
$(document).on('click', 'button.mana-use', function() {
id = $(this).attr('id');
mana_use(id.substr(9));
});
});
//]]>
</script>
[% IF statuscode == "200" %]
<table id="mana_results_datatable" width=100%>
<thead>
<tr>
<th>ISSN</th>
<th class="anti-the" width=50%>Title</th>
<th> Published by </th>
<th>Frequency</th>
<th>Numbering pattern</th>
<th title="number of libraries using this pattern"># of users</th>
<th class="title-string" title="last time a library used this pattern">Last import</th>
<th> Comments </th>
[% UNLESS search_only %]
<th class="NoSort">Actions</th>
[% END %]
</tr>
</thead>
<tbody>
[% FOREACH subscription IN subscriptions %]
[% UNLESS subscription.cannotdisplay %]
[% IF subscription.nbofcomment > highWarned %]
<tr id="row[% subscription.subscriptionid | $raw %]" class = "high-warned-row" title="this resource has been reported more than [% highWarned | html %] times, take care!">
[% ELSIF subscription.nbofcomment > warned %]
<tr id="row[% subscription.subscriptionid | $raw %]" class = "warned-row" title="this resource has been reported more than [% warned | html %] times, take care!">
[% ELSIF subscription.nbofcomment > lowWarned %]
<tr id="row[% subscription.subscriptionid | $raw %]" class = "highlighted-row" title="this resource has been reported more than [% lowWarned | html %] times, take care!">
[% END %]
<input hidden class="rowid" value="[% subscription.id | $raw %]">
<td>[% IF ( subscription.issn ) %][% subscription.issn | html %][% END %]</td>
<td>[% subscription.title | html %]</a></td>
<td>[% IF ( subscription.publishercode ) %][% subscription.publishercode | html %][% END %]</td>
<td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription | html %][% END %]</td>
<td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod | html %][% END %]</td>
<td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers | $raw %][% END %]</td>
<td><span title="[% subscription.lastimport | $KohaDates %]">[% subscription.lastimport | $KohaDates %]</span></td>
<td>[% FOREACH comment IN subscription.comments %][% comment.message | html %] ([% comment.nb | $raw %]) <br>[% END %]</td>
[% UNLESS search_only %]
<td>
<button class="mana-use" id="mana-use-[% subscription.id | $raw %]"><i class="fa fa-inbox"></i> Use</button>
<select class="mana-actions" id="mana-actions-[% subscription.id | $raw %]">
<option selected disabled>Report mistake</option>
[% FOREACH comment IN subscription.comments %]
<option value="[% comment.id | $raw %]"> [% comment.message | html %] ([% comment.nb | $raw %])</option>
[% END %]
<option>other</option>
</select>
<button hidden class="actionreport2" hidden> Cancel</button>
</td>
[% END %]
</tr>
[% END %]
[% END %]
</tbody>
</table>
[% ELSE %]
<h4>Mana search fails with the code: [% statuscode | html %] </h4>
[% END %]
<div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;">
<div class="modal-dialog modal-lg" style="width: 30%">
<div class="modal-content" style="">
<div class="modal-header">
<button type="button" id="commentCloseButton" class="closebtn" aria-hidden="true">×</button>
<h3 id="mana_submit_comment"> Please enter a new comment (max 35 characters)</h3>
</div>
<div class="modal-body">
<form>
<input hidden id="selected_id" value="">
<input type="text" id="manamsg"> Comment:
</form>
<button id="CommentButton"> Comment </button>
</div>
</div>
</div>
</div>