Lines 5-67
Link Here
|
5 |
|
5 |
|
6 |
|
6 |
|
7 |
|
7 |
|
8 |
<table id="mana_results_datatable" width=100%> |
8 |
[% IF statuscode == "200" %] |
9 |
<thead> |
9 |
<table id="mana_results_datatable" width=100%> |
10 |
<tr> |
10 |
<thead> |
11 |
<th>ISSN</th> |
11 |
<tr> |
12 |
<th class="anti-the" width=50%>Title</th> |
12 |
<th>ISSN</th> |
13 |
<th> Published by </th> |
13 |
<th class="anti-the" width=50%>Title</th> |
14 |
<th>Frequency</th> |
14 |
<th> Published by </th> |
15 |
<th>Numbering pattern</th> |
15 |
<th>Frequency</th> |
16 |
<th title="number of libraries using this pattern"># of users</th> |
16 |
<th>Numbering pattern</th> |
17 |
<th class="title-string" title="last time a library used this pattern">Last import</th> |
17 |
<th title="number of libraries using this pattern"># of users</th> |
18 |
<th> Comments </th> |
18 |
<th class="title-string" title="last time a library used this pattern">Last import</th> |
19 |
[% UNLESS search_only %] |
19 |
<th> Comments </th> |
20 |
<th class="NoSort">Actions</th> |
20 |
[% UNLESS search_only %] |
21 |
[% END %] |
21 |
<th class="NoSort">Actions</th> |
22 |
</tr> |
22 |
[% END %] |
23 |
</thead> |
23 |
</tr> |
24 |
<tbody> |
24 |
</thead> |
25 |
[% FOREACH subscription IN subscriptions %] |
25 |
<tbody> |
26 |
[% UNLESS subscription.cannotdisplay %] |
26 |
[% FOREACH subscription IN subscriptions %] |
27 |
<tr id="row[% subscription.subscriptionid %]" |
27 |
[% UNLESS subscription.cannotdisplay %] |
28 |
[% IF subscription.nbofcomment > highWarned %] |
28 |
[% IF subscription.nbofcomment > highWarned %] |
29 |
class = "high-warned-row" title="this resource has been reported more than [% highWarned %] times, take care!" |
29 |
<tr id="row[% subscription.subscriptionid %]" class = "high-warned-row" title="this resource has been reported more than [% highWarned %] times, take care!"> |
30 |
[% ELSIF subscription.nbofcomment > warned %] |
30 |
[% ELSIF subscription.nbofcomment > warned %] |
31 |
class = "warned-row" title="this resource has been reported more than [% warned %] times, take care!" |
31 |
<tr id="row[% subscription.subscriptionid %]" class = "warned-row" title="this resource has been reported more than [% warned %] times, take care!"> |
32 |
[% ELSIF subscription.nbofcomment > lowWarned %] |
32 |
[% ELSIF subscription.nbofcomment > lowWarned %] |
33 |
class = "highlighted-row" title="this resource has been reported more than [% lowWarned %] times, take care!" |
33 |
<tr id="row[% subscription.subscriptionid %]" class = "highlighted-row" title="this resource has been reported more than [% lowWarned %] times, take care!"> |
34 |
[% END %] |
|
|
35 |
> |
36 |
<input hidden class="rowid" value="[% subscription.id %]"> |
37 |
<td>[% IF ( subscription.issn ) %][% subscription.issn %][% END %]</td> |
38 |
<td>[% subscription.title %]</a></td> |
39 |
<td>[% IF ( subscription.publishercode ) %][% subscription.publishercode %][% END %]</td> |
40 |
<td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %]</td> |
41 |
<td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %]</td> |
42 |
<td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %]</td> |
43 |
<td><span title="[% subscription.lastimport %]">[% subscription.lastimport | $KohaDates %]</span></td> |
44 |
<td>[% FOREACH comment IN subscription.comments %][% comment.message %] ([% comment.nb %]) <br>[% END %]</td> |
45 |
|
46 |
[% UNLESS search_only %] |
47 |
<td> |
48 |
<button onclick="mana_use([% subscription.id %])"> <i class="fa fa-inbox"></i> Use</button> |
49 |
<input hidden type="text" id="selectedcomment"> |
50 |
<select> |
51 |
<option selected disabled>Report mistake</option> |
52 |
[% FOREACH comment IN subscription.comments %] |
53 |
<option class="actionreport1" value="[% comment.id %]" onclick="mana_increment('[% comment.id %]', 'resource_comment', 'nb')"> [% comment.message %] ([% comment.nb %]) |
54 |
[% END %] |
55 |
<option data-toggle="modal" onclick="($('#selected_id').val($('.rowid').val()))" data-target="#comment_box"> other |
56 |
</select> |
57 |
<button hidden class="actionreport2" hidden> Cancel</button> |
58 |
</td> |
59 |
[% END %] |
34 |
[% END %] |
60 |
</tr> |
35 |
<input hidden class="rowid" value="[% subscription.id %]"> |
|
|
36 |
<td>[% IF ( subscription.issn ) %][% subscription.issn %][% END %]</td> |
37 |
<td>[% subscription.title %]</a></td> |
38 |
<td>[% IF ( subscription.publishercode ) %][% subscription.publishercode %][% END %]</td> |
39 |
<td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %]</td> |
40 |
<td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %]</td> |
41 |
<td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %]</td> |
42 |
<td><span title="[% subscription.lastimport %]">[% subscription.lastimport | $KohaDates %]</span></td> |
43 |
<td>[% FOREACH comment IN subscription.comments %][% comment.message %] ([% comment.nb %]) <br>[% END %]</td> |
44 |
|
45 |
[% UNLESS search_only %] |
46 |
<td> |
47 |
<button onclick="mana_use([% subscription.id %])"> <i class="fa fa-inbox"></i> Use</button> |
48 |
<input hidden type="text" id="selectedcomment"> |
49 |
<select> |
50 |
<option selected disabled>Report mistake</option> |
51 |
[% FOREACH comment IN subscription.comments %] |
52 |
<option class="actionreport1" value="[% comment.id %]" onclick="mana_increment('[% comment.id %]', 'resource_comment', 'nb')"> [% comment.message %] ([% comment.nb %]) |
53 |
[% END %] |
54 |
<option data-toggle="modal" onclick="($('#selected_id').val($('.rowid').val()))" data-target="#comment_box"> other |
55 |
</select> |
56 |
<button hidden class="actionreport2" hidden> Cancel</button> |
57 |
</td> |
58 |
[% END %] |
59 |
</tr> |
60 |
[% END %] |
61 |
[% END %] |
61 |
[% END %] |
62 |
[% END %] |
62 |
</tbody> |
63 |
</tbody> |
63 |
</table> |
64 |
</table> |
64 |
[% ELSE %] |
|
|
65 |
<h4> [% msg %] </h4> |
66 |
[% END %] |
65 |
|
67 |
|
66 |
<div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;"> |
68 |
<div id="comment_box" class="modal" tabindex="-1" role="dialog" aria-labelledby="mana_search_result_label" style="display: none;"> |
67 |
<div class="modal-dialog modal-lg" style="width: 30%"> |
69 |
<div class="modal-dialog modal-lg" style="width: 30%"> |