|
Lines 6-16
Link Here
|
| 6 |
[% USE TablesSettings %] |
6 |
[% USE TablesSettings %] |
| 7 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
| 8 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
| 9 |
<title>Notices management › Tools › Koha</title> |
9 |
[% PROCESS 'i18n.inc' %] |
| 10 |
[% PROCESS "patron-search.inc" %] |
10 |
[% PROCESS "patron-search.inc" %] |
| 11 |
[% SET libraries = Branches.all %] |
11 |
[% SET libraries = Branches.all %] |
| 12 |
[% SET categories = Categories.all.unblessed %] |
12 |
[% SET categories = Categories.all.unblessed %] |
| 13 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
13 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
|
|
14 |
<title |
| 15 |
>[% FILTER collapse %] |
| 16 |
[% t("Notices management") | html %] |
| 17 |
› [% t("Tools") | html %] › [% t("Koha") | html %] |
| 18 |
[% END %]</title |
| 19 |
> |
| 14 |
[% INCLUDE 'doc-head-close.inc' %] |
20 |
[% INCLUDE 'doc-head-close.inc' %] |
| 15 |
<style> |
21 |
<style> |
| 16 |
.notice { |
22 |
.notice { |
|
Lines 54-59
Link Here
|
| 54 |
> |
60 |
> |
| 55 |
|
61 |
|
| 56 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
62 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
|
|
63 |
[% INCLUDE 'csrf-token.inc' %] |
| 64 |
|
| 57 |
<table id="notices"> |
65 |
<table id="notices"> |
| 58 |
<thead> |
66 |
<thead> |
| 59 |
<tr> |
67 |
<tr> |
|
Lines 97-113
Link Here
|
| 97 |
</form> |
105 |
</form> |
| 98 |
[% ELSE %] |
106 |
[% ELSE %] |
| 99 |
Use the search form on the left to find sent notices, or go directly to a patron's notices. |
107 |
Use the search form on the left to find sent notices, or go directly to a patron's notices. |
| 100 |
<div id="notices_patronsearch" class="toptabs"> |
108 |
[% WRAPPER tabs id= "notices_patronsearch" %] |
| 101 |
<ul class="nav nav-tabs" role="tablist"> |
109 |
[% WRAPPER tabs_nav %] |
| 102 |
<li role="presentation" class="active"><a href="#notices_patronsearch_pane" aria-controls="notices_patronsearch_pane" role="tab" data-toggle="tab">Patrons</a></li> |
110 |
[% WRAPPER tab_item tabname= "notices_patronsearch_pane" bt_active= 1 %]<span>Patrons</span>[% END %] |
| 103 |
</ul> |
111 |
[% END %] |
| 104 |
<div class="tab-content"> |
112 |
[% WRAPPER tab_panels %] |
| 105 |
<div id="notice_patronsearch_pane" role="tabpanel" class="tab-pane active"> |
113 |
[% WRAPPER tab_panel tabname="notices_patronsearch_pane" bt_active= 1 %] |
| 106 |
[% PROCESS patron_search_filters_simple %] |
114 |
[% PROCESS patron_search_filters_simple %] |
| 107 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
115 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
| 108 |
</div> |
116 |
[% END %] |
| 109 |
</div> |
117 |
[% END %] |
| 110 |
</div> |
118 |
[% END %] |
| 111 |
|
119 |
|
| 112 |
[% IF notices && notices.count == 0 %] |
120 |
[% IF notices && notices.count == 0 %] |
| 113 |
<div class="dialog message"> No sent notices were found with those search parameters. </div> |
121 |
<div class="dialog message"> No sent notices were found with those search parameters. </div> |
|
Lines 121-127
Link Here
|
| 121 |
<aside> |
129 |
<aside> |
| 122 |
<fieldset class="sidebar brief"> |
130 |
<fieldset class="sidebar brief"> |
| 123 |
<form id="notices-search" action="/cgi-bin/koha/tools/notices.pl" method="post"> |
131 |
<form id="notices-search" action="/cgi-bin/koha/tools/notices.pl" method="post"> |
| 124 |
<input type="hidden" name="op" value="search" /> |
132 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
133 |
<input type="hidden" name="op" value="cud-search" /> |
| 125 |
<h3>Search filters</h3> |
134 |
<h3>Search filters</h3> |
| 126 |
<ol> |
135 |
<ol> |
| 127 |
<li> |
136 |
<li> |
|
Lines 244-250
Link Here
|
| 244 |
[% Asset.js("js/tools-menu.js") | $raw %] |
253 |
[% Asset.js("js/tools-menu.js") | $raw %] |
| 245 |
[% INCLUDE 'calendar.inc' %] |
254 |
[% INCLUDE 'calendar.inc' %] |
| 246 |
[% INCLUDE 'datatables.inc' %] |
255 |
[% INCLUDE 'datatables.inc' %] |
| 247 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/tools/notices.pl?', redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/tools/notices.pl?', redirect_if_attribute_equal => 'cardnumber' %] |
|
|
| 248 |
<script> |
256 |
<script> |
| 249 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
257 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
| 250 |
$(document).ready(function() { |
258 |
$(document).ready(function() { |
|
Lines 274-280
Link Here
|
| 274 |
$("#notices_patronsearch").on("submit", filter); |
282 |
$("#notices_patronsearch").on("submit", filter); |
| 275 |
[% UNLESS notices %] |
283 |
[% UNLESS notices %] |
| 276 |
[% IF ( Koha.Preference('PatronAutoComplete') ) %] |
284 |
[% IF ( Koha.Preference('PatronAutoComplete') ) %] |
| 277 |
patron_autocomplete($("#search_patron_filter"), { 'link-to': 'notices', 'url-params': '[% url_biblio_params | url %]' }); |
285 |
patron_autocomplete($(".search_patron_filter"), { 'link-to': 'notices' }); |
| 278 |
[% END %] |
286 |
[% END %] |
| 279 |
[% END %] |
287 |
[% END %] |
| 280 |
|
288 |
|
|
Lines 302-307
Link Here
|
| 302 |
}); |
310 |
}); |
| 303 |
}); |
311 |
}); |
| 304 |
</script> |
312 |
</script> |
|
|
313 |
[% SET search_results_block_id = 'notices_patronsearch_pane_panel' %] |
| 314 |
[%# adjusting variable for patron-search.inc %] |
| 315 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/members/notices.pl?', redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/members/notices.pl?', redirect_if_attribute_equal => 'cardnumber' %] |
| 305 |
[% END %] |
316 |
[% END %] |
| 306 |
|
317 |
|
| 307 |
[% INCLUDE 'intranet-bottom.inc' %]</div |
318 |
[% INCLUDE 'intranet-bottom.inc' %]</div |