Bug 27998: Replace obsolete title-string sorting: Serials templates
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / mana / mana-report-search-result.inc
1 [% USE Asset %]
2 [% USE KohaDates %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% USE raw %]
7
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Reports &rsaquo; Mana Knowledge Base reports search</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% Asset.css("css/reports.css") | $raw %]
12 </head>
13
14 <body id="rep_mana_search" class="rep">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'circ-search.inc' %]
17
18 <div id="breadcrumbs">
19     <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20     &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
21     &rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
22     &rsaquo; Mana Knowledge Base report search results
23 </div>
24
25 <div class="main container-fluid">
26     <div class="row">
27         <div class="col-sm-10 col-sm-push-2">
28             <main>
29                 <h2>Mana Knowledge Base report search results</h2>
30
31                 <div id="mana_results">
32                     [% IF statuscode == "200" AND reports %]
33
34                         <table id="mana_results_datatable">
35                             <thead>
36                                 <tr>
37                                     <th>Report name</th>
38                                     <th class="anti-the">Notes</th>
39                                     <th>Type</th>
40                                     <th title="Number of libraries using this pattern"># of users</th>
41                                     <th title="Last time a library used this pattern">Last import</th>
42                                     <th> Comments </th>
43                                     [% UNLESS search_only %]
44                                         <th class="NoSort noExport">Actions</th>
45                                     [% END %]
46                                 </tr>
47                             </thead>
48                             <tbody>
49                                 [% FOREACH report IN reports %]
50                                     [% UNLESS report.cannotdisplay %]
51                                         [% IF report.nbofcomment > highWarned %]
52                                             <tr id="row[% report.id | html %]" class="high-warned-row">
53                                         [% ELSIF report.nbofcomment > warned %]
54                                             <tr id="row[% report.id | html %]" class="warned-row">
55                                         [% ELSIF report.nbofcomment > lowWarned %]
56                                             <tr id="row[% report.id | html %]" class="highlighted-row">
57                                         [% ELSE %]
58                                             <tr id="row[% report.id | html %]">
59                                         [% END %]
60                                         <td>
61                                             <input type="hidden" class="rowid" value="[% report.id | $raw %]" />
62                                             [% IF ( report.report_name ) %]
63                                                 [% report.report_name | html %]
64                                             [% END %]
65                                         </td>
66                                         <td title="[% report.savedsql | html %]">
67                                             [% IF report.notes.length > 200 %]
68                                                 <div>
69                                                     [% report.notes.substr(0,200) | html %]... <a href="#" class="btn btn-link btn-sm showbutton"><i class="fa fa-plus-square-o"></i> Show more</a>
70                                                 </div>
71                                                 <div style="display:none">
72                                                     [% report.notes | html %]
73                                                     <a href="#" class="btn btn-link btn-sm hidebutton"><i class="fa fa-minus-square-o"></i> Show less</a>
74                                                 </div>
75                                             [% ELSE %]
76                                                 [% report.notes | html %]
77                                             [% END %]
78                                         </td>
79                                         <td> [% report.type | html %] </td>
80                                         <td>
81                                             [% IF ( report.nbofusers ) %]
82                                                 [% report.nbofusers | html %]
83                                             [% END %]
84                                         </td>
85                                         <td data-order="[% report.lastimport | html %]">
86                                             [% report.lastimport | $KohaDates %]
87                                         </td>
88                                         <td>
89                                             [% FOREACH comment IN report.comments %]
90                                                 [% comment.message | html %] ([% comment.nb | html %])<br>
91                                             [% END %]
92                                         </td>
93
94                                         [% UNLESS search_only %]
95                                             <td>
96                                                 <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>
97                                             </td>
98                                         [% END %]
99                                       </tr>
100                                     [% END %]
101                                 [% END %]
102                             </tbody>
103                         </table>
104                     [% ELSE %]
105                         <h4>
106                             [% IF ( msg ) %]
107                                 [% msg | html %] (Statuscode: [% statuscode | html %])
108                             [% ELSE %]
109                                 No results found
110                             [% END %]
111                         </h4>
112                     [% END %]
113                 </div>
114
115             </main>
116         </div> <!-- /.col-sm-10.col-sm-push-2 -->
117
118         <div class="col-sm-2 col-sm-pull-10">
119             <aside>
120                 [% INCLUDE 'guided-reports-view.inc' %]
121             </aside>
122         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
123      </div> <!-- /.row -->
124
125 [% INCLUDE 'intranet-bottom.inc' %]