|
Lines 27-130
Link Here
|
| 27 |
› Mana Knowledge Base report search results |
27 |
› Mana Knowledge Base report search results |
| 28 |
</div> |
28 |
</div> |
| 29 |
|
29 |
|
| 30 |
<div class="main container-fluid"> |
30 |
[% WRAPPER 'main-container.inc' aside='guided-reports-view' %] |
| 31 |
<div class="row"> |
31 |
<h2>Mana Knowledge Base report search results</h2> |
| 32 |
<div class="col-md-10 order-md-2 order-sm-1"> |
|
|
| 33 |
<main> |
| 34 |
<h2>Mana Knowledge Base report search results</h2> |
| 35 |
|
32 |
|
| 36 |
<div id="mana_results"> |
33 |
<div id="mana_results"> |
| 37 |
[% IF statuscode == "200" AND reports %] |
34 |
[% IF statuscode == "200" AND reports %] |
| 38 |
<table id="mana_results_datatable"> |
35 |
<table id="mana_results_datatable"> |
| 39 |
<thead> |
36 |
<thead> |
| 40 |
<tr> |
37 |
<tr> |
| 41 |
<th>Report name</th> |
38 |
<th>Report name</th> |
| 42 |
<th class="anti-the">Notes</th> |
39 |
<th class="anti-the">Notes</th> |
| 43 |
<th>Type</th> |
40 |
<th>Type</th> |
| 44 |
<th title="Number of libraries using this pattern"># of users</th> |
41 |
<th title="Number of libraries using this pattern"># of users</th> |
| 45 |
<th title="Last time a library used this pattern">Last import</th> |
42 |
<th title="Last time a library used this pattern">Last import</th> |
| 46 |
<th> Comments </th> |
43 |
<th> Comments </th> |
| 47 |
[% UNLESS search_only %] |
44 |
[% UNLESS search_only %] |
| 48 |
<th class="no-sort no-export">Actions</th> |
45 |
<th class="no-sort no-export">Actions</th> |
|
|
46 |
[% END %] |
| 47 |
</tr> |
| 48 |
</thead> |
| 49 |
<tbody> |
| 50 |
[% FOREACH report IN reports %] |
| 51 |
[% UNLESS report.cannotdisplay %] |
| 52 |
[% IF report.nbofcomment > highWarned %] |
| 53 |
[% SET tr_class = 'high-warned-row' %] |
| 54 |
[% ELSIF report.nbofcomment > warned %] |
| 55 |
[% SET tr_class = 'warned-row' %] |
| 56 |
[% ELSIF report.nbofcomment > lowWarned %] |
| 57 |
[% SET tr_class = 'highlighted-row' %] |
| 58 |
[% ELSE %] |
| 59 |
[% SET tr_class = '' %] |
| 60 |
[% END %] |
| 61 |
<tr id="[% report.id | html %]" class="[% tr_class | html %]"> |
| 62 |
<td> |
| 63 |
<input type="hidden" class="rowid" value="[% report.id | $raw %]" /> |
| 64 |
[% IF ( report.report_name ) %] |
| 65 |
[% report.report_name | html %] |
| 49 |
[% END %] |
66 |
[% END %] |
| 50 |
</tr> |
67 |
</td> |
| 51 |
</thead> |
68 |
<td title="[% report.savedsql | html %]"> |
| 52 |
<tbody> |
69 |
[% IF report.notes.length > 200 %] |
| 53 |
[% FOREACH report IN reports %] |
70 |
<div> |
| 54 |
[% UNLESS report.cannotdisplay %] |
71 |
[% report.notes.substr(0,200) | html %]... <a href="#" class="btn btn-link btn-sm showbutton"><i class="fa-solid fa-square-plus"></i> Show more</a> |
| 55 |
[% IF report.nbofcomment > highWarned %] |
72 |
</div> |
| 56 |
[% SET tr_class = 'high-warned-row' %] |
73 |
<div style="display:none"> |
| 57 |
[% ELSIF report.nbofcomment > warned %] |
74 |
[% report.notes | html %] |
| 58 |
[% SET tr_class = 'warned-row' %] |
75 |
<a href="#" class="btn btn-link btn-sm hidebutton"><i class="fa-solid fa-square-minus"></i> Show less</a> |
| 59 |
[% ELSIF report.nbofcomment > lowWarned %] |
76 |
</div> |
| 60 |
[% SET tr_class = 'highlighted-row' %] |
77 |
[% ELSE %] |
| 61 |
[% ELSE %] |
78 |
[% report.notes | html %] |
| 62 |
[% SET tr_class = '' %] |
|
|
| 63 |
[% END %] |
| 64 |
<tr id="[% report.id | html %]" class="[% tr_class | html %]"> |
| 65 |
<td> |
| 66 |
<input type="hidden" class="rowid" value="[% report.id | $raw %]" /> |
| 67 |
[% IF ( report.report_name ) %] |
| 68 |
[% report.report_name | html %] |
| 69 |
[% END %] |
| 70 |
</td> |
| 71 |
<td title="[% report.savedsql | html %]"> |
| 72 |
[% IF report.notes.length > 200 %] |
| 73 |
<div> |
| 74 |
[% report.notes.substr(0,200) | html %]... <a href="#" class="btn btn-link btn-sm showbutton"><i class="fa-solid fa-square-plus"></i> Show more</a> |
| 75 |
</div> |
| 76 |
<div style="display:none"> |
| 77 |
[% report.notes | html %] |
| 78 |
<a href="#" class="btn btn-link btn-sm hidebutton"><i class="fa-solid fa-square-minus"></i> Show less</a> |
| 79 |
</div> |
| 80 |
[% ELSE %] |
| 81 |
[% report.notes | html %] |
| 82 |
[% END %] |
| 83 |
</td> |
| 84 |
<td> [% report.type | html %] </td> |
| 85 |
<td> |
| 86 |
[% IF ( report.nbofusers ) %] |
| 87 |
[% report.nbofusers | html %] |
| 88 |
[% END %] |
| 89 |
</td> |
| 90 |
<td data-order="[% report.lastimport | html %]"> [% report.lastimport | $KohaDates %] </td> |
| 91 |
<td> |
| 92 |
[% FOREACH comment IN report.comments %] |
| 93 |
[% comment.message | html %] |
| 94 |
([% comment.nb | html %])<br /> |
| 95 |
[% END %] |
| 96 |
</td> |
| 97 |
|
| 98 |
[% UNLESS search_only %] |
| 99 |
<td> |
| 100 |
<button type="button" class="btn btn-default btn-xs mana-use" id="mana-use-[% report.id | html %]" data-report_id="[% report.id | html %]"><i class="fa fa-download"></i> Import</button> |
| 101 |
</td> |
| 102 |
[% END %] |
| 103 |
</tr> |
| 104 |
[% END %] |
79 |
[% END %] |
|
|
80 |
</td> |
| 81 |
<td> [% report.type | html %] </td> |
| 82 |
<td> |
| 83 |
[% IF ( report.nbofusers ) %] |
| 84 |
[% report.nbofusers | html %] |
| 85 |
[% END %] |
| 86 |
</td> |
| 87 |
<td data-order="[% report.lastimport | html %]"> [% report.lastimport | $KohaDates %] </td> |
| 88 |
<td> |
| 89 |
[% FOREACH comment IN report.comments %] |
| 90 |
[% comment.message | html %] |
| 91 |
([% comment.nb | html %])<br /> |
| 92 |
[% END %] |
| 93 |
</td> |
| 94 |
|
| 95 |
[% UNLESS search_only %] |
| 96 |
<td> |
| 97 |
<button type="button" class="btn btn-default btn-xs mana-use" id="mana-use-[% report.id | html %]" data-report_id="[% report.id | html %]"><i class="fa fa-download"></i> Import</button> |
| 98 |
</td> |
| 105 |
[% END %] |
99 |
[% END %] |
| 106 |
</tbody> |
100 |
</tr> |
| 107 |
</table> |
101 |
[% END %] |
| 108 |
[% ELSE %] |
|
|
| 109 |
<h4> |
| 110 |
[% IF ( msg ) %] |
| 111 |
[% msg | html %] <span>(Status code: [% statuscode | html %])</span> |
| 112 |
[% ELSE %] |
| 113 |
<span>No results found</span> |
| 114 |
[% END %] |
| 115 |
</h4> |
| 116 |
[% END %] |
102 |
[% END %] |
| 117 |
</div> |
103 |
</tbody> |
| 118 |
</main> |
104 |
</table> |
| 119 |
</div> |
105 |
[% ELSE %] |
| 120 |
<!-- /.col-md-10.order-md-2 --> |
106 |
<h4> |
| 121 |
|
107 |
[% IF ( msg ) %] |
| 122 |
<div class="col-md-2 order-sm-2 order-md-1"> |
108 |
[% msg | html %] <span>(Status code: [% statuscode | html %])</span> |
| 123 |
<aside> [% INCLUDE 'guided-reports-view.inc' %] </aside> |
109 |
[% ELSE %] |
| 124 |
</div> |
110 |
<span>No results found</span> |
| 125 |
<!-- /.col-md-2.order-md-1 --> |
111 |
[% END %] |
|
|
112 |
</h4> |
| 113 |
[% END %] |
| 126 |
</div> |
114 |
</div> |
| 127 |
<!-- /.row --> |
115 |
[% END %] |
| 128 |
|
116 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 129 |
[% INCLUDE 'intranet-bottom.inc' %] |
|
|
| 130 |
</div> |
| 131 |
- |
|
|