3 [% USE AuthorisedValues %]
6 [% INCLUDE 'mana.inc' %]
7 <script type="text/javascript">
9 $(document).ready(function() {
10 $(document).on('click', 'button.mana-use', function() {
11 id = $(this).attr('id');
12 mana_use(id.substr(9));
18 [% IF statuscode == "200" %]
19 <table id="mana_results_datatable" width=100%>
23 <th class="anti-the" width=50%>Title</th>
24 <th> Published by </th>
26 <th>Numbering pattern</th>
27 <th title="number of libraries using this pattern"># of users</th>
28 <th class="title-string" title="last time a library used this pattern">Last import</th>
30 [% UNLESS search_only %]
31 <th class="NoSort">Actions</th>
36 [% FOREACH subscription IN subscriptions %]
37 [% UNLESS subscription.cannotdisplay %]
38 [% IF subscription.nbofcomment > highWarned %]
39 <tr id="row[% subscription.subscriptionid | $raw %]" class = "high-warned-row" title="this resource has been reported more than [% highWarned | html %] times, take care!">
40 [% ELSIF subscription.nbofcomment > warned %]
41 <tr id="row[% subscription.subscriptionid | $raw %]" class = "warned-row" title="this resource has been reported more than [% warned | html %] times, take care!">
42 [% ELSIF subscription.nbofcomment > lowWarned %]
43 <tr id="row[% subscription.subscriptionid | $raw %]" class = "highlighted-row" title="this resource has been reported more than [% lowWarned | html %] times, take care!">
45 <input hidden class="rowid" value="[% subscription.id | $raw %]">
46 <td>[% IF ( subscription.issn ) %][% subscription.issn | html %][% END %]</td>
47 <td>[% subscription.title | html %]</a></td>
48 <td>[% IF ( subscription.publishercode ) %][% subscription.publishercode | html %][% END %]</td>
49 <td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription | html %][% END %]</td>
50 <td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod | html %][% END %]</td>
51 <td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers | $raw %][% END %]</td>
52 <td><span title="[% subscription.lastimport | $KohaDates %]">[% subscription.lastimport | $KohaDates %]</span></td>
53 <td>[% FOREACH comment IN subscription.comments %][% comment.message | html %] ([% comment.nb | $raw %]) <br>[% END %]</td>
55 [% UNLESS search_only %]
57 <button class="mana-use" id="mana-use-[% subscription.id | $raw %]"><i class="fa fa-inbox"></i> Use</button>
58 <select class="mana-actions" id="mana-actions-[% subscription.id | $raw %]">
59 <option selected disabled>Report mistake</option>
60 [% FOREACH comment IN subscription.comments %]
61 <option value="[% comment.id | $raw %]"> [% comment.message | html %] ([% comment.nb | $raw %])</option>
63 <option>other</option>
65 <button hidden class="actionreport2" hidden> Cancel</button>
74 <h4>Mana search fails with the code: [% statuscode | html %] </h4>
77 <div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;">
78 <div class="modal-dialog modal-lg" style="width: 30%">
79 <div class="modal-content" style="">
80 <div class="modal-header">
81 <button type="button" id="commentCloseButton" class="closebtn" aria-hidden="true">×</button>
82 <h3 id="mana_submit_comment"> Please enter a new commment (max 35 caracters)</h3>
84 <div class="modal-body">
86 <input hidden id="selected_id" value="">
87 <input type="text" id="manamsg"> Comment:
89 <button id="CommentButton"> Comment </button>