Lines 50-56
Link Here
|
50 |
.cm-columnPlaceholder { |
50 |
.cm-columnPlaceholder { |
51 |
color: #BF2D5D; |
51 |
color: #BF2D5D; |
52 |
} |
52 |
} |
53 |
#mana_search_errortext { font-family: monospace; font-weight: bold; } |
53 |
#mana_search_errortext { |
|
|
54 |
font-family: monospace; font-weight: bold; |
55 |
} |
56 |
.data-plain { |
57 |
display: none; |
58 |
} |
54 |
</style> |
59 |
</style> |
55 |
[% Asset.css("css/reports.css") | $raw %] |
60 |
[% Asset.css("css/reports.css") | $raw %] |
56 |
[% Asset.css("lib/d3c3/c3.min.css") | $raw %] |
61 |
[% Asset.css("lib/d3c3/c3.min.css") | $raw %] |
Lines 1089-1094
Link Here
|
1089 |
</ul> |
1094 |
</ul> |
1090 |
</div> |
1095 |
</div> |
1091 |
[% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %] |
1096 |
[% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %] |
|
|
1097 |
|
1098 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] |
1099 |
<a href="#" class="btn btn-link" id="toggle_auto_links"> |
1100 |
<i class="fa fa-eye autolink" style="display:none"></i> |
1101 |
<i class="fa fa-eye-slash autolink"></i> |
1102 |
<span class="autolink" style="display:none">Show data menus</span> |
1103 |
<span class="autolink">Hide data menus</span> |
1104 |
</a> |
1105 |
[% END %] |
1092 |
</div> <!-- /#toolbar.btn-toolbar --> |
1106 |
</div> <!-- /#toolbar.btn-toolbar --> |
1093 |
[% END # /IF batch operations || ( unlimited_total > 10 && limit <= 1000 ) %] |
1107 |
[% END # /IF batch operations || ( unlimited_total > 10 && limit <= 1000 ) %] |
1094 |
|
1108 |
|
Lines 1100-1118
Link Here
|
1100 |
[% END # IF ( execute ) %] |
1114 |
[% END # IF ( execute ) %] |
1101 |
|
1115 |
|
1102 |
[% UNLESS ( errors ) %] |
1116 |
[% UNLESS ( errors ) %] |
1103 |
<table> |
1117 |
<table id="report_results"> |
1104 |
<tr> |
1118 |
<thead> |
1105 |
[% FOREACH header_ro IN header_row %] |
|
|
1106 |
<th>[% header_ro.cell | html %]</th> |
1107 |
[% END %] |
1108 |
</tr> |
1109 |
[% FOREACH result IN results %] |
1110 |
<tr> |
1119 |
<tr> |
1111 |
[% FOREACH cells IN result.cells %] |
1120 |
[% FOREACH header_ro IN header_row %] |
1112 |
<td>[% cells.cell | $raw %]</td> |
1121 |
[% IF header_ro.has_itemnumbers && ( header_ro.cell == 'itemnumber' || header_types.item( header_ro.cell ) == 'itemnumber' ) %] |
|
|
1122 |
<th class="itemnumber">[% header_ro.cell | html %]</th> |
1123 |
[% ELSIF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] |
1124 |
<th class="biblionumber">[% header_ro.cell | html %]</th> |
1125 |
[% ELSIF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] |
1126 |
<th class="cardnumber">[% header_ro.cell | html %]</th> |
1127 |
[% ELSIF header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] |
1128 |
<th class="borrowernumber">[% header_ro.cell | html %]</th> |
1129 |
[% ELSE %] |
1130 |
<th>[% header_ro.cell | html %]</th> |
1131 |
[% END %] |
1113 |
[% END %] |
1132 |
[% END %] |
1114 |
</tr> |
1133 |
</tr> |
1115 |
[% END %] |
1134 |
</thead> |
|
|
1135 |
<tbody> |
1136 |
[% FOREACH result IN results %] |
1137 |
<tr> |
1138 |
[% FOREACH cells IN result.cells %] |
1139 |
[% place = loop.index %] |
1140 |
[%- IF header_row.$place.cell == 'itemnumber' || header_types.item(header_row.$place.cell) == 'itemnumber' %] |
1141 |
<td class="batch-op itemnumber" data-number="itemnumber"> |
1142 |
<span class="data-plain">[% cells.cell | $raw %]</span> |
1143 |
<div id="itemnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a> |
1144 |
<ul class="dropdown-menu pull-right" role="menu"> |
1145 |
<li><a target="_blank" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-pencil"></i> Edit record</a></li> |
1146 |
<li role="separator" class="divider"></li> |
1147 |
<li><a target="_blank" href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-eye"></i> View record</a></li> |
1148 |
</ul> |
1149 |
</div> |
1150 |
</td> |
1151 |
[% ELSIF header_row.$place.cell == 'biblionumber' || header_types.item(header_row.$place.cell) == 'biblionumber' %] |
1152 |
<td class="batch-op biblionumber" data-number="biblionumber"> |
1153 |
<span class="data-plain">[% cells.cell | $raw %]</span> |
1154 |
<div id="biblionumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a> |
1155 |
<ul class="dropdown-menu pull-right" role="menu"> |
1156 |
<li><a target="_blank" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit record</a></li> |
1157 |
<li role="separator" class="divider"></li> |
1158 |
<li><a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View record</a></li> |
1159 |
</ul> |
1160 |
</div> |
1161 |
</td> |
1162 |
[% ELSIF header_row.$place.cell == 'borrowernumber' || header_types.item(header_row.$place.cell) == 'borrowernumber' %] |
1163 |
<td class="batch-op borrowernumber" data-number="borrowernumber"> |
1164 |
<span class="data-plain">[% cells.cell | $raw %]</span> |
1165 |
<div id="borrowernumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a> |
1166 |
<ul class="dropdown-menu pull-right" role="menu"> |
1167 |
<li><a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-eye"></i> View patron</a></li> |
1168 |
<li role="separator" class="divider"></li> |
1169 |
<li><a target="_blank" href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-pencil"></i> Edit patron</a></li> |
1170 |
<li role="separator" class="divider"></li> |
1171 |
<li><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li> |
1172 |
</ul> |
1173 |
</div> |
1174 |
</td> |
1175 |
[% ELSIF header_row.$place.cell == 'cardnumber' || header_types.item(header_row.$place.cell) == 'cardnumber' %] |
1176 |
<td class="batch-op cardnumber" data-number="cardnumber"> |
1177 |
<span class="data-plain">[% cells.cell | $raw %]</span> |
1178 |
<div id="cardnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-toggle="dropdown" href="#">[% cells.cell | $raw %] <b class="caret"></b></a> |
1179 |
<ul class="dropdown-menu pull-right" role="menu"> |
1180 |
<li><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode"></i> Check out</a></li> |
1181 |
</ul> |
1182 |
</div> |
1183 |
</td> |
1184 |
[% ELSE %] |
1185 |
<td> |
1186 |
[% cells.cell | $raw %] |
1187 |
</td> |
1188 |
[% END %] |
1189 |
[% END %] |
1190 |
</tr> |
1191 |
[% END %] |
1192 |
</tbody> |
1116 |
</table> |
1193 |
</table> |
1117 |
[% END %] |
1194 |
[% END %] |
1118 |
<div class="pages">[% pagination_bar | $raw %]</div> |
1195 |
<div class="pages">[% pagination_bar | $raw %]</div> |
Lines 2066-2071
Link Here
|
2066 |
|
2143 |
|
2067 |
}); |
2144 |
}); |
2068 |
|
2145 |
|
|
|
2146 |
$("#toggle_auto_links").on("click", function(e){ |
2147 |
e.preventDefault(); |
2148 |
if( $(".data-plain").is(":visible") ){ |
2149 |
/* if a data-plain element is visible, this click hides it and shows auto-links */ |
2150 |
localStorage.removeItem("reports_auto_link_off"); |
2151 |
} else { |
2152 |
/* if a data-plain element is hidden, this click shows it and hides auto-links */ |
2153 |
localStorage.setItem("reports_auto_link_off", 1); |
2154 |
} |
2155 |
$(".data-plain,.autolink").toggle(); |
2156 |
}); |
2157 |
if ( localStorage.getItem("reports_auto_link_off") == 1 ){ |
2158 |
$("#toggle_auto_links").click(); |
2159 |
} |
2160 |
|
2069 |
function tabsInit( ui, rtable ){ |
2161 |
function tabsInit( ui, rtable ){ |
2070 |
var thisTab = ui.newTab ? ui.newTab : ui.tab; |
2162 |
var thisTab = ui.newTab ? ui.newTab : ui.tab; |
2071 |
var activeTab = thisTab.index(); |
2163 |
var activeTab = thisTab.index(); |
2072 |
- |
|
|