View | Details | Raw Unified | Return to bug 30952
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc (-81 / +5 lines)
Lines 13-23 Link Here
13
            <input type="text" id="title" style="display:inline;left: 125px;" class="focus" placeholder="Title" name="title" size="13" value="[% title | html %]" />
13
            <input type="text" id="title" style="display:inline;left: 125px;" class="focus" placeholder="Title" name="title" size="13" value="[% title | html %]" />
14
            <input type="text" id="searchsupplier" style="display:inline" class="focus" placeholder="Vendor" name="name" size="13" value="[% name | html %]" />
14
            <input type="text" id="searchsupplier" style="display:inline" class="focus" placeholder="Vendor" name="name" size="13" value="[% name | html %]" />
15
            <input type="hidden" id="do_search" name="do_search" value="do" />
15
            <input type="hidden" id="do_search" name="do_search" value="do" />
16
            <span class="filteraction" id="filteraction_off" style="display:none"> <a href="#" class="toggle_element" data-element="#filtres,.filteraction">[-]</a></span>
16
            <span class="filteraction" id="filteraction_off" style="display:none"> <a href="#" class="toggle_element" data-element="#open,.filteraction">[-]</a></span>
17
            <span class="filteraction" id="filteraction_on"> <a href="#" class="toggle_element" data-element="#filtres,.filteraction">[+]</a></span>
17
            <span class="filteraction" id="filteraction_on"> <a href="#" class="toggle_element" data-element="#open,.filteraction">[+]</a></span>
18
            <input value="" class="submit" id="submit" type="submit" />
18
            <input value="" class="submit" id="submit" type="submit" />
19
19
20
            <p class="plus" id="filtres" style="display:none">
20
            <p class="more" id="open" style="display:none">
21
                <input type="text" style="right: 260px" placeholder="Basket" name="basket" id="basket" />
21
                <input type="text" style="right: 260px" placeholder="Basket" name="basket" id="basket" />
22
                <input type="text" placeholder="Invoice number" name="booksellerinvoicenumber" id="booksellerinvoicenumber" />
22
                <input type="text" placeholder="Invoice number" name="booksellerinvoicenumber" id="booksellerinvoicenumber" />
23
            </p>
23
            </p>
Lines 32-114 Link Here
32
        <span id="button_1" class="buttonsearch active">Vendor search</span>
32
        <span id="button_1" class="buttonsearch active">Vendor search</span>
33
        <span id="button_2" class="buttonsearch">Orders search</span>
33
        <span id="button_2" class="buttonsearch">Orders search</span>
34
    </ul>
34
    </ul>
35
</div>
35
</div><!-- /header_search -->
36
36
37
37
[% INCLUDE 'searchbaruse.inc' %]
38
39
<script type="text/javascript">
40
    function focusInput(){
41
        document.getElementsByClassName('head-searchbox').focus();
42
    }
43
44
    function toggle(elem){style="width: calc(301px);"
45
        var buttonssearch = document.getElementsByClassName('active');
46
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
47
            buttonssearch[i].classList.remove('active');
48
        }
49
50
        if(elem){
51
            elem.classList.add('active');
52
            fold();
53
        }else{//Back
54
            document.getElementById('button_1').classList.add('active');
55
            document.getElementById('header_search').classList.remove('fold');
56
            document.getElementsByClassName('head-searchbox').style = '';
57
        }
58
        
59
        focusInput();
60
    }
61
62
    function clique(elem){
63
        var buttonssearch = document.getElementsByClassName('buttonsearch');
64
        var iconssearch = document.getElementsByClassName('iconsearch');
65
        var inputssearch = document.getElementsByClassName('head-searchbox');
66
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
67
            buttonssearch[i].classList.remove('active');
68
            if (elem == iconssearch[i]){
69
                buttonssearch[i].classList.add('active');
70
            }
71
        }
72
73
        for (var i = inputssearch.length - 1; i >= 0; i--) {
74
            inputssearch[i].classList.remove('focus');
75
76
            if (elem == iconssearch[i]){
77
                inputssearch[i].classList.add('focus');
78
79
                taille(inputssearch[i])
80
            }
81
        }
82
83
        focusInput();
84
        fold();
85
    }
86
87
    function fold(){
88
        document.getElementById('header_search').classList.add('fold');
89
        setTimeout(
90
            function(){
91
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
92
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
93
            }
94
        , 250);
95
    }
96
97
    function taille(el){
98
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
99
        el.style = "width:calc(500px - "+offsetWidth+"px)";
100
    }
101
102
    $('.btn').click(function(){
103
    if($(this).hasClass('active')){
104
        $(this).removeClass('active')
105
    } else {
106
        $(this).addClass('active')
107
    }
108
});
109
110
</script>
111
112
113
<!-- /header_search -->
114
<!-- End Main page Resident Search Box -->
38
<!-- End Main page Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc (-80 / +2 lines)
Lines 40-124 Link Here
40
        <span id="button_3" class="buttonsearch">Renew</span>
40
        <span id="button_3" class="buttonsearch">Renew</span>
41
        <span id="button_4" class="buttonsearch">Search patrons</span>
41
        <span id="button_4" class="buttonsearch">Search patrons</span>
42
    </ul>
42
    </ul>
43
44
45
<script type="text/javascript">
46
    function focusInput(){
47
        document.getElementsByClassName('head-searchbox').focus();
48
    }
49
50
    function toggle(elem){
51
        style="width: calc(301px);"
52
        var buttonssearch = document.getElementsByClassName('active');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
        }
56
57
        if(elem){
58
            elem.classList.add('active');
59
            fold();
60
        }else{//Back
61
            document.getElementById('button_1').classList.add('active');
62
            document.getElementById('header_search').classList.remove('fold');
63
            document.getElementsByClassName('head-searchbox').style = '';
64
        }
65
        
66
        focusInput();
67
    }
68
69
    function clique(elem){
70
        var buttonssearch = document.getElementsByClassName('buttonsearch');
71
        var iconssearch = document.getElementsByClassName('iconsearch');
72
        var inputssearch = document.getElementsByClassName('head-searchbox');
73
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
74
            buttonssearch[i].classList.remove('active');
75
            if (elem == iconssearch[i]){
76
                buttonssearch[i].classList.add('active');
77
            }
78
        }
79
80
        for (var i = inputssearch.length - 1; i >= 0; i--) {
81
            inputssearch[i].classList.remove('focus');
82
83
            if (elem == iconssearch[i]){
84
                inputssearch[i].classList.add('focus');
85
86
                taille(inputssearch[i])
87
            }
88
        }
89
90
        focusInput();
91
        fold();
92
    }
93
94
    function fold(){
95
        document.getElementById('header_search').classList.add('fold');
96
        setTimeout(
97
            function(){
98
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
99
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
100
            }
101
        , 250);
102
    }
103
104
    function taille(el){
105
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
106
        el.style = "width:calc(500px - "+offsetWidth+"px)";
107
    }
108
109
    $('.btn').click(function(){
110
    if($(this).hasClass('active')){
111
        $(this).removeClass('active')
112
    } else {
113
        $(this).addClass('active')
114
    }
115
});
116
117
</script>
118
119
<!-- /header_search -->
120
<!-- End Main page Resident Search Box -->
121
122
123
</div><!-- /#header_search -->
43
</div><!-- /#header_search -->
44
45
[% INCLUDE 'searchbaruse.inc' %]
124
<!-- End advanced search page resident search box -->
46
<!-- End advanced search page resident search box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc (-81 / +9 lines)
Lines 4-10 Link Here
4
    <div id="mainmain_heading" class="residentsearch">
4
    <div id="mainmain_heading" class="residentsearch">
5
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
5
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
6
6
7
            <select name="orderby" class="haut">
7
            <select name="orderby" class="upper">
8
                [% IF ( orderby == 'HeadingAsc' ) %]
8
                [% IF ( orderby == 'HeadingAsc' ) %]
9
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
9
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
10
                [% ELSE %]
10
                [% ELSE %]
Lines 22-28 Link Here
22
                [% END %]
22
                [% END %]
23
            </select>
23
            </select>
24
24
25
            <p class="plusdessous" id="filters">
25
            <p class="more_bottom">
26
                <input type="hidden" name="op" value="do_search" />
26
                <input type="hidden" name="op" value="do_search" />
27
                <input type="hidden" name="type" value="intranet" />
27
                <input type="hidden" name="type" value="intranet" />
28
                <select name="authtypecode" id="authtype_main_heading_a">
28
                <select name="authtypecode" id="authtype_main_heading_a">
Lines 67-73 Link Here
67
67
68
    <div id="main_heading" class="residentsearch">
68
    <div id="main_heading" class="residentsearch">
69
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
69
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
70
            <select name="orderby" class="haut">
70
            <select name="orderby" class="upper">
71
                [% IF ( orderby == 'HeadingAsc' ) %]
71
                [% IF ( orderby == 'HeadingAsc' ) %]
72
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
72
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
73
                [% ELSE %]
73
                [% ELSE %]
Lines 85-91 Link Here
85
                [% END %]
85
                [% END %]
86
            </select>
86
            </select>
87
87
88
            <p class="plusdessous" id="filters">
88
            <p class="more_bottom">
89
                <input type="hidden" name="op" value="do_search" />
89
                <input type="hidden" name="op" value="do_search" />
90
                <input type="hidden" name="type" value="intranet" />
90
                <input type="hidden" name="type" value="intranet" />
91
                <select name="authtypecode" id="authtype_main_heading">
91
                <select name="authtypecode" id="authtype_main_heading">
Lines 130-136 Link Here
130
    <div id="matchheading_search" class="residentsearch">
130
    <div id="matchheading_search" class="residentsearch">
131
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
131
        <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
132
132
133
            <select name="orderby" class="haut">
133
            <select name="orderby" class="upper">
134
                [% IF ( orderby == 'HeadingAsc' ) %]
134
                [% IF ( orderby == 'HeadingAsc' ) %]
135
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
135
                <option value="HeadingAsc" selected="selected">Heading A-Z</option>
136
                [% ELSE %]
136
                [% ELSE %]
Lines 148-154 Link Here
148
                [% END %]
148
                [% END %]
149
            </select>
149
            </select>
150
150
151
            <p class="plusdessous" id="filters">
151
            <p class="more_bottom">
152
                <input type="hidden" name="op" value="do_search" />
152
                <input type="hidden" name="op" value="do_search" />
153
                <input type="hidden" name="type" value="intranet" />
153
                <input type="hidden" name="type" value="intranet" />
154
                <select name="authtypecode" id="authtype_all_headings">
154
                <select name="authtypecode" id="authtype_all_headings">
Lines 191-197 Link Here
191
    <div id="entire_record" class="residentsearch">
191
    <div id="entire_record" class="residentsearch">
192
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
192
    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
193
193
194
        <select name="orderby" class="haut">
194
        <select name="orderby" class="upper">
195
            [% IF ( orderby == 'HeadingAsc' ) %]
195
            [% IF ( orderby == 'HeadingAsc' ) %]
196
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
196
            <option value="HeadingAsc" selected="selected">Heading A-Z</option>
197
            [% ELSE %]
197
            [% ELSE %]
Lines 209-215 Link Here
209
            [% END %]
209
            [% END %]
210
        </select>
210
        </select>
211
211
212
        <p class="plusdessous" id="filters">
212
        <p class="more_bottom">
213
            <input type="hidden" name="op" value="do_search" />
213
            <input type="hidden" name="op" value="do_search" />
214
            <input type="hidden" name="type" value="intranet" />
214
            <input type="hidden" name="type" value="intranet" />
215
            <select name="authtypecode" id="authtype_entire_record">
215
            <select name="authtypecode" id="authtype_entire_record">
Lines 265-341 Link Here
265
    </ul>
265
    </ul>
266
</div><!-- /header_search -->
266
</div><!-- /header_search -->
267
267
268
<script type="text/javascript">
268
[% INCLUDE 'searchbaruse.inc' %]
269
    function focusInput(){
270
        document.getElementsByClassName('head-searchbox').focus();
271
    }
272
273
    function toggle(elem){style="width: calc(301px);"
274
        var buttonssearch = document.getElementsByClassName('active');
275
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
276
            buttonssearch[i].classList.remove('active');
277
        }
278
279
        if(elem){
280
            elem.classList.add('active');
281
            fold();
282
        }else{//Back
283
            document.getElementById('button_1').classList.add('active');
284
            document.getElementById('header_search').classList.remove('fold');
285
            document.getElementsByClassName('head-searchbox').style = '';
286
        }
287
288
        focusInput();
289
    }
290
291
    function clique(elem){
292
        var buttonssearch = document.getElementsByClassName('buttonsearch');
293
        var iconssearch = document.getElementsByClassName('iconsearch');
294
        var inputssearch = document.getElementsByClassName('head-searchbox');
295
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
296
            buttonssearch[i].classList.remove('active');
297
            if (elem == iconssearch[i]){
298
                buttonssearch[i].classList.add('active');
299
            }
300
        }
301
302
        for (var i = inputssearch.length - 1; i >= 0; i--) {
303
            inputssearch[i].classList.remove('focus');
304
305
            if (elem == iconssearch[i]){
306
                inputssearch[i].classList.add('focus');
307
308
                taille(inputssearch[i])
309
            }
310
        }
311
312
        focusInput();
313
        fold();
314
    }
315
316
    function fold(){
317
        document.getElementById('header_search').classList.add('fold');
318
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
319
        setTimeout(
320
            function(){
321
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
322
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
323
            }
324
        , 250);
325
    }
326
327
    function taille(el){
328
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
329
        el.style = "width:calc(500px - "+offsetWidth+"px)";
330
    }
331
332
    $('.btn').click(function(){
333
    if($(this).hasClass('active')){
334
        $(this).removeClass('active')
335
    } else {
336
        $(this).addClass('active')
337
    }
338
});
339
340
</script>
341
<!-- End Authorities Resident Search Box -->
269
<!-- End Authorities Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc (-76 / +2 lines)
Lines 34-114 Link Here
34
        <span id="button_2" class="buttonsearch">Check out</span>
34
        <span id="button_2" class="buttonsearch">Check out</span>
35
        <span id="button_3" class="buttonsearch">Search catalog</span>
35
        <span id="button_3" class="buttonsearch">Search catalog</span>
36
    </ul>
36
    </ul>
37
</div>
37
</div><!-- /header_search -->
38
39
<script type="text/javascript">
40
    function focusInput(){
41
        document.getElementsByClassName('head-searchbox').focus();
42
    }
43
44
    function toggle(elem){style="width: calc(301px);"
45
        var buttonssearch = document.getElementsByClassName('active');
46
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
47
            buttonssearch[i].classList.remove('active');
48
        }
49
50
        if(elem){
51
            elem.classList.add('active');
52
            fold();
53
        }else{//Back
54
            document.getElementById('button_1').classList.add('active');
55
            document.getElementById('header_search').classList.remove('fold');
56
            document.getElementsByClassName('head-searchbox').style = '';
57
        }
58
59
        focusInput();
60
    }
61
62
    function clique(elem){
63
        var buttonssearch = document.getElementsByClassName('buttonsearch');
64
        var iconssearch = document.getElementsByClassName('iconsearch');
65
        var inputssearch = document.getElementsByClassName('head-searchbox');
66
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
67
            buttonssearch[i].classList.remove('active');
68
            if (elem == iconssearch[i]){
69
                buttonssearch[i].classList.add('active');
70
            }
71
        }
72
73
        for (var i = inputssearch.length - 1; i >= 0; i--) {
74
75
            if (elem == iconssearch[i]){
76
                inputssearch[i].classList.add('focus');
77
78
                taille(inputssearch[i])
79
            }
80
        }
81
82
        focusInput();
83
        fold();
84
    }
85
86
    function fold(){
87
        document.getElementById('header_search').classList.add('fold');
88
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
89
        setTimeout(
90
            function(){
91
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
92
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
93
            }
94
        , 250);
95
    }
96
97
    function taille(el){
98
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
99
        el.style = "width:calc(500px - "+offsetWidth+"px)";
100
    }
101
102
    $('.btn').click(function(){
103
    if($(this).hasClass('active')){
104
        $(this).removeClass('active')
105
    } else {
106
        $(this).addClass('active')
107
    }
108
});
109
110
</script>
111
112
<!-- /header_search -->
113
38
39
[% INCLUDE 'searchbaruse.inc' %]
114
<!-- End Suggestions Resident Search Box -->
40
<!-- End Suggestions Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc (-17 / +21 lines)
Lines 1-37 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<div class="gradient">
2
<div id="header_search" class="fold">
3
<div id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></div><!-- Begin Catalogue Resident Search Box -->
4
<div id="header_search">
5
3
6
[% INCLUDE 'patron-search-box.inc' %]
4
[% INCLUDE 'patron-search-box.inc' %]
7
5
8
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
6
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
9
<div id="checkin_search" class="residentsearch">
7
<div id="checkin_search" class="residentsearch">
10
    <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
8
    <form action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" method="post"> 
11
        <label class="tip" for="ret_barcode">Scan a barcode to check in:</label>
9
        <input id="ret_barcode" name="barcode" class="head-searchbox focus" accesskey="r" type="text" placeholder="Scan a barcode to check in" />
12
        <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" type="text" />
10
        <input value="" id="submit" type="submit"/>
13
14
        <input value="Submit" class="submit" type="submit" />
15
    </form>
11
    </form>
16
</div>
12
</div>
13
17
<div id="renew_search" class="residentsearch">
14
<div id="renew_search" class="residentsearch">
18
    <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
15
    <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
19
        <label class="tip" for="ren_barcode">Scan a barcode to renew:</label>
16
        <input class="head-searchbox focus" name="barcode" id="ren_barcode" accesskey="r" type="text" placeholder="Scan a barcode to renew" />
20
        <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
17
        <input value="" type="submit" id="submit" />
21
        <input value="Submit" class="submit" type="submit" />
22
    </form>
18
    </form>
23
</div>
19
</div>
24
[% END %]
20
[% END %]
25
21
26
[% INCLUDE 'catalogue-search-box.inc' %]
22
[% INCLUDE 'catalogue-search-box.inc' %]
27
23
28
<ul>
24
<ul id="taille">
29
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
25
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="button_1" title="Check out" onclick="clique(this)" class="iconsearch" href="#circ_search"><i class="fa fa-upload"></i></a></li>[% END %]
30
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
26
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="button_2" title="Check in" onclick="clique(this)" class="iconsearch" href="#checkin_search"><i class="fa fa-download"></i></a></li>[% END %]
31
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
27
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a id="icon_3" title="Renew" onclick="clique(this)" class="iconsearch" href="#renew_search"><i class="fa fa-retweet"></i></a></li>[% END %]
32
    [% IF ( CAN_user_catalogue ) %]<li class="ui-tabs-active"><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
28
    [% IF ( CAN_user_catalogue ) %]<li><a id="icon_4" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
29
30
    
31
32
    <span id="button_1" class="buttonsearch active">Check out</span>
33
    <span id="button_2" class="buttonsearch">Check in</span>
34
    <span id="button_3" class="buttonsearch">Renew</span>
35
    <span id="button_4" class="buttonsearch">Search catalog</span>
33
</ul>
36
</ul>
34
37
35
</div><!-- /header_search -->
38
</div><!-- /header_search -->
36
</div><!-- /gradient -->
39
40
[% INCLUDE 'searchbaruse.inc' %]
37
<!-- End Catalogue Resident Search Box -->
41
<!-- End Catalogue Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc (-39 / +2 lines)
Lines 46-89 Link Here
46
        <span id="button_4" class="buttonsearch">Renew</span>
46
        <span id="button_4" class="buttonsearch">Renew</span>
47
        <span id="button_5" class="buttonsearch">Search catalog</span>
47
        <span id="button_5" class="buttonsearch">Search catalog</span>
48
    </ul>
48
    </ul>
49
</div>
49
</div><!-- /header_search -->
50
50
51
<script type="text/javascript">
51
[% INCLUDE 'searchbaruse.inc' %]
52
    function focusInput(){
53
        document.getElementById('inputsearch').focus();
54
    }
55
56
    function toggle(elem){
57
        var buttonssearch = document.getElementsByClassName('active');
58
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
59
            buttonssearch[i].classList.remove('active');
60
        }
61
62
        if(elem){
63
            elem.classList.add('active');
64
            fold();
65
        }else{//Back
66
            document.getElementById('button_1').classList.add('active');
67
            document.getElementById('containersearch').classList.remove('fold');
68
            document.getElementById('inputsearch').style = '';
69
        }
70
        
71
        focusInput();
72
    }
73
74
    function fold(){
75
        
76
        document.getElementById('containersearch').classList.add('fold');
77
        // document.getElementById('inputsearch').style = "width:calc(500px - 100px)";		
78
        setTimeout(
79
            function(){
80
                var offsetWidth = document.getElementById('buttonssearch').offsetWidth +5;
81
                document.getElementById('inputsearch').style = "width:calc(500px - "+offsetWidth+"px)";		
82
            }
83
        , 250);
84
    }
85
86
</script>
87
88
<!-- /header_search -->
89
<!-- End Main page Resident Search Box -->
52
<!-- End Main page Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc (-80 / +3 lines)
Lines 8-14 Link Here
8
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
8
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
9
    <div id="renew_search" class="residentsearch">
9
    <div id="renew_search" class="residentsearch">
10
        <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
10
        <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
11
            <input class="head-searchbox focus" type="text" name="barcode" id="ren_barcode" placeholder="Scan a barcode to renew:" />
11
            <input class="head-searchbox focus" type="text" name="barcode" id="ren_barcode" placeholder="Scan a barcode to renew" />
12
            <input value="Submit" id="submit" type="submit" />
12
            <input value="Submit" id="submit" type="submit" />
13
        </form>
13
        </form>
14
    </div>
14
    </div>
Lines 25-109 Link Here
25
        <span id="button_2" class="buttonsearch">Renew</span>
25
        <span id="button_2" class="buttonsearch">Renew</span>
26
        <span id="button_3" class="buttonsearch">Search catalog</span>
26
        <span id="button_3" class="buttonsearch">Search catalog</span>
27
    </ul>
27
    </ul>
28
</div>
28
</div><!-- /header_search -->
29
29
30
30
[% INCLUDE 'searchbaruse.inc' %]
31
<script type="text/javascript">
32
    function focusInput(){
33
        document.getElementsByClassName('head-searchbox').focus();
34
    }
35
36
    function toggle(elem){style="width: calc(301px);"
37
        var buttonssearch = document.getElementsByClassName('active');
38
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
39
            buttonssearch[i].classList.remove('active');
40
        }
41
42
        if(elem){
43
            elem.classList.add('active');
44
            fold();
45
        }else{//Back
46
            document.getElementById('button_1').classList.add('active');
47
            document.getElementById('header_search').classList.remove('fold');
48
            document.getElementsByClassName('head-searchbox').style = '';
49
        }
50
        
51
        focusInput();
52
    }
53
54
    function clique(elem){
55
        var buttonssearch = document.getElementsByClassName('buttonsearch');
56
        var iconssearch = document.getElementsByClassName('iconsearch');
57
        var inputssearch = document.getElementsByClassName('head-searchbox');
58
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
59
            buttonssearch[i].classList.remove('active');
60
            if (elem == iconssearch[i]){
61
                buttonssearch[i].classList.add('active');
62
            }
63
        }
64
65
        for (var i = inputssearch.length - 1; i >= 0; i--) {
66
            inputssearch[i].classList.remove('focus');
67
68
            if (elem == iconssearch[i]){
69
                inputssearch[i].classList.add('focus');
70
71
                taille(inputssearch[i])
72
            }
73
        }
74
75
        focusInput();
76
        fold();
77
    }
78
79
    function fold(){
80
        document.getElementById('header_search').classList.add('fold');
81
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";		
82
        setTimeout(
83
            function(){
84
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
85
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";		
86
            }
87
        , 250);
88
    }
89
90
    function taille(el){
91
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
92
        el.style = "width:calc(500px - "+offsetWidth+"px)";
93
    }
94
95
    $('.btn').click(function(){
96
    if($(this).hasClass('active')){
97
        $(this).removeClass('active')
98
    } else {
99
        $(this).addClass('active')
100
    }
101
});
102
103
104
105
</script>
106
107
<!-- /header_search -->
108
<!-- End Main page Resident Search Box -->
31
<!-- End Main page Resident Search Box -->
109
32
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc (-74 / +1 lines)
Lines 36-113 Link Here
36
    </ul>
36
    </ul>
37
</div>
37
</div>
38
38
39
<script type="text/javascript">
39
[% INCLUDE 'searchbaruse.inc' %]
40
    function focusInput(){
41
        document.getElementsByClassName('head-searchbox').focus();
42
    }
43
44
    function toggle(elem){style="width: calc(301px);"
45
        var buttonssearch = document.getElementsByClassName('active');
46
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
47
            buttonssearch[i].classList.remove('active');
48
        }
49
50
        if(elem){
51
            elem.classList.add('active');
52
            fold();
53
        }else{//Back
54
            document.getElementById('button_1').classList.add('active');
55
            document.getElementById('header_search').classList.remove('fold');
56
            document.getElementsByClassName('head-searchbox').style = '';
57
        }
58
        
59
        focusInput();
60
    }
61
62
    function clique(elem){
63
        var buttonssearch = document.getElementsByClassName('buttonsearch');
64
        var iconssearch = document.getElementsByClassName('iconsearch');
65
        var inputssearch = document.getElementsByClassName('head-searchbox');
66
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
67
            buttonssearch[i].classList.remove('active');
68
            if (elem == iconssearch[i]){
69
                buttonssearch[i].classList.add('active');
70
            }
71
        }
72
73
        for (var i = inputssearch.length - 1; i >= 0; i--) {
74
            inputssearch[i].classList.remove('focus');
75
76
            if (elem == iconssearch[i]){
77
                inputssearch[i].classList.add('focus');
78
79
                taille(inputssearch[i])
80
            }
81
        }
82
83
        focusInput();
84
        fold();
85
    }
86
87
    function fold(){
88
        document.getElementById('header_search').classList.add('fold');
89
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";		
90
        setTimeout(
91
            function(){
92
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
93
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
94
            }
95
        , 250);
96
    }
97
98
    function taille(el){
99
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
100
        el.style = "width:calc(500px - "+offsetWidth+"px)";
101
    }
102
103
    $('.btn').click(function(){
104
    if($(this).hasClass('active')){
105
        $(this).removeClass('active')
106
    } else {
107
        $(this).addClass('active')
108
    }
109
});
110
111
</script>
112
113
<!-- End Main page Resident Search Box -->
40
<!-- End Main page Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc (-74 / +1 lines)
Lines 22-99 Link Here
22
    </ul>
22
    </ul>
23
</div>
23
</div>
24
24
25
<script type="text/javascript">
25
[% INCLUDE 'searchbaruse.inc' %]
26
    function focusInput(){
27
        document.getElementsByClassName('head-searchbox').focus();
28
    }
29
30
    function toggle(elem){style="width: calc(301px);"
31
        var buttonssearch = document.getElementsByClassName('active');
32
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
33
            buttonssearch[i].classList.remove('active');
34
        }
35
36
        if(elem){
37
            elem.classList.add('active');
38
            fold();
39
        }else{//Back
40
            document.getElementById('button_1').classList.add('active');
41
            document.getElementById('header_search').classList.remove('fold');
42
            document.getElementsByClassName('head-searchbox').style = '';
43
        }
44
45
        focusInput();
46
    }
47
48
    function clique(elem){
49
        var buttonssearch = document.getElementsByClassName('buttonsearch');
50
        var iconssearch = document.getElementsByClassName('iconsearch');
51
        var inputssearch = document.getElementsByClassName('head-searchbox');
52
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
53
            buttonssearch[i].classList.remove('active');
54
            if (elem == iconssearch[i]){
55
                buttonssearch[i].classList.add('active');
56
            }
57
        }
58
59
        for (var i = inputssearch.length - 1; i >= 0; i--) {
60
            inputssearch[i].classList.remove('focus');
61
62
            if (elem == iconssearch[i]){
63
                inputssearch[i].classList.add('focus');
64
65
                taille(inputssearch[i])
66
            }
67
        }
68
69
        focusInput();
70
        fold();
71
    }
72
73
    function fold(){
74
        document.getElementById('header_search').classList.add('fold');
75
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
76
        setTimeout(
77
            function(){
78
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
79
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
80
            }
81
        , 250);
82
    }
83
84
    function taille(el){
85
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
86
        el.style = "width:calc(500px - "+offsetWidth+"px)";
87
    }
88
89
    $('.btn').click(function(){
90
    if($(this).hasClass('active')){
91
        $(this).removeClass('active')
92
    } else {
93
        $(this).addClass('active')
94
    }
95
});
96
97
</script>
98
99
<!-- End Cities Resident Search Box -->
26
<!-- End Cities Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc (-74 / +1 lines)
Lines 23-100 Link Here
23
	</ul>
23
	</ul>
24
</div>
24
</div>
25
25
26
<script type="text/javascript">
26
[% INCLUDE 'searchbaruse.inc' %]
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
100
<!-- End Patrons Admin Resident Search Box -->
27
<!-- End Patrons Admin Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc (-74 / +1 lines)
Lines 23-100 Link Here
23
    </ul>
23
    </ul>
24
</div>
24
</div>
25
25
26
<script type="text/javascript">
26
[% INCLUDE 'searchbaruse.inc' %]
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
100
<!-- End Currencies Resident Search Box -->
27
<!-- End Currencies Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc (-74 / +1 lines)
Lines 23-100 Link Here
23
    </ul>
23
    </ul>
24
</div>
24
</div>
25
25
26
<script type="text/javascript">
26
[% INCLUDE 'searchbaruse.inc' %]
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
100
<!-- End Desks Resident Search Box -->
27
<!-- End Desks Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc (-76 / +2 lines)
Lines 46-128 Link Here
46
        <span id="button_4" class="buttonsearch">Search patrons</span>
46
        <span id="button_4" class="buttonsearch">Search patrons</span>
47
        <span id="button_5" class="buttonsearch">Search catalog</span>
47
        <span id="button_5" class="buttonsearch">Search catalog</span>
48
    </ul>
48
    </ul>
49
</div>
49
</div><!-- /header_search -->
50
50
51
<script type="text/javascript">
51
[% INCLUDE 'searchbaruse.inc' %]
52
    function focusInput(){
53
        document.getElementsByClassName('head-searchbox').focus();
54
    }
55
56
    function toggle(elem){style="width: calc(301px);"
57
        var buttonssearch = document.getElementsByClassName('active');
58
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
59
            buttonssearch[i].classList.remove('active');
60
        }
61
62
        if(elem){
63
            elem.classList.add('active');
64
            fold();
65
        }else{//Back
66
            document.getElementById('button_1').classList.add('active');
67
            document.getElementById('header_search').classList.remove('fold');
68
            document.getElementsByClassName('head-searchbox').style = '';
69
        }
70
        
71
        focusInput();
72
    }
73
74
    function clique(elem){
75
        var buttonssearch = document.getElementsByClassName('buttonsearch');
76
        var iconssearch = document.getElementsByClassName('iconsearch');
77
        var inputssearch = document.getElementsByClassName('head-searchbox');
78
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
79
            buttonssearch[i].classList.remove('active');
80
            if (elem == iconssearch[i]){
81
                buttonssearch[i].classList.add('active');
82
            }
83
        }
84
85
        for (var i = inputssearch.length - 1; i >= 0; i--) {
86
            inputssearch[i].classList.remove('focus');
87
88
            if (elem == iconssearch[i]){
89
                inputssearch[i].classList.add('focus');
90
91
                taille(inputssearch[i])
92
            }
93
        }
94
95
        focusInput();
96
        fold();
97
    }
98
99
    function fold(){
100
        document.getElementById('header_search').classList.add('fold');
101
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";		
102
        setTimeout(
103
            function(){
104
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
105
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";		
106
            }
107
        , 250);
108
    }
109
110
    function taille(el){
111
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
112
        el.style = "width:calc(500px - "+offsetWidth+"px)";
113
    }
114
115
    $('.btn').click(function(){
116
    if($(this).hasClass('active')){
117
        $(this).removeClass('active')
118
    } else {
119
        $(this).addClass('active')
120
    }
121
});
122
123
</script>
124
125
<!-- /header_search -->
126
<!-- End Main page Resident Search Box -->
52
<!-- End Main page Resident Search Box -->
127
53
128
54
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc (-74 / +1 lines)
Lines 23-100 Link Here
23
	</ul>	
23
	</ul>	
24
</div>
24
</div>
25
25
26
<script type="text/javascript">
26
[% INCLUDE 'searchbaruse.inc' %]
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
100
<!-- End Notices Resident Search Box -->
27
<!-- End Notices Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc (-81 / +7 lines)
Lines 17-23 Link Here
17
                <input value="" class="submit" id="submit" type="submit" />
17
                <input value="" class="submit" id="submit" type="submit" />
18
            </div>
18
            </div>
19
19
20
            <p class="plus" id="filters" style="display:none">
20
            <p class="more" id="filters" style="display:none">
21
                <select name="searchfieldstype" id="searchfieldstype" style="position: relative;bottom: 5px;">
21
                <select name="searchfieldstype" id="searchfieldstype" style="position: relative;bottom: 5px;">
22
                    <option disabled selected hidden>Search fields:</option>
22
                    <option disabled selected hidden>Search fields:</option>
23
                [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %]
23
                [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %]
Lines 27-33 Link Here
27
                    [% display_name = PROCESS patron_fields name=s_o %]
27
                    [% display_name = PROCESS patron_fields name=s_o %]
28
                    [% NEXT IF !display_name.length %]
28
                    [% NEXT IF !display_name.length %]
29
                    [% IF searchfieldstype == s_o %]
29
                    [% IF searchfieldstype == s_o %]
30
                        <option selected="selected" value="[% s_o | html %]">[% display_name | $raw %]</option>
30
                        <option value="[% s_o | html %]">[% display_name | $raw %]</option>
31
                    [% ELSE %]
31
                    [% ELSE %]
32
                        <option value="[% s_o | html %]">[% display_name | $raw %]</option>
32
                        <option value="[% s_o | html %]">[% display_name | $raw %]</option>
33
                    [% END %]
33
                    [% END %]
Lines 35-46 Link Here
35
                </select>
35
                </select>
36
36
37
                <select name="searchtype" id="searchtype" style="position: relative;bottom: 5px;">
37
                <select name="searchtype" id="searchtype" style="position: relative;bottom: 5px;">
38
                    <option disabled selected hidden>Search type:</option>
38
                [% IF searchtype == 'start_with' %]
39
                [% IF searchtype == 'start_with' %]
39
                    <option selected="selected" value='start_with'>Starts with</option>
40
                    <option value='start_with'>Starts with</option>
40
                    <option value='contain'>Contains</option>
41
                    <option value='contain'>Contains</option>
41
                [% ELSE %]
42
                [% ELSE %]
42
                    <option value='start_with'>Starts with</option>
43
                    <option value='start_with'>Starts with</option>
43
                    <option selected="selected" value='contain'>Contains</option>
44
                    <option value='contain'>Contains</option>
44
                [% END %]
45
                [% END %]
45
                </select>
46
                </select>
46
47
Lines 97-182 Link Here
97
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_5" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
98
        [% IF ( CAN_user_catalogue ) %]<li><a id="icon_5" title="Search catalog" onclick="clique(this)" class="iconsearch" href="#catalog_search"><i class="fa fa-fw fa-search"></i></a></li>[% END %]
98
99
99
        <span id="button_1" class="buttonsearch active">Search patrons</span>
100
        <span id="button_1" class="buttonsearch active">Search patrons</span>
100
        <span id="button_2" class="buttonsearch active">Check out</span>
101
        <span id="button_2" class="buttonsearch">Check out</span>
101
        <span id="button_3" class="buttonsearch">Check in</span>
102
        <span id="button_3" class="buttonsearch">Check in</span>
102
        <span id="button_4" class="buttonsearch">Renew</span>
103
        <span id="button_4" class="buttonsearch">Renew</span>
103
        <span id="button_5" class="buttonsearch">Search catalog</span>
104
        <span id="button_5" class="buttonsearch">Search catalog</span>
104
    </ul>
105
    </ul>
105
</div><!-- /header_search -->
106
</div><!-- /header_search -->
106
107
107
108
[% INCLUDE 'searchbaruse.inc' %]
108
109
110
<script type="text/javascript">
111
    function focusInput(){
112
        document.getElementsByClassName('head-searchbox').focus();
113
    }
114
115
    function toggle(elem){style="width: calc(301px);"
116
        var buttonssearch = document.getElementsByClassName('active');
117
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
118
            buttonssearch[i].classList.remove('active');
119
        }
120
121
        if(elem){
122
            elem.classList.add('active');
123
            fold();
124
        }else{//Back
125
            document.getElementById('button_1').classList.add('active');
126
            document.getElementById('header_search').classList.remove('fold');
127
            document.getElementsByClassName('head-searchbox').style = '';
128
        }
129
130
        focusInput();
131
    }
132
133
    function clique(elem){
134
        var buttonssearch = document.getElementsByClassName('buttonsearch');
135
        var iconssearch = document.getElementsByClassName('iconsearch');
136
        var inputssearch = document.getElementsByClassName('head-searchbox');
137
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
138
            buttonssearch[i].classList.remove('active');
139
            if (elem == iconssearch[i]){
140
                buttonssearch[i].classList.add('active');
141
            }
142
        }
143
144
        for (var i = inputssearch.length - 1; i >= 0; i--) {
145
            inputssearch[i].classList.remove('focus');
146
147
            if (elem == iconssearch[i]){
148
                inputssearch[i].classList.add('focus');
149
150
                taille(inputssearch[i])
151
            }
152
        }
153
154
        focusInput();
155
        fold();
156
    }
157
158
    function fold(){
159
        document.getElementById('header_search').classList.add('fold');
160
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
161
        setTimeout(
162
            function(){
163
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
164
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
165
            }
166
        , 250);
167
    }
168
169
    function taille(el){
170
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
171
        el.style = "width:calc(500px - "+offsetWidth+"px)";
172
    }
173
174
    $('.btn').click(function(){
175
    if($(this).hasClass('active')){
176
        $(this).removeClass('active')
177
    } else {
178
        $(this).addClass('active')
179
    }
180
});
181
182
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc (-74 / +1 lines)
Lines 23-100 Link Here
23
	</ul>	
23
	</ul>	
24
</div>
24
</div>
25
25
26
<script type="text/javascript">
26
[% INCLUDE 'searchbaruse.inc' %]
27
    function focusInput(){
28
        document.getElementsByClassName('head-searchbox').focus();
29
    }
30
31
    function toggle(elem){style="width: calc(301px);"
32
        var buttonssearch = document.getElementsByClassName('active');
33
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
34
            buttonssearch[i].classList.remove('active');
35
        }
36
37
        if(elem){
38
            elem.classList.add('active');
39
            fold();
40
        }else{//Back
41
            document.getElementById('button_1').classList.add('active');
42
            document.getElementById('header_search').classList.remove('fold');
43
            document.getElementsByClassName('head-searchbox').style = '';
44
        }
45
46
        focusInput();
47
    }
48
49
    function clique(elem){
50
        var buttonssearch = document.getElementsByClassName('buttonsearch');
51
        var iconssearch = document.getElementsByClassName('iconsearch');
52
        var inputssearch = document.getElementsByClassName('head-searchbox');
53
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
54
            buttonssearch[i].classList.remove('active');
55
            if (elem == iconssearch[i]){
56
                buttonssearch[i].classList.add('active');
57
            }
58
        }
59
60
        for (var i = inputssearch.length - 1; i >= 0; i--) {
61
            inputssearch[i].classList.remove('focus');
62
63
            if (elem == iconssearch[i]){
64
                inputssearch[i].classList.add('focus');
65
66
                taille(inputssearch[i])
67
            }
68
        }
69
70
        focusInput();
71
        fold();
72
    }
73
74
    function fold(){
75
        document.getElementById('header_search').classList.add('fold');
76
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
77
        setTimeout(
78
            function(){
79
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
80
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
81
            }
82
        , 250);
83
    }
84
85
    function taille(el){
86
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
87
        el.style = "width:calc(500px - "+offsetWidth+"px)";
88
    }
89
90
    $('.btn').click(function(){
91
    if($(this).hasClass('active')){
92
        $(this).removeClass('active')
93
    } else {
94
        $(this).addClass('active')
95
    }
96
});
97
98
</script>
99
100
<!-- End Patrons Admin Resident Search Box -->
27
<!-- End Patrons Admin Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc (-76 / +2 lines)
Lines 24-104 Link Here
24
        <span id="button_2" class="buttonsearch">Check out</span>
24
        <span id="button_2" class="buttonsearch">Check out</span>
25
        <span id="button_3" class="buttonsearch">Search the catalog</span>
25
        <span id="button_3" class="buttonsearch">Search the catalog</span>
26
    </ul>
26
    </ul>
27
</div>
27
</div><!-- /header_search -->
28
28
29
<script type="text/javascript">
29
[% INCLUDE 'searchbaruse.inc' %]
30
    function focusInput(){
31
        document.getElementsByClassName('head-searchbox').focus();
32
    }
33
34
    function toggle(elem){style="width: calc(301px);"
35
        var buttonssearch = document.getElementsByClassName('active');
36
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
37
            buttonssearch[i].classList.remove('active');
38
        }
39
40
        if(elem){
41
            elem.classList.add('active');
42
            fold();
43
        }else{//Back
44
            document.getElementById('button_1').classList.add('active');
45
            document.getElementById('header_search').classList.remove('fold');
46
            document.getElementsByClassName('head-searchbox').style = '';
47
        }
48
        
49
        focusInput();
50
    }
51
52
    function clique(elem){
53
        var buttonssearch = document.getElementsByClassName('buttonsearch');
54
        var iconssearch = document.getElementsByClassName('iconsearch');
55
        var inputssearch = document.getElementsByClassName('head-searchbox');
56
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
57
            buttonssearch[i].classList.remove('active');
58
            if (elem == iconssearch[i]){
59
                buttonssearch[i].classList.add('active');
60
            }
61
        }
62
63
        for (var i = inputssearch.length - 1; i >= 0; i--) {
64
            inputssearch[i].classList.remove('focus');
65
66
            if (elem == iconssearch[i]){
67
                inputssearch[i].classList.add('focus');
68
69
                taille(inputssearch[i])
70
            }
71
        }
72
73
        focusInput();
74
        fold();
75
    }
76
77
    function fold(){
78
        document.getElementById('header_search').classList.add('fold');
79
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
80
        setTimeout(
81
            function(){
82
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
83
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
84
            }
85
        , 250);
86
    }
87
88
    function taille(el){
89
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
90
        el.style = "width:calc(500px - "+offsetWidth+"px)";
91
    }
92
93
    $('.btn').click(function(){
94
    if($(this).hasClass('active')){
95
        $(this).removeClass('active')
96
    } else {
97
        $(this).addClass('active')
98
    }
99
});
100
101
</script>
102
103
<!-- /header_search -->
104
<!-- End Main page Resident Search Box -->
30
<!-- End Main page Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/searchbaruse.inc (+72 lines)
Line 0 Link Here
1
<script type="text/javascript">
2
    function focusInput(){
3
        document.getElementsByClassName('head-searchbox').focus();
4
    }
5
6
    function toggle(elem){style="width: calc(301px);"
7
        var buttonssearch = document.getElementsByClassName('active');
8
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
9
            buttonssearch[i].classList.remove('active');
10
        }
11
12
        if(elem){
13
            elem.classList.add('active');
14
            fold();
15
        }else{//Back
16
            document.getElementById('button_1').classList.add('active');
17
            document.getElementById('header_search').classList.remove('fold');
18
            document.getElementsByClassName('head-searchbox').style = '';
19
        }
20
        
21
        focusInput();
22
    }
23
24
    function clique(elem){
25
        var buttonssearch = document.getElementsByClassName('buttonsearch');
26
        var iconssearch = document.getElementsByClassName('iconsearch');
27
        var inputssearch = document.getElementsByClassName('head-searchbox');
28
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
29
            buttonssearch[i].classList.remove('active');
30
            if (elem == iconssearch[i]){
31
                buttonssearch[i].classList.add('active');
32
            }
33
        }
34
35
        for (var i = inputssearch.length - 1; i >= 0; i--) {
36
            inputssearch[i].classList.remove('focus');
37
38
            if (elem == iconssearch[i]){
39
                inputssearch[i].classList.add('focus');
40
41
                taille(inputssearch[i])
42
            }
43
        }
44
45
        focusInput();
46
        fold();
47
    }
48
49
    function fold(){
50
        document.getElementById('header_search').classList.add('fold');
51
        setTimeout(
52
            function(){
53
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
54
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
55
            }
56
        , 250);
57
    }
58
59
    function taille(el){
60
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
61
        el.style = "width:calc(500px - "+offsetWidth+"px)";
62
    }
63
64
    $('.btn').click(function(){
65
    if($(this).hasClass('active')){
66
        $(this).removeClass('active')
67
    } else {
68
        $(this).addClass('active')
69
    }
70
});
71
72
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc (-73 / +1 lines)
Lines 33-109 Link Here
33
    </ul>
33
    </ul>
34
</div><!-- /header_search -->
34
</div><!-- /header_search -->
35
35
36
36
[% INCLUDE 'searchbaruse.inc' %]
37
<script type="text/javascript">
38
    function focusInput(){
39
        document.getElementsByClassName('head-searchbox').focus();
40
    }
41
42
    function toggle(elem){style="width: calc(301px);"
43
        var buttonssearch = document.getElementsByClassName('active');
44
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
45
            buttonssearch[i].classList.remove('active');
46
        }
47
48
        if(elem){
49
            elem.classList.add('active');
50
            fold();
51
        }else{//Back
52
            document.getElementById('button_1').classList.add('active');
53
            document.getElementById('header_search').classList.remove('fold');
54
            document.getElementsByClassName('head-searchbox').style = '';
55
        }
56
57
        focusInput();
58
    }
59
60
    function clique(elem){
61
        var buttonssearch = document.getElementsByClassName('buttonsearch');
62
        var iconssearch = document.getElementsByClassName('iconsearch');
63
        var inputssearch = document.getElementsByClassName('head-searchbox');
64
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
65
            buttonssearch[i].classList.remove('active');
66
            if (elem == iconssearch[i]){
67
                buttonssearch[i].classList.add('active');
68
            }
69
        }
70
71
        for (var i = inputssearch.length - 1; i >= 0; i--) {
72
73
            if (elem == iconssearch[i]){
74
                inputssearch[i].classList.add('focus');
75
76
                taille(inputssearch[i])
77
            }
78
        }
79
80
        focusInput();
81
        fold();
82
    }
83
84
    function fold(){
85
        document.getElementById('header_search').classList.add('fold');
86
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
87
        setTimeout(
88
            function(){
89
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
90
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
91
            }
92
        , 250);
93
    }
94
95
    function taille(el){
96
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
97
        el.style = "width:calc(500px - "+offsetWidth+"px)";
98
    }
99
100
    $('.btn').click(function(){
101
    if($(this).hasClass('active')){
102
        $(this).removeClass('active')
103
    } else {
104
        $(this).addClass('active')
105
    }
106
});
107
108
</script>
109
<!-- End Serials Resident Search Box -->
37
<!-- End Serials Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc (-13 / +13 lines)
Lines 1-39 Link Here
1
[% PROCESS 'html_helpers.inc' %]
1
[% PROCESS 'html_helpers.inc' %]
2
<div id="advsearch">
2
<div id="advsearch">
3
    <form action="" method="get">
3
    <form action="" method="get">
4
        <fieldset class="brief">
4
        <fieldset class="sidebar">
5
        <a href="#" class="toggle_element" id="lientype" data-element="#advsearch_form">Advanced search</a>
5
        <a href="#" class="toggle_element" id="lientype" data-element="#advsearch_form">Advanced search</a>
6
            <div id="advsearch_form" style="display:none">
6
            <div id="advsearch_form" style="display:none">
7
            <ol>
7
            <ol>
8
              <li>
8
              <li>
9
                <p for="issn">ISSN:
9
                <label for="issn">ISSN:</label>
10
                <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" /></p>
10
                <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
11
              </li>
11
              </li>
12
              <li>
12
              <li>
13
                <p for="title">Title:
13
                <label for="title">Title:</label>
14
                <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" /></p>
14
                <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
15
              </li>
15
              </li>
16
              [% IF Koha.Preference( 'marcflavour' ) == "UNIMARC" %]
16
              [% IF Koha.Preference( 'marcflavour' ) == "UNIMARC" %]
17
              <li>
17
              <li>
18
                <p for="ean">EAN:
18
                <label for="ean">EAN:</label>
19
                <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" /></p>
19
                <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
20
              </li>
20
              </li>
21
              [% END %]
21
              [% END %]
22
              <li>
22
              <li>
23
                <p for="publisher">Publisher:
23
                <label for="publisher">Publisher:</label>
24
                <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" /></p>
24
                <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
25
              </li>
25
              </li>
26
              <li>
26
              <li>
27
                <p for="supplier">Vendor:
27
                <label for="supplier">Vendor:</label>
28
                <input type="text" id="supplier" name="supplier_filter" value="[% supplier_filter | html %]" /></p>
28
                <input type="text" id="supplier" name="supplier_filter" value="[% supplier_filter | html %]" />
29
              </li>
29
              </li>
30
              <li>
30
              <li>
31
                <p for="branch">Library:
31
                <p for="branch">Library:</label>
32
                <select id="branch" name="branch_filter">
32
                <select id="branch" name="branch_filter">
33
                  <option value="">All</option>
33
                  <option value="">All</option>
34
                  [%# FIXME Should not we filter the libraries? %]
34
                  [%# FIXME Should not we filter the libraries? %]
35
                  [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
35
                  [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
36
                </select></p>
36
                </select>
37
              </li>
37
              </li>
38
            </ol>
38
            </ol>
39
            <input type="hidden" name="searched" value="1" />
39
            <input type="hidden" name="searched" value="1" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc (-74 / +1 lines)
Lines 26-103 Link Here
26
    </ul>
26
    </ul>
27
</div>
27
</div>
28
28
29
<script type="text/javascript">
29
[% INCLUDE 'searchbaruse.inc' %]
30
    function focusInput(){
31
        document.getElementsByClassName('head-searchbox').focus();
32
    }
33
34
    function toggle(elem){style="width: calc(301px);"
35
        var buttonssearch = document.getElementsByClassName('active');
36
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
37
            buttonssearch[i].classList.remove('active');
38
        }
39
40
        if(elem){
41
            elem.classList.add('active');
42
            fold();
43
        }else{//Back
44
            document.getElementById('button_1').classList.add('active');
45
            document.getElementById('header_search').classList.remove('fold');
46
            document.getElementsByClassName('head-searchbox').style = '';
47
        }
48
49
        focusInput();
50
    }
51
52
    function clique(elem){
53
        var buttonssearch = document.getElementsByClassName('buttonsearch');
54
        var iconssearch = document.getElementsByClassName('iconsearch');
55
        var inputssearch = document.getElementsByClassName('head-searchbox');
56
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
57
            buttonssearch[i].classList.remove('active');
58
            if (elem == iconssearch[i]){
59
                buttonssearch[i].classList.add('active');
60
            }
61
        }
62
63
        for (var i = inputssearch.length - 1; i >= 0; i--) {
64
            inputssearch[i].classList.remove('focus');
65
66
            if (elem == iconssearch[i]){
67
                inputssearch[i].classList.add('focus');
68
69
                taille(inputssearch[i])
70
            }
71
        }
72
73
        focusInput();
74
        fold();
75
    }
76
77
    function fold(){
78
        document.getElementById('header_search').classList.add('fold');
79
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
80
        setTimeout(
81
            function(){
82
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
83
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
84
            }
85
        , 250);
86
    }
87
88
    function taille(el){
89
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
90
        el.style = "width:calc(500px - "+offsetWidth+"px)";
91
    }
92
93
    $('.btn').click(function(){
94
    if($(this).hasClass('active')){
95
        $(this).removeClass('active')
96
    } else {
97
        $(this).addClass('active')
98
    }
99
});
100
101
</script>
102
103
<!-- End Suggestions Resident Search Box -->
30
<!-- End Suggestions Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc (-74 / +1 lines)
Lines 24-101 Link Here
24
    </ul>	
24
    </ul>	
25
</div>
25
</div>
26
26
27
<script type="text/javascript">
27
[% INCLUDE 'searchbaruse.inc' %]
28
    function focusInput(){
29
        document.getElementsByClassName('head-searchbox').focus();
30
    }
31
32
    function toggle(elem){style="width: calc(301px);"
33
        var buttonssearch = document.getElementsByClassName('active');
34
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
35
            buttonssearch[i].classList.remove('active');
36
        }
37
38
        if(elem){
39
            elem.classList.add('active');
40
            fold();
41
        }else{//Back
42
            document.getElementById('button_1').classList.add('active');
43
            document.getElementById('header_search').classList.remove('fold');
44
            document.getElementsByClassName('head-searchbox').style = '';
45
        }
46
47
        focusInput();
48
    }
49
50
    function clique(elem){
51
        var buttonssearch = document.getElementsByClassName('buttonsearch');
52
        var iconssearch = document.getElementsByClassName('iconsearch');
53
        var inputssearch = document.getElementsByClassName('head-searchbox');
54
        for (var i = buttonssearch.length - 1; i >= 0; i--) {
55
            buttonssearch[i].classList.remove('active');
56
            if (elem == iconssearch[i]){
57
                buttonssearch[i].classList.add('active');
58
            }
59
        }
60
61
        for (var i = inputssearch.length - 1; i >= 0; i--) {
62
            inputssearch[i].classList.remove('focus');
63
64
            if (elem == iconssearch[i]){
65
                inputssearch[i].classList.add('focus');
66
67
                taille(inputssearch[i])
68
            }
69
        }
70
71
        focusInput();
72
        fold();
73
    }
74
75
    function fold(){
76
        document.getElementById('header_search').classList.add('fold');
77
       // document.getElementsByClassName('head-searchbox').style = "width:calc(500px - 100px)";
78
        setTimeout(
79
            function(){
80
                var offsetWidth = document.getElementById('taille').offsetWidth +5;
81
                document.getElementsByClassName('head-searchbox').style = "width:calc(500px - "+offsetWidth+"px)";
82
            }
83
        , 250);
84
    }
85
86
    function taille(el){
87
        var offsetWidth = document.getElementById('taille').offsetWidth +5;
88
        el.style = "width:calc(500px - "+offsetWidth+"px)";
89
    }
90
91
    $('.btn').click(function(){
92
    if($(this).hasClass('active')){
93
        $(this).removeClass('active')
94
    } else {
95
        $(this).addClass('active')
96
    }
97
});
98
99
</script>
100
101
<!-- End Members Resident Search Box -->
28
<!-- End Members Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt (-67 / +39 lines)
Lines 1-47 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% formulaire = BLOCK %]
5
    [% INCLUDE 'prefs-admin-search.inc' %]
6
[% END %]
7
8
[% BLOCK pluginlist %]
4
[% BLOCK pluginlist %]
9
<div class="pluginlist">
5
<div class="pluginlist">
10
    [% FOREACH plugin IN plugins %]
6
[% FOREACH plugin IN plugins %]
11
        <div class="plugin">
7
    <div class="plugin">
12
            <div class="pluginname">
8
        <div class="pluginname">
13
                [% IF plugin.enabled %]
9
            [% IF plugin.enabled %]<input type="checkbox" checked="checked" id="checkbox_[% type | html %][% plugin.name | html %]">[% ELSE %]<input type="checkbox" id="checkbox_[% type | html %][% plugin.name | html %]">[% END %]
14
                    <input type="checkbox" checked="checked" id="checkbox_[% type | html %][% plugin.name | html %]">
10
            <label class='pluginlabel' for="checkbox_[% type | html %][% plugin.name | html %]">[% plugin.name | html %]</label></div>
15
                [% ELSE %]
11
        <div class="plugindesc">
16
                    <input type="checkbox" id="checkbox_[% type | html %][% plugin.name | html %]">
12
        [% SWITCH plugin.name %]
17
                [% END %]
13
        [% CASE 'AuthorityFile' %]
18
14
            <span>Suggest authorities which are relevant to the term the user searched for.</span>
19
                <label class='pluginlabel' for="checkbox_[% type | html %][% plugin.name | html %]">[% plugin.name | html %]</label>
15
        [% CASE 'ExplodedTerms' %]
20
            </div>
16
            <span>Suggest that patrons expand their searches to include broader/narrower/related terms.</span>
21
17
        [% CASE 'LibrisSpellcheck' %]
22
            <div class="plugindesc">
18
            <span>Use the LIBRIS spellcheck API.</span>
23
                [% SWITCH plugin.name %]
19
        [% END %]
24
                    [% CASE 'AuthorityFile' %]
25
                        <span>Suggest authorities which are relevant to the term the user searched for.</span>
26
                    [% CASE 'ExplodedTerms' %]
27
                        <span>Suggest that patrons expand their searches to include broader/narrower/related terms.</span>
28
                    [% CASE 'LibrisSpellcheck' %]
29
                        <span>Use the LIBRIS spellcheck API.</span>
30
                [% END %]
31
            </div>
32
        </div>
20
        </div>
33
    [% END %]
21
    </div>
22
[% END %]
34
</div>
23
</div>
35
[% END %]
24
[% END %]
36
37
[% INCLUDE 'doc-head-open.inc' %]
25
[% INCLUDE 'doc-head-open.inc' %]
38
<title>Did you mean? &rsaquo; Administration &rsaquo; Koha</title>
26
<title>Did you mean? &rsaquo; Administration &rsaquo; Koha</title>
39
[% INCLUDE 'doc-head-close.inc' %]
27
[% INCLUDE 'doc-head-close.inc' %]
40
41
</head>
28
</head>
42
29
43
<body id="admin_didyoumean" class="admin">
30
<body id="admin_didyoumean" class="admin">
44
[% INCLUDE 'header.inc' form=formulaire %]
31
[% INCLUDE 'header.inc' %]
32
[% INCLUDE 'prefs-admin-search.inc' %]
45
33
46
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
34
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
47
    <ol>
35
    <ol>
Lines 57-70 Link Here
57
            </a>
45
            </a>
58
        </li>
46
        </li>
59
    </ol>
47
    </ol>
60
61
    <ol>
62
        [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
63
    </ol>
64
65
    <ol>
66
        <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
67
    </ol>
68
</nav>
48
</nav>
69
49
70
<div class="main container-fluid">
50
<div class="main container-fluid">
Lines 72-105 Link Here
72
        <div class="col-sm-10 col-sm-push-2">
52
        <div class="col-sm-10 col-sm-push-2">
73
            <main>
53
            <main>
74
54
75
                <h2>Did you mean?</h2>
55
        <h1>Did you mean?</h1>
76
56
        <noscript><div class="dialog alert"><strong>Please enable Javascript:</strong>
77
                <noscript>
57
            Configuring 'Did you mean?' plugins requires Javascript. If
78
                    <div class="dialog alert">
58
            you are unable to use Javascript, you may be able to enter the
79
                        <strong>Please enable Javascript:</strong>
59
            configuration (which is stored in JSON in the OPACdidyoumean system preferences)
80
                        Configuring 'Did you mean?' plugins requires Javascript. If
60
            in the Local preferences tab in
81
                        you are unable to use Javascript, you may be able to enter the
61
            the system preference editor, but this is unsupported, not
82
                        configuration (which is stored in JSON in the OPACdidyoumean system preferences)
62
            recommended, and likely will not work.</div></noscript>
83
                        in the Local preferences tab in
63
        <div id="didyoumeanlegend">
84
                        the system preference editor, but this is unsupported, not
64
            Please put the 'Did you mean?' plugins in order by significance, from
85
                        recommended, and likely will not work.
65
            most significant to least significant, and check the box to enable those
86
                    </div>
66
            plugins that you want to use.
87
                </noscript>
67
        </div>
88
68
        <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
89
                <div id="didyoumeanlegend">
69
            <fieldset id="didyoumeanopac">
90
                    Please put the 'Did you mean?' plugins in order by significance, from
70
                <legend>OPAC</legend>
91
                    most significant to least significant, and check the box to enable those
71
                [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
92
                    plugins that you want to use.
72
            </fieldset>
93
                </div>
73
            <fieldset class="action"><button class="save-all submit" type="submit">Save configuration</button> <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">Cancel</a></fieldset>
74
        </form>
94
75
95
                <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
96
                    <fieldset id="didyoumeanopac">
97
                        <h3>OPAC</h3>
98
                        [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
99
                        <button class="save-all submit principal" type="submit">Save configuration</button>
100
                        <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">Cancel</a>
101
                    </fieldset>
102
                </form>
103
            </main>
76
            </main>
104
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
77
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
105
78
Lines 108-114 Link Here
108
                [% INCLUDE 'admin-menu.inc' %]
81
                [% INCLUDE 'admin-menu.inc' %]
109
            </aside>
82
            </aside>
110
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
83
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
111
    </div> <!-- /.row -->
84
     </div> <!-- /.row -->
112
85
113
[% MACRO jsinclude BLOCK %]
86
[% MACRO jsinclude BLOCK %]
114
    [% Asset.js("js/admin-menu.js") | $raw %]
87
    [% Asset.js("js/admin-menu.js") | $raw %]
Lines 158-162 Link Here
158
        }
131
        }
159
    </script>
132
    </script>
160
[% END %]
133
[% END %]
161
162
[% INCLUDE 'intranet-bottom.inc' %]
134
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-69 / +115 lines)
Lines 10-18 Link Here
10
[% USE Price %]
10
[% USE Price %]
11
[% USE AuthorisedValues %]
11
[% USE AuthorisedValues %]
12
[% SET footerjs = 1 %]
12
[% SET footerjs = 1 %]
13
[% formulaire = BLOCK %]
14
    [% INCLUDE 'circ-search.inc' %]
15
[% END %]
16
[% INCLUDE 'doc-head-open.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
17
[% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
14
[% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
18
[% SET destination = "circ" %]
15
[% SET destination = "circ" %]
Lines 27-33 Link Here
27
24
28
<body id="circ_circulation" class="circ">
25
<body id="circ_circulation" class="circ">
29
26
30
    [% INCLUDE 'header.inc' form=formulaire %]
27
    [% INCLUDE 'header.inc' %]
28
    [% INCLUDE 'circ-search.inc' %]
31
29
32
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
30
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
33
        <ol>
31
        <ol>
Lines 66-71 Link Here
66
                        [% INCLUDE 'members-toolbar.inc' %]
64
                        [% INCLUDE 'members-toolbar.inc' %]
67
                    [% END %]
65
                    [% END %]
68
66
67
                    <h1>Checkouts</h1>
68
69
                    <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
69
                    <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
70
                    [% IF ( was_renewed ) %]
70
                    [% IF ( was_renewed ) %]
71
                        <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
71
                        <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
Lines 235-240 Link Here
235
                                        Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
235
                                        Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
236
                                    </li>
236
                                    </li>
237
                                [% END %]
237
                                [% END %]
238
239
                                [% IF RECALLED %]
240
                                    [% IF RECALLED.waiting %]
241
                                        <li>Item <i>[% RECALLED.biblio.title | html %]</i> ([% RECALLED.item.barcode | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.waiting_date | $KohaDates %]</li>
242
                                    [% ELSIF RECALLED.requested or RECALLED.overdue %]
243
                                        <li>Item <i>[% RECALLED.biblio.title | html %]</i> [% IF RECALLED.item %]([% RECALLED.item.barcode | html %])[% END %] has been recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.created_date | $KohaDates %]</li>
244
                                    [% END %]
245
                                [% END %]
246
238
                            </ul>
247
                            </ul>
239
248
240
                            [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
249
                            [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
Lines 284-289 Link Here
284
                                        </p>
293
                                        </p>
285
                                    [% END %]
294
                                    [% END %]
286
295
296
                                    [% IF ( RECALLED ) %]
297
                                        <p>
298
                                            <label for="cancelrecall">Cancel recall</label>
299
                                            <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
300
                                            <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
301
                                        </p>
302
                                        [% IF RECALLED.waiting %]
303
                                            <p>
304
                                                <label for="revertrecall">Revert waiting status</label>
305
                                                <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
306
                                                <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
307
                                            </p>
308
                                        [% END %]
309
                                    [% END %]
310
287
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
311
                                    <input type="hidden" name="barcode" value="[% barcode | html %]" />
288
                                    <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
312
                                    <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
289
                                    <input type="hidden" name="issueconfirmed" value="1" />
313
                                    <input type="hidden" name="issueconfirmed" value="1" />
Lines 348-353 Link Here
348
                                </form>
372
                                </form>
349
                            [% END %]
373
                            [% END %]
350
374
375
                            [% IF ( RECALLED ) %]
376
                                <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
377
                                    <button class="print" type="submit" onclick="Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% RECALLED.id | html %]');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
378
                                </form>
379
                            [% END %]
380
351
                            <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
381
                            <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
352
                                [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
382
                                [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
353
                                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
383
                                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
Lines 365-373 Link Here
365
                                [% END %]
395
                                [% END %]
366
                            </form>
396
                            </form>
367
397
368
                            [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
398
                            [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
369
                                [% UNLESS noissues %]
399
                                [% UNLESS noissues %]
370
                                    <button type="submit" id="lientype" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
400
                                    <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
371
                                [% END %]
401
                                [% END %]
372
                            [% END %]
402
                            [% END %]
373
                        </div> <!-- /#circ_needsconfirmation -->
403
                        </div> <!-- /#circ_needsconfirmation -->
Lines 406-412 Link Here
406
436
407
                                            [% IF ( fast_cataloging ) %]
437
                                            [% IF ( fast_cataloging ) %]
408
                                                [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
438
                                                [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
409
                                                    <a class="approve" id="lientype" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% patron.borrowernumber | html %]&amp;branch=[% branch | html %]&amp;duedatespec=[% duedatespec | html %]&amp;stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a>
439
                                                    <a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% patron.borrowernumber | html %]&amp;branch=[% branch | html %]&amp;duedatespec=[% duedatespec | html %]&amp;stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a>
410
                                                [% END %]
440
                                                [% END %]
411
                                            [% END %]
441
                                            [% END %]
412
                                        </div>
442
                                        </div>
Lines 487-492 Link Here
487
                                [% IF ( USERBLOCKEDOVERDUE ) %]
517
                                [% IF ( USERBLOCKEDOVERDUE ) %]
488
                                    <li>Checkouts are BLOCKED because patron has overdue items.</li>
518
                                    <li>Checkouts are BLOCKED because patron has overdue items.</li>
489
                                [% END %]
519
                                [% END %]
520
521
                                [% IF ( RECALLED_INTRANSIT ) %]
522
                                    <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
523
                                [% END %]
490
                                </ul>
524
                                </ul>
491
525
492
                                [% IF (forceallow) %]
526
                                [% IF (forceallow) %]
Lines 554-560 Link Here
554
                                                                    <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
588
                                                                    <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
555
                                                                    <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
589
                                                                    <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
556
                                                                    <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
590
                                                                    <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
557
                                                                    <button class="btn btn-default btn-xs" type="submit" id="lientype" name="x"><i class="fa fa-check"></i> Check out</button>
591
                                                                    <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
558
                                                                </form>
592
                                                                </form>
559
                                                            </td>
593
                                                            </td>
560
                                                        </tr>
594
                                                        </tr>
Lines 563-569 Link Here
563
                                                </table>
597
                                                </table>
564
                                            </div> <!-- /.modal-body -->
598
                                            </div> <!-- /.modal-body -->
565
                                            <div class="modal-footer">
599
                                            <div class="modal-footer">
566
                                                <button type="button" class="btn btn-default cancel" data-dismiss="modal">Cancel</button>
600
                                                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
567
                                            </div>
601
                                            </div>
568
                                        </div> <!-- /.modal-content -->
602
                                        </div> <!-- /.modal-content -->
569
                                    </div> <!-- /.modal-dialog.modal-wide -->
603
                                    </div> <!-- /.modal-dialog.modal-wide -->
Lines 603-609 Link Here
603
                                <div class="col-sm-6">
637
                                <div class="col-sm-6">
604
                                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
638
                                    <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
605
                                        <input type="hidden" name="restoreduedatespec" />
639
                                        <input type="hidden" name="restoreduedatespec" />
606
                                        <div id="searchresults">
607
                                        [% IF ( issue ) %]
640
                                        [% IF ( issue ) %]
608
                                            <fieldset id="circ_circulation_issue" class="lastchecked">
641
                                            <fieldset id="circ_circulation_issue" class="lastchecked">
609
                                        [% ELSE %]
642
                                        [% ELSE %]
Lines 620-626 Link Here
620
653
621
                                        [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
654
                                        [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
622
655
623
                                        <h3 class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</h3>
656
                                        <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
624
657
625
                                        [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
658
                                        [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
626
                                            <div class="hint">Enter item barcode or keyword:</div>
659
                                            <div class="hint">Enter item barcode or keyword:</div>
Lines 634-645 Link Here
634
                                            <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
667
                                            <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
635
                                        [% END %]
668
                                        [% END %]
636
669
670
                                        <button type="submit" class="btn btn-default">Check out</button>
671
637
                                        <div id="show-circ-settings">
672
                                        <div id="show-circ-settings">
638
                                            <a href="#"><i class="fa-sign-out"></i></a>
673
                                            <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
639
                                        </div>
674
                                        </div>
640
675
641
                                        <button type="submit" class="btn btn-default principal">Check out</button>
642
643
                                        <div class="circ-settings">
676
                                        <div class="circ-settings">
644
677
645
                                                [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
678
                                                [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
Lines 662-692 Link Here
662
                                                [% END %]
695
                                                [% END %]
663
696
664
                                                [% UNLESS ( noissues ) %]
697
                                                [% UNLESS ( noissues ) %]
665
                                                    <div id="set-automatic-renewal" class="circ-setting">
698
                                                    [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
666
                                                        [% IF NEEDSCONFIRMATION %]
699
                                                        <div id="set-automatic-renewal" class="circ-setting">
667
                                                            [% IF auto_renew %]
700
                                                            [% IF NEEDSCONFIRMATION %]
668
                                                                [% IF patron.autorenew_checkouts %]
701
                                                                [% IF auto_renew %]
669
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
702
                                                                    [% IF patron.autorenew_checkouts %]
670
                                                                    title="Patron has opted out of auto-renewal"/>
703
                                                                        <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
704
                                                                        title="Patron has opted out of auto-renewal"/>
705
                                                                    [% ELSE %]
706
                                                                        <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
707
                                                                    [% END %]
671
                                                                [% ELSE %]
708
                                                                [% ELSE %]
672
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
709
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
673
                                                                [% END %]
710
                                                                [% END %]
674
                                                            [% ELSE %]
711
                                                            [% ELSE %]
675
                                                                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
712
                                                                [% IF ( auto_renew && patron.autorenew_checkouts ) %]
676
                                                            [% END %]
713
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
677
                                                        [% ELSE %]
714
                                                                [% ELSIF patron.autorenew_checkouts %]
678
                                                            [% IF ( auto_renew && patron.autorenew_checkouts ) %]
715
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
679
                                                                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
716
                                                                [% ELSE %]
680
                                                            [% ELSIF patron.autorenew_checkouts %]
717
                                                                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
681
                                                                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
718
                                                                    title="Patron has opted out of auto-renewal"/>
682
                                                            [% ELSE %]
719
                                                                [% END %]
683
                                                                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
684
                                                                title="Patron has opted out of auto-renewal"/>
685
                                                            [% END %]
720
                                                            [% END %]
686
                                                        [% END %]
687
721
688
                                                        <label for="auto_renew">Automatic renewal</label>
722
                                                            <label for="auto_renew">Automatic renewal</label>
689
                                                    </div>
723
                                                        </div>
724
                                                    [% END %]
690
                                                    [% IF Koha.Preference('decreaseLoanHighHolds') %]
725
                                                    [% IF Koha.Preference('decreaseLoanHighHolds') %]
691
                                                        <div id="set_high_holds_overrride" class="circ-setting">
726
                                                        <div id="set_high_holds_overrride" class="circ-setting">
692
                                                            [% IF NEEDSCONFIRMATION %]
727
                                                            [% IF NEEDSCONFIRMATION %]
Lines 734-740 Link Here
734
                                                    <input type="hidden" name="charges" value="yes" />
769
                                                    <input type="hidden" name="charges" value="yes" />
735
                                            [% END %]
770
                                            [% END %]
736
                                        </fieldset> <!-- /#circ_circulation_issue -->
771
                                        </fieldset> <!-- /#circ_circulation_issue -->
737
                                        </div>
738
772
739
                                        [% IF ( issue ) %]
773
                                        [% IF ( issue ) %]
740
                                            <div class="lastchecked">
774
                                            <div class="lastchecked">
Lines 756-762 Link Here
756
                                <div class="col-sm-6">
790
                                <div class="col-sm-6">
757
                            [% END %]
791
                            [% END %]
758
792
759
                            <div id="searchresults">
760
                            [% IF ( noissues ) %]
793
                            [% IF ( noissues ) %]
761
                                [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
794
                                [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
762
                                    <div id="circmessages" class="circmessage attention">
795
                                    <div id="circmessages" class="circmessage attention">
Lines 773-812 Link Here
773
                            [% ELSE %]
806
                            [% ELSE %]
774
                                <div id="circmessages" class="circmessage attention">
807
                                <div id="circmessages" class="circmessage attention">
775
                            [% END %]
808
                            [% END %]
776
                            </div>
777
809
778
                            [% INCLUDE 'patron_messages.inc' %]
810
                            [% INCLUDE 'patron_messages.inc' %]
779
811
780
                        </div>
812
                        </div> <!-- /#circmessages -->
781
                    </div> <!-- /div or div.col-sm-6 -->
813
                    </div> <!-- /div or div.col-sm-6 -->
782
                </div> <!-- /.row -->
814
                </div> <!-- /.row -->
783
815
784
                <div id="patronlists" class="toptabs">
816
                <div id="patronlists" class="toptabs">
785
                    <ul>
817
                    <ul>
786
                        <li>
818
                        <li>
787
                            [% IF ( issuecount ) %]
819
                            <a href="#checkouts">Checkouts ([% issuecount || 0 | html %])</a>
788
                                <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
789
                            [% ELSE %]
790
                                <a href="#checkouts">0 Checkouts</a>
791
                            [% END %]
792
                        </li>
820
                        </li>
793
821
794
                        [% IF relatives_issues_count %]
822
                        [% IF relatives_issues_count %]
795
                            <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
823
                            <li>
824
                                <a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts ([% relatives_issues_count | html %])</a>
825
                            </li>
796
                        [% END %]
826
                        [% END %]
797
827
798
                        <li>
828
                        <li>
799
                            [% IF ( holds_count ) %]
829
                            <a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a>
800
                                <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
801
                            [% ELSE %]
802
                                <a href="#reserves" id="holds-tab">0 Holds</a>
803
                            [% END %]
804
                        </li>
830
                        </li>
805
831
832
                        [% IF Koha.Preference('UseRecalls') %]
833
                            <li>
834
                                <a href="#recalls" id="recalls-tab">Recalls ([% recalls.count || 0 | html %])</a>
835
                            </li>
836
                        [% END %]
837
806
                        [% IF Koha.Preference('ArticleRequests') %]
838
                        [% IF Koha.Preference('ArticleRequests') %]
807
                            [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
839
                            [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
808
                            <li>
840
                            <li>
809
                                <a href="#article-requests" id="article-requests-tab"> [% current_article_requests.count | html %] Article requests</a>
841
                                <a href="#article-requests" id="article-requests-tab">Article requests ([% current_article_requests.count || 0 | html %])</a>
810
                            </li>
842
                            </li>
811
                        [% END %]
843
                        [% END %]
812
844
Lines 814-821 Link Here
814
                            <li>
846
                            <li>
815
                                [% IF ( patron.return_claims.count ) %]
847
                                [% IF ( patron.return_claims.count ) %]
816
                                    <a href="#return-claims" id="return-claims-tab">
848
                                    <a href="#return-claims" id="return-claims-tab">
817
                                        Claim(s)
849
                                        Claims
818
                                        [% IF patron.return_claims.resolved.count == 0 %]
850
                                        ([% IF patron.return_claims.resolved.count == 0 %]
819
                                            <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
851
                                            <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
820
                                        [% ELSE %]
852
                                        [% ELSE %]
821
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
853
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
Lines 824-845 Link Here
824
                                            <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
856
                                            <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
825
                                        [% ELSE %]
857
                                        [% ELSE %]
826
                                            <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
858
                                            <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
827
                                        [% END %]
859
                                        [% END %])
828
                                    </a>
860
                                    </a>
829
                                [% ELSE %]
861
                                [% ELSE %]
830
                                    <a href="#return-claims" id="return-claims-tab">
862
                                    <a href="#return-claims" id="return-claims-tab">
831
                                        Claim(s)
863
                                        Claims
832
                                        <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
864
                                        (<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
833
                                        <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
865
                                        <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>)
834
                                    </a>
866
                                    </a>
835
                                [% END %]
867
                                [% END %]
836
                            </li>
868
                            </li>
837
                        [% END %]
869
                        [% END %]
838
870
839
                        <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
871
                        <li>
872
                            <a id="debarments-tab-link" href="#reldebarments">Restrictions ([% debarments.count || 0 | html %])</a>
873
                        </li>
840
874
841
                        [% SET enrollments = patron.get_club_enrollments(1) %]
875
                        [% SET enrollments = patron.get_club_enrollments %]
842
                        [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
876
                        [% SET enrollable  = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
843
                        [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
877
                        [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
844
                            <li>
878
                            <li>
845
                                <a id="clubs-tab-link" href="#clubs-tab">
879
                                <a id="clubs-tab-link" href="#clubs-tab">
Lines 873-878 Link Here
873
                                            <th>Hold date</th>
907
                                            <th>Hold date</th>
874
                                            <th>Title</th>
908
                                            <th>Title</th>
875
                                            <th>Call number</th>
909
                                            <th>Call number</th>
910
                                            <th>Item type</th>
876
                                            <th>Barcode</th>
911
                                            <th>Barcode</th>
877
                                            <th>Pickup at</th>
912
                                            <th>Pickup at</th>
878
                                            <th>Expiration</th>
913
                                            <th>Expiration</th>
Lines 888-894 Link Here
888
                                    <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
923
                                    <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
889
924
890
                                    [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
925
                                    [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
891
                                    [% IF hold_cancellation %]
926
                                    [% IF hold_cancellation.count %]
892
                                        <select name="cancellation-reason">
927
                                        <select name="cancellation-reason">
893
                                            <option value="">No reason given</option>
928
                                            <option value="">No reason given</option>
894
                                            [% FOREACH reason IN hold_cancellation %]
929
                                            [% FOREACH reason IN hold_cancellation %]
Lines 904-910 Link Here
904
                                    <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
939
                                    <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
905
                                        <input type="hidden" name="from" value="circ" />
940
                                        <input type="hidden" name="from" value="circ" />
906
                                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
941
                                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
907
                                        <input type="submit" class="principal" value="Suspend all holds" />
942
                                        <input type="submit" value="Suspend all holds" />
908
943
909
                                        [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
944
                                        [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
910
                                        <label for="suspend_until">until</label>
945
                                        <label for="suspend_until">until</label>
Lines 919-925 Link Here
919
                                        <input type="hidden" name="from" value="circ" />
954
                                        <input type="hidden" name="from" value="circ" />
920
                                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
955
                                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
921
                                        <input type="hidden" name="suspend" value="0" />
956
                                        <input type="hidden" name="suspend" value="0" />
922
                                        <input type="submit" class="principal" value="Resume all suspended holds" />
957
                                        <input type="submit" value="Resume all suspended holds" />
923
                                    </form>
958
                                    </form>
924
                                </fieldset>
959
                                </fieldset>
925
                            [% END # /IF SuspendHoldsIntranet %]
960
                            [% END # /IF SuspendHoldsIntranet %]
Lines 929-934 Link Here
929
                        [% END # /IF holds_count %]
964
                        [% END # /IF holds_count %]
930
                    </div> <!-- /#reserves -->
965
                    </div> <!-- /#reserves -->
931
966
967
                    [% IF Koha.Preference('UseRecalls') %]
968
                        <div id="recalls">
969
                            [% INCLUDE 'recalls.inc' %]
970
                        </div>
971
                    [% END %]
972
932
                    [% IF Koha.Preference('ClaimReturnedLostValue') %]
973
                    [% IF Koha.Preference('ClaimReturnedLostValue') %]
933
                        [% INCLUDE 'patron-return-claims.inc' %]
974
                        [% INCLUDE 'patron-return-claims.inc' %]
934
                    [% END %]
975
                    [% END %]
Lines 939-945 Link Here
939
980
940
                </div> <!-- /#patronlists -->
981
                </div> <!-- /#patronlists -->
941
                [% ELSIF borrowernumber # IF patron %]
982
                [% ELSIF borrowernumber # IF patron %]
942
                    <div class="dialog message">Patron not found. <a id="lientype" href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
983
                    <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
943
                [% END # /IF patron %]
984
                [% END # /IF patron %]
944
985
945
                </div> <!-- /.col-sm-10.col-sm-push-2 -->
986
                </div> <!-- /.col-sm-10.col-sm-push-2 -->
Lines 965-970 Link Here
965
            </div> <!-- /.row -->
1006
            </div> <!-- /.row -->
966
        </main>
1007
        </main>
967
1008
1009
        [% IF Koha.Preference('ClaimReturnedLostValue') %]
1010
            [% INCLUDE 'modals/resolve_return_claim.inc' %]
1011
        [% END %]
1012
968
<!-- Modal -->
1013
<!-- Modal -->
969
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1014
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
970
    <div class="modal-dialog">
1015
    <div class="modal-dialog">
Lines 980-990 Link Here
980
</div> <!-- /#barcodeSubmittedModal -->
1025
</div> <!-- /#barcodeSubmittedModal -->
981
1026
982
[% MACRO jsinclude BLOCK %]
1027
[% MACRO jsinclude BLOCK %]
983
    [% INCLUDE 'calendar.inc' %]
984
    [% INCLUDE 'datatables.inc' %]
1028
    [% INCLUDE 'datatables.inc' %]
985
    [% INCLUDE 'columns_settings.inc' %]
1029
    [% INCLUDE 'columns_settings.inc' %]
986
    [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
987
    [% INCLUDE 'timepicker.inc' %]
988
    [% INCLUDE 'select2.inc' %]
1030
    [% INCLUDE 'select2.inc' %]
989
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1031
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
990
    [% INCLUDE 'js-date-format.inc' %]
1032
    [% INCLUDE 'js-date-format.inc' %]
Lines 1012-1021 Link Here
1012
    </script>
1054
    </script>
1013
    [% Asset.js("js/pages/circulation.js") | $raw %]
1055
    [% Asset.js("js/pages/circulation.js") | $raw %]
1014
    [% Asset.js("js/checkouts.js") | $raw %]
1056
    [% Asset.js("js/checkouts.js") | $raw %]
1057
    [% IF Koha.Preference('ClaimReturnedLostValue') %]
1058
        [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1059
    [% END %]
1015
    [% Asset.js("js/holds.js") | $raw %]
1060
    [% Asset.js("js/holds.js") | $raw %]
1061
    [% INCLUDE 'calendar.inc' %]
1016
    <script>
1062
    <script>
1017
        columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1063
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1018
        columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1064
        table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1019
1065
1020
        [% IF borrowernumber and patron %]
1066
        [% IF borrowernumber and patron %]
1021
            if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1067
            if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
Lines 1090-1096 Link Here
1090
    </script>
1136
    </script>
1091
    [% INCLUDE 'str/members-menu.inc' %]
1137
    [% INCLUDE 'str/members-menu.inc' %]
1092
    [% Asset.js("js/members-menu.js") | $raw %]
1138
    [% Asset.js("js/members-menu.js") | $raw %]
1139
    [% Asset.js("js/recalls.js") | $raw %]
1093
[% END %]
1140
[% END %]
1094
1141
1095
[% INCLUDE 'intranet-bottom.inc' %]
1142
[% INCLUDE 'intranet-bottom.inc' %]
1096
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-286 / +312 lines)
Lines 13-22 Link Here
13
[% USE TablesSettings %]
13
[% USE TablesSettings %]
14
[% PROCESS 'i18n.inc' %]
14
[% PROCESS 'i18n.inc' %]
15
[% SET footerjs = 1 %]
15
[% SET footerjs = 1 %]
16
[% formulaire = BLOCK %]
17
    [% INCLUDE 'circ-search.inc' %]
18
[% END %]
19
[% INCLUDE 'doc-head-open.inc' %]
16
[% INCLUDE 'doc-head-open.inc' %]
17
[% SET libraries = Branches.all %]
18
[% SET categories = Categories.all.unblessed %]
19
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %]
20
[% PROCESS "patron-search.inc" %]
20
[% UNLESS ( multi_hold ) %]
21
[% UNLESS ( multi_hold ) %]
21
    <title>Place a hold on [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Holds &rsaquo; Circulation &rsaquo; Koha</title>
22
    <title>Place a hold on [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Holds &rsaquo; Circulation &rsaquo; Koha</title>
22
[% ELSE %]
23
[% ELSE %]
Lines 92-98 Link Here
92
93
93
<body id="circ_request" class="catalog">
94
<body id="circ_request" class="catalog">
94
95
95
[% INCLUDE 'header.inc' form=formulaire %]
96
[% INCLUDE 'header.inc' %]
97
[% INCLUDE 'circ-search.inc' %]
96
98
97
[% UNLESS ( multi_hold ) %]
99
[% UNLESS ( multi_hold ) %]
98
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
100
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
Lines 112-123 Link Here
112
                </a>
114
                </a>
113
            </li>
115
            </li>
114
        </ol>
116
        </ol>
115
        <ol>
116
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
117
        </ol>
118
        <ol>
119
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
120
        </ol>
121
    </nav>
117
    </nav>
122
[% ELSE %]
118
[% ELSE %]
123
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
119
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
Lines 158-163 Link Here
158
        [% END %]
154
        [% END %]
159
155
160
        <main>
156
        <main>
157
            <h1>Holds</h1>
161
158
162
            [% IF ( nobiblio ) %]
159
            [% IF ( nobiblio ) %]
163
                <div class="dialog alert">
160
                <div class="dialog alert">
Lines 190-196 Link Here
190
            [% END %]
187
            [% END %]
191
188
192
            [% UNLESS ( multi_hold ) %]
189
            [% UNLESS ( multi_hold ) %]
193
                <h2>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h2>
190
                <h2>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</h2>
194
            [% ELSE %]
191
            [% ELSE %]
195
                <h2>
192
                <h2>
196
                    [% IF ( patron ) %]
193
                    [% IF ( patron ) %]
Lines 219-253 Link Here
219
                        <p>No club with this name, please, try another</p>
216
                        <p>No club with this name, please, try another</p>
220
                    </div>
217
                    </div>
221
                [% END %]
218
                [% END %]
222
                <fieldset class="brief">
219
                <fieldset>
223
                    [% UNLESS multi_hold %]
220
                    [% UNLESS multi_hold %]
224
                        [% IF clubcount %]
221
                        [% IF clubcount %]
225
                            <h3>Search patrons or clubs</h3>
222
                            <h2>Search patrons or clubs</h2>
226
                        [% ELSE %]
223
                        [% ELSE %]
227
                            <label>Search patrons</label>
224
                            <h2>Search patrons</h2>
228
                        [% END %]
225
                        [% END %]
229
                    [% END %]
226
                    [% END %]
230
                    <div id="circ_holds_select" class="toptabs">
227
                    <div id="circ_holds_select" class="toptabs">
231
                        <ul>
228
                        <ul class="nav nav-tabs" role="tablist">
232
                            <li><a href="#holds_patronsearch_pane">Patrons</a></li>
229
                            <li role="presentation" class="active"><a href="#holds_patronsearch_pane" aria-controls="holds_patronsearch_pane" role="tab" data-toggle="tab">Patrons</a></li>
233
                            [% IF clubcount %]
230
                            [% IF clubcount %]
234
                                <li><a href="#holds_clubsearch_pane">Clubs</a></li>
231
                                <li role="presentation"><a href="#holds_clubsearch_pane" aria-controls="holds_clubsearch_pane" role="tab" data-toggle="tab">Clubs</a></li>
235
                            [% END %]
232
                            [% END %]
236
                        </ul>
233
                        </ul>
237
                        <div class="tab-content">
234
                        <div class="tab-content">
238
                            <div id="holds_patronsearch_pane" role="tabpanel" class="tab-pane active">
235
                            <div id="holds_patronsearch_pane" role="tabpanel" class="tab-pane active">
239
                                [% PROCESS patron_search_filters_simple %]
236
                                [% PROCESS patron_search_filters_simple %]
240
237
241
                                [% IF clubs %]
238
                                [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %]
242
                                    [% INCLUDE 'clubs-table.inc' destination = "holds" %]
243
                                [% END %]
244
                            </div>
239
                            </div>
245
                            [% IF clubcount %]
240
                            [% IF clubcount %]
246
                                <div id="holds_clubsearch_pane" role="tabpanel" class="tab-pane">
241
                                <div id="holds_clubsearch_pane" role="tabpanel" class="tab-pane">
247
                                    <form id="holds_clubsearch" action="request.pl" method="post">
242
                                    <form id="holds_clubsearch" action="request.pl" method="post">
248
                                        <div class="hint">Enter club ID or partial name:</div>
243
                                        <div class="hint">Enter club ID or partial name:</div>
249
                                        <input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" />
244
                                        <input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" />
250
                                        <input type="submit" class="principal" value="Search" />
245
                                        <input type="submit" value="Search" />
251
                                        [% FOREACH biblionumber IN biblionumbers %]
246
                                        [% FOREACH biblionumber IN biblionumbers %]
252
                                        <input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/>
247
                                        <input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/>
253
                                        [% END %]
248
                                        [% END %]
Lines 265-283 Link Here
265
                <div class="dialog alert hide clubalert">
260
                <div class="dialog alert hide clubalert">
266
                </div>
261
                </div>
267
                <fieldset class="rows">
262
                <fieldset class="rows">
268
                    <h3>Hold details</h3>
263
                    <legend>Hold details</legend>
269
                    <form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form">
264
                    <form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form">
270
265
271
                        [% IF ( multi_hold ) %]
266
                        [% IF ( multi_hold ) %]
272
                            <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/>
273
                            <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
274
                            <input type="hidden" name="request" value="any"/>
267
                            <input type="hidden" name="request" value="any"/>
275
                            [% FOREACH biblioloo IN biblioloop %]
268
                            [% FOREACH biblioloo IN biblioloop %]
276
                                <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
269
                                [% UNLESS biblioloo.none_avail %]
277
                                <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
270
                                    <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/>
271
                                    <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
272
                                    <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
273
                                [% END %]
278
                            [% END %]
274
                            [% END %]
279
                        [% ELSE %]
275
                        [% ELSE %]
280
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
276
                            <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/>
281
                            <input type="hidden" name="title" value="[% biblio.title | html %]" />
277
                            <input type="hidden" name="title" value="[% biblio.title | html %]" />
282
                            <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
278
                            <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
283
                        [% END # /IF multi_hold %]
279
                        [% END # /IF multi_hold %]
Lines 340-353 Link Here
340
                            [% END %]
336
                            [% END %]
341
                        [% UNLESS ( multi_hold ) %]
337
                        [% UNLESS ( multi_hold ) %]
342
                            <fieldset class="action">
338
                            <fieldset class="action">
343
                                <input type="submit" class="principal" value="Place hold" />
339
                                <input type="submit" value="Place hold" />
344
                            </fieldset>
340
                            </fieldset>
345
                        [% ELSE %]
341
                        [% ELSE %]
346
                            <table id="requesttitles">
342
                            <table id="requesttitles">
347
                                <tr>
343
                                <tr>
348
                                    <th>&nbsp;</th>
344
                                    <th>&nbsp;</th>
349
                                    <th>Title</th>
345
                                    <th>Title</th>
350
                                    [% UNLESS ( item_level_itypes ) %]
346
                                    [% UNLESS Koha.Preference('item-level_itypes') %]
351
                                        <th>Item type</th>
347
                                        <th>Item type</th>
352
                                    [% END %]
348
                                    [% END %]
353
                                    <th>Priority</th>
349
                                    <th>Priority</th>
Lines 368-373 Link Here
368
                                            <ul>
364
                                            <ul>
369
                                                <li>
365
                                                <li>
370
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
366
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
367
                                                    [% IF biblioloo.author %] by [% biblioloo.author | html %][% END %]
371
                                                </li>
368
                                                </li>
372
                                                [% IF ( biblioloo.publicationyear ) %]
369
                                                [% IF ( biblioloo.publicationyear ) %]
373
                                                    <li>
370
                                                    <li>
Lines 379-387 Link Here
379
                                                <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
376
                                                <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
380
                                            [% END %]
377
                                            [% END %]
381
                                        </td>
378
                                        </td>
382
                                        [% UNLESS ( item_level_itypes ) %]
379
                                        [% UNLESS Koha.Preference('item-level_itypes') %]
383
                                            <td>
380
                                            <td>
384
                                                <img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" />
381
                                                <img src="[% biblioloo.itemtype.image_location| html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" />
385
                                            </td>
382
                                            </td>
386
                                        [% END %]
383
                                        [% END %]
387
                                        <td>[% biblioloo.rank | html %]</td>
384
                                        <td>[% biblioloo.rank | html %]</td>
Lines 430-436 Link Here
430
                    </div>
427
                    </div>
431
                [% END %]
428
                [% END %]
432
429
433
                [% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
430
                [% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted || recall ) %]
434
                    <div class="dialog alert">
431
                    <div class="dialog alert">
435
432
436
                        [% UNLESS ( multi_hold ) %]
433
                        [% UNLESS ( multi_hold ) %]
Lines 468-473 Link Here
468
                                        <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>:</strong> [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
465
                                        <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>:</strong> [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
469
                                    [% END %]
466
                                    [% END %]
470
                                [% END %]
467
                                [% END %]
468
                            [% ELSIF ( none_available ) %]
469
                                <li><strong>No items available: </strong>One or more records have no items that can be held</li>
471
                            [% END # /IF exceeded_maxreserves %]
470
                            [% END # /IF exceeded_maxreserves %]
472
                        [% END # /UNLESS multi_hold %]
471
                        [% END # /UNLESS multi_hold %]
473
                    </div>
472
                    </div>
Lines 506-528 Link Here
506
                </div>
505
                </div>
507
506
508
                <fieldset class="rows">
507
                <fieldset class="rows">
509
                    <h3>Hold details</h3>
508
                    <legend>Hold details</legend>
510
                    <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
509
                    <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
511
510
512
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
511
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
513
                        <input type="hidden" name="type" value="str8" />
512
                        [% FOREACH biblionumber IN biblionumbers %]
514
513
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/>
514
                        [% END %]
515
                        [% IF ( multi_hold ) %]
515
                        [% IF ( multi_hold ) %]
516
                            <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/>
517
                            <input type="hidden" name="multi_holds" id="multi_holds" value="1" />
516
                            <input type="hidden" name="multi_holds" id="multi_holds" value="1" />
518
                            <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
519
                            <input type="hidden" name="request" value="any"/>
517
                            <input type="hidden" name="request" value="any"/>
520
                            [% FOREACH biblioloo IN biblioloop %]
518
                            [% FOREACH biblioloo IN biblioloop %]
521
                                <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
519
                                [% UNLESS biblioloo.none_avail %]
522
                                <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
520
                                    <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/>
521
                                    <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
522
                                    <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
523
                                [% END %]
523
                            [% END %]
524
                            [% END %]
524
                        [% ELSE %]
525
                        [% ELSE %]
525
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
526
                            <input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/>
526
                            <input type="hidden" name="title" value="[% biblio.title | html %]" />
527
                            <input type="hidden" name="title" value="[% biblio.title | html %]" />
527
                            <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
528
                            <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
528
                        [% END # /IF multi_hold %]
529
                        [% END # /IF multi_hold %]
Lines 603-609 Link Here
603
                                    [% ELSE %]
604
                                    [% ELSE %]
604
                                        <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
605
                                        <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
605
                                    [% END %]
606
                                    [% END %]
606
                                    <input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" />
607
                                    <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
607
                                    <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
608
                                </li>
608
                                </li>
609
609
Lines 625-755 Link Here
625
                        </ol>
625
                        </ol>
626
626
627
                        [% UNLESS ( multi_hold ) %]
627
                        [% UNLESS ( multi_hold ) %]
628
628
                            <fieldset class="action">
629
629
                                [% IF ( patron.borrowernumber ) %]
630
                            [% FOREACH bibitemloo IN bibitemloop %]
630
                                    [% IF ( override_required ) %]
631
                                <ol>
631
                                        <button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
632
                                    [% UNLESS ( item_level_itypes ) %]
632
                                    [% ELSIF ( none_available ) %]
633
                                        <li>
633
                                        <button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button>
634
                                            <span class="label">Item type:</span>
634
                                    [% ELSE %]
635
                                            [% bibitemloo.description | html %]
635
                                        <button type="submit" class="btn btn-default">Place hold</button>
636
                                        </li>
637
                                    [% END %]
636
                                    [% END %]
637
                                [% END %]
638
                            </fieldset>
638
639
639
                                    [% IF ( bibitemloo.publicationyear ) %]
640
                            [% biblio = biblioloop.0 %]
640
                                        <li>
641
                                            <span class="label">Publication year:</span>
642
                                            [% bibitemloo.publicationyear | html %]
643
                                        </li>
644
                                    [% END %]
645
                                </ol>
646
641
647
                                <h2 style="padding: 0 1em;">
642
                            <ol>
648
                                    Place a hold on a specific item
643
                                [% UNLESS Koha.Preference('item-level_itypes') %]
649
                                    [% IF bibitemloo.force_hold_level == 'item' %]
644
                                    <li>
650
                                         <span class="error"><em>(Required)</em></span>
645
                                        <span class="label">Item typeX:</span>
651
                                    [% END %]
646
                                        [% biblio.itemtype.translated_description | html %]
652
                                </h2>
647
                                    </li>
648
                                [% END %]
653
649
654
                                <table id="requestspecific">
650
                                [% IF ( biblio.biblioitem.publicationyear ) %]
655
                                    <thead>
651
                                    <li>
656
                                        <tr>
652
                                        <span class="label">Publication year:</span>
657
                                            <th>Hold</th>
653
                                        [% biblio.biblioitem.publicationyear | html %]
658
                                            [% IF ( item_level_itypes ) %]
654
                                    </li>
659
                                                <th>Item type</th>
655
                                [% END %]
660
                                            [% END %]
656
                            </ol>
661
                                            <th>Barcode</th>
657
662
                                            <th>Home library</th>
658
                            <h2 style="padding: 0 1em;">
663
                                            <th>Last location</th>
659
                                Place a hold on a specific item
664
                                            [% IF itemdata_ccode %]
660
                                [% IF force_hold_level == 'item' %]
665
                                                <th>Collection</th>
661
                                     <span class="error"><em>(Required)</em></span>
666
                                            [% END %]
662
                                [% END %]
667
                                            <th>Call number</th>
663
                            </h2>
668
                                            <th>Copy number</th>
664
669
                                            [% IF itemdata_enumchron %]
665
                            <table id="requestspecific">
670
                                                <th>Vol no.</th>
666
                                <thead>
671
                                            [% END %]
667
                                    <tr>
672
                                            <th>Information</th>
668
                                        <th>Hold</th>
673
                                            <th>Allowed pickup locations</th>
669
                                        <th>Allowed pickup locations</th>
674
                                        </tr>
670
                                        [% IF Koha.Preference('item-level_itypes') %]
675
                                    </thead>
671
                                            <th>Item type</th>
676
                                    <tbody>
672
                                        [% END %]
677
                                        [% SET selected = 0 %]
673
                                        <th>Barcode</th>
678
                                        [% FOREACH itemloo IN bibitemloo.itemloop %]
674
                                        <th>Home library</th>
679
                                            [% UNLESS ( itemloo.hide ) %]
675
                                        <th>Last location</th>
680
                                                <tr class="[% itemloo.backgroundcolor | html %]">
676
                                        [% IF itemdata_ccode %]
681
                                                    <td>
677
                                            <th>Collection</th>
682
                                                        [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
678
                                        [% END %]
683
                                                            <span class="error">
679
                                        <th>Call number</th>
684
                                                                <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
680
                                        <th>Copy number</th>
685
                                                                Hold must be record level
681
                                        [% IF itemdata_enumchron %]
686
                                                            </span>
682
                                            <th>Vol no.</th>
687
                                                        [% ELSIF ( itemloo.available ) %]
683
                                        [% END %]
688
                                                            <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
684
                                        <th>Information</th>
689
                                                        [% ELSIF ( itemloo.override ) %]
685
                                    </tr>
690
                                                            <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
686
                                </thead>
691
                                                            <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
687
                                <tbody>
692
                                                        [% ELSE %]
688
                                    [% SET selected = 0 %]
693
                                                            <span class="error">
689
                                    [% FOREACH itemloo IN biblio.itemloop %]
694
                                                                <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
690
                                        [% UNLESS ( itemloo.hide ) %]
695
                                                                [% IF itemloo.not_holdable %]
691
                                            <tr class="[% itemloo.backgroundcolor | html %]">
696
                                                                    [% IF itemloo.not_holdable == 'damaged' %]
692
                                                <td>
697
                                                                        Item damaged
693
                                                    [% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
698
                                                                    [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
694
                                                        <span class="error">
699
                                                                        Age restricted
695
                                                            <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
700
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
696
                                                            Hold must be record level
701
                                                                        Exceeded max holds per record
697
                                                        </span>
702
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
698
                                                    [% ELSIF ( itemloo.available ) %]
703
                                                                        Daily hold limit reached for patron
699
                                                        <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
704
                                                                    [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
700
                                                    [% ELSIF ( itemloo.override ) %]
705
                                                                        Too many holds
701
                                                        <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
706
                                                                    [% ELSIF itemloo.not_holdable == 'notReservable' %]
702
                                                        <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
707
                                                                        Not holdable
703
                                                    [% ELSE %]
708
                                                                    [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
704
                                                        <span class="error">
709
                                                                        Patron is from different library
705
                                                            <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
710
                                                                    [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
706
                                                            [% IF itemloo.not_holdable %]
711
                                                                        Cannot place hold from patron's library
707
                                                                [% IF itemloo.not_holdable == 'damaged' %]
712
                                                                    [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
708
                                                                    <span>Item damaged</span>
713
                                                                        Patron already has hold for this item
709
                                                                [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
714
                                                                    [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
710
                                                                    <span>Age restricted</span>
715
                                                                        Cannot be transferred to pickup library
711
                                                                [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
716
                                                                    [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
712
                                                                    <span>Exceeded max holds per record</span>
717
                                                                        Only pickup locations within the same hold group are allowed
713
                                                                [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
718
                                                                    [% ELSIF itemloo.not_holdable == 'noReservesAllowed' %]
714
                                                                    <span>Daily hold limit reached for patron</span>
719
                                                                        No reserves are allowed on this item
715
                                                                [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
720
                                                                    [% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %]
716
                                                                    <span>Too many holds</span>
721
                                                                        Library is not a pickup location
717
                                                                [% ELSIF itemloo.not_holdable == 'notReservable' %]
722
                                                                    [% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %]
718
                                                                    <span>Not holdable</span>
723
                                                                        No valid pickup location
719
                                                                [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
724
                                                                    [% ELSE %]
720
                                                                    <span>Patron is from different library</span>
725
                                                                        [% itemloo.not_holdable | html %]
721
                                                                [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
726
                                                                    [% END %]
722
                                                                    <span>Cannot place hold from patron's library</span>
723
                                                                [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
724
                                                                    <span>Patron already has hold for this item</span>
725
                                                                [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
726
                                                                    <span>Cannot be transferred to pickup library</span>
727
                                                                [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
728
                                                                    <span>Only pickup locations within the same hold group are allowed</span>
729
                                                                [% ELSIF itemloo.not_holdable == 'noReservesAllowed' %]
730
                                                                    <span>No holds are allowed on this item</span>
731
                                                                [% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %]
732
                                                                    <span>Library is not a pickup location</span>
733
                                                                [% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %]
734
                                                                    <span>No valid pickup location</span>
735
                                                                [% ELSIF itemloo.not_holdable == 'notforloan' %]
736
                                                                    <span>Not for loan</span>
737
                                                                [% ELSE %]
738
                                                                    <span>[% itemloo.not_holdable | html %]</span>
727
                                                                [% END %]
739
                                                                [% END %]
728
                                                            </span>
729
                                                        [% END # /IF itemloo.force_hold_level %]
730
                                                    </td>
731
                                                    [% IF ( item_level_itypes ) %]
732
                                                        <td>
733
                                                            [% UNLESS ( noItemTypeImages ) %]
734
                                                                [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl | html %]" alt="" /> <br /> [% END %]
735
                                                            [% END %]
740
                                                            [% END %]
736
                                                            [% itemloo.itypename | html %]
741
                                                        </span>
737
                                                        </td>
742
                                                    [% END # /IF force_hold_level %]
743
                                                </td>
744
                                                <td>
745
                                                [% IF (itemloo.pickup_locations_count > 0) %]
746
                                                    <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;"
747
                                                            data-item-id="[% itemloo.itemnumber | html %]"
748
                                                            data-patron-id="[% patron.borrowernumber | html %]"
749
                                                            data-pickup-location-source="item">
750
                                                    [% IF (itemloo.default_pickup_location) %]
751
                                                        <option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option>
738
                                                    [% END %]
752
                                                    [% END %]
753
                                                    </select>
754
                                                [% END %]
755
                                                </td>
756
                                                [% IF Koha.Preference('item-level_itypes') %]
739
                                                    <td>
757
                                                    <td>
740
                                                        [% itemloo.barcode | html %]
758
                                                        [% UNLESS ( noItemTypeImages ) %]
759
                                                            [% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %]
760
                                                        [% END %]
761
                                                        [% itemloo.itemtype.translated_description | html %]
741
                                                    </td>
762
                                                    </td>
763
                                                [% END %]
764
                                                <td>
765
                                                    [% itemloo.barcode | html %]
766
                                                </td>
767
                                                <td>
768
                                                    [% Branches.GetName( itemloo.homebranch ) | html %]
769
                                                </td>
770
                                                <td>
771
                                                    [% Branches.GetName( itemloo.holdingbranch ) | html %]
772
                                                </td>
773
                                                [% IF itemdata_ccode %]
742
                                                    <td>
774
                                                    <td>
743
                                                        [% Branches.GetName( itemloo.homebranch ) | html %]
775
                                                        [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
744
                                                    </td>
776
                                                    </td>
777
                                                [% END %]
778
                                                <td>
779
                                                    [% itemloo.itemcallnumber | html %]
780
                                                </td>
781
                                                <td>
782
                                                    [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %]&nbsp;[% END %]
783
                                                </td>
784
                                                [% IF itemdata_enumchron %]
745
                                                    <td>
785
                                                    <td>
746
                                                        [% Branches.GetName( itemloo.holdingbranch ) | html %]
786
                                                        [% itemloo.enumchron | html %]
747
                                                    </td>
787
                                                    </td>
748
                                                    [% IF itemdata_ccode %]
788
                                                [% END %]
749
                                                        <td>
789
                                                [% IF ( itemloo.onloan ) %]
750
                                                            [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
790
                                                    <td data-order="[% itemloo.date_due | html %]">
751
                                                        </td>
791
                                                        <span class="checkedout">Due [% itemloo.date_due | $KohaDates  as_due_date => 1 %]</span>
752
                                                    [% END %]
792
                                                [% ELSE %]
753
                                                    <td>
793
                                                    <td>
754
                                                        [% IF ( itemloo.transfertwhen ) %]
794
                                                        [% IF ( itemloo.transfertwhen ) %]
755
                                                            <span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
795
                                                            <span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
Lines 770-855 Link Here
770
                                                            [% IF ( itemloo.waitingdate ) %]
810
                                                            [% IF ( itemloo.waitingdate ) %]
771
                                                                [% itemloo.waitingdate | $KohaDates %]
811
                                                                [% itemloo.waitingdate | $KohaDates %]
772
                                                            [% ELSE %]
812
                                                            [% ELSE %]
773
                                                                [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
813
                                                                [% IF ( itemloo.reservedate ) %]
774
                                                                [% IF ( itemloo.canreservefromotherbranches ) %]
814
                                                                    [% itemloo.reservedate | html %]
775
                                                                    for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | uri %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a>
776
                                                                [% END %]
815
                                                                [% END %]
777
                                                                [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %]
816
                                                            [% END %].
778
                                                                [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since
817
                                                            <a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&amp;CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&amp;CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a>
779
                                                                [% IF ( itemloo.waitingdate ) %]
818
                                                        [% END # /IF itemloo.nocancel %]
780
                                                                    [% itemloo.waitingdate | $KohaDates %]
819
                                                    [% ELSE %]
781
                                                                [% ELSE %]
820
                                                        Not on hold
782
                                                                    [% IF ( itemloo.reservedate ) %]
821
                                                    [% END # /IF itemloo.reservedate %]
783
                                                                        [% itemloo.reservedate | html %]
784
                                                                    [% END %]
785
                                                                [% END %].
786
                                                                <a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&amp;CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&amp;CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a>
787
                                                            [% END # /IF itemloo.nocancel %]
788
                                                        [% ELSE %]
789
                                                            Not on hold
790
                                                        [% END # /IF itemloo.reservedate %]
791
822
792
                                                        [% IF itemloo.item_level_holds == "N" %]
823
                                                    [% IF itemloo.item_level_holds == "N" %]
793
                                                            <br/>Item level hold not allowed from OPAC
824
                                                        <br/>Item level hold not allowed from OPAC
794
                                                        [% ELSIF itemloo.item_level_holds == "F" %]
825
                                                    [% ELSIF itemloo.item_level_holds == "F" %]
795
                                                            <br/>Item level hold forced from OPAC
826
                                                        <br/>Item level hold forced from OPAC
796
                                                        [% END %]
827
                                                    [% END %]
797
828
798
                                                        [% IF ( itemloo.itemlost ) %]
829
                                                    [% IF ( itemloo.itemlost ) %]
799
                                                           <span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span>
830
                                                       <span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span>
800
                                                        [% END %]
831
                                                    [% END %]
801
832
802
                                                        [% IF ( itemloo.damaged ) %]
833
                                                    [% IF ( itemloo.damaged ) %]
803
                                                            <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span>
834
                                                        <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span>
804
                                                        [% END %]
835
                                                    [% END %]
805
836
806
                                                        [% IF ( itemloo.withdrawn ) %]
837
                                                    [% IF ( itemloo.withdrawn ) %]
807
                                                           <span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span>
838
                                                       <span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span>
808
                                                        [% END %]
839
                                                    [% END %]
809
840
810
                                                        [% IF ( itemloo.notforloan ) %]
841
                                                    [% IF ( itemloo.notforloan ) %]
811
                                                           <span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span>
842
                                                       <span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span>
812
                                                        [% END %]
843
                                                    [% ELSIF ( itemloo.notforloanitype ) %]
813
                                                    </td>
844
                                                       <span class="nfl">Not for loan (Itemtype not for loan)</span>
814
                                                    <td>
815
                                                    [% IF (itemloo.pickup_locations_count > 0) %]
816
                                                        <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;"
817
                                                                data-item-id="[% itemloo.itemnumber | html %]"
818
                                                                data-patron-id="[% patron.borrowernumber | html %]"
819
                                                                data-pickup-location-source="item">
820
                                                        [% IF (itemloo.default_pickup_location) %]
821
                                                            <option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option>
822
                                                        [% END %]
823
                                                        </select>
824
                                                    [% END %]
845
                                                    [% END %]
825
                                                    </td>
846
                                                </td>
826
                                                </tr>
847
                                            </tr>
827
                                            [% END # / UNLESS itemloo.hide %]
848
                                        [% END # / UNLESS itemloo.hide %]
828
                                        [% END # /FOREACH itemloo %]
849
                                    [% END # /FOREACH itemloo %]
829
                                    </tbody>
850
                                </tbody>
830
                                </table> <!-- /#requestspecific -->
851
                            </table> <!-- /#requestspecific -->
831
852
832
                                [% IF ( bibitemloo.hiddencount ) %]
853
                            [% IF hiddencount %]
833
                                    <form>
854
                                <form>
834
                                        <p class="hiddencount">
855
                                    <p class="hiddencount">
835
                                            <a href="request.pl?biblionumber=[% bibitemloo.biblionumber | uri %]&amp;borrowernumber=[% bibitemloo.borrowernumber | uri %]&amp;showallitems=1">Show all items ([% bibitemloo.hiddencount | html %] hidden)</a>
856
                                        <a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% biblio.hiddencount | html %] hidden)</a>
836
                                        </p>
857
                                    </p>
837
                                    </form>
858
                                </form>
838
                                [% END # /IF bibitemloo.hiddencount %]
859
                            [% END # /IF hiddencount %]
839
                            [% END # /FOREACH bibitemloo %]
840
860
841
                        [% ELSE # /UNLESS multi_hold %]
861
                        [% ELSE # /UNLESS multi_hold %]
842
862
843
                            <table id="requesttitles">
863
                            <table id="requesttitles">
844
                                <tr>
864
                                <tr>
845
                                    <th>&nbsp;</th>
865
                                    <th>&nbsp;</th>
866
                                    <th>Pickup location</th>
846
                                    <th>Title</th>
867
                                    <th>Title</th>
847
                                    [% UNLESS ( item_level_itypes ) %]
868
                                    [% UNLESS Koha.Preference('item-level_itypes') %]
848
                                        <th>Item type</th>
869
                                        <th>Item type</th>
849
                                    [% END %]
870
                                    [% END %]
850
                                    <th>Priority</th>
871
                                    <th>Priority</th>
851
                                    <th>Information</th>
872
                                    <th>Information</th>
852
                                    <th>Pickup location</th>
853
                                </tr>
873
                                </tr>
854
                                [% FOREACH biblioloo IN biblioloop %]
874
                                [% FOREACH biblioloo IN biblioloop %]
855
                                    [% IF ( biblioloo.warn ) %]
875
                                    [% IF ( biblioloo.warn ) %]
Lines 859-871 Link Here
859
                                    [% END %]
879
                                    [% END %]
860
                                        <td>
880
                                        <td>
861
                                            [% UNLESS ( biblioloo.warn ) %]
881
                                            [% UNLESS ( biblioloo.warn ) %]
862
                                                    <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
882
                                                <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
863
                                                </td>
864
                                            [% END %]
883
                                            [% END %]
884
                                        </td>
885
                                        <td>
886
                                            [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %]
887
                                                <select name="pickup_[% biblioloo.biblionumber | html %]"
888
                                                        class="multi_pickup_select"
889
                                                        data-biblio-id="[% biblioloo.biblionumber | html %]"
890
                                                        data-patron-id="[% patron.borrowernumber | html %]"
891
                                                        data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'>
892
                                                    <option value=""></option>
893
                                                    [% FOREACH pickup_location IN biblioloo.pickup_locations %]
894
                                                        <option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option>
895
                                                    [% END %]
896
                                                </select>
897
                                            [% END %]
898
                                        </td>
865
                                        <td>
899
                                        <td>
866
                                            <ul>
900
                                            <ul>
867
                                                <li>
901
                                                <li>
868
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
902
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
903
                                                    [% IF biblioloo.author %] by [% biblioloo.author | html %][% END %]
869
                                                </li>
904
                                                </li>
870
                                                [% IF ( biblioloo.publicationyear ) %]
905
                                                [% IF ( biblioloo.publicationyear ) %]
871
                                                    <li>
906
                                                    <li>
Lines 877-885 Link Here
877
                                                <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
912
                                                <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
878
                                            [% END %]
913
                                            [% END %]
879
                                        </td>
914
                                        </td>
880
                                        [% UNLESS ( item_level_itypes ) %]
915
                                        [% UNLESS Koha.Preference('item-level_itypes') %]
881
                                            <td>
916
                                            <td>
882
                                                <img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" />
917
                                                <img src="[% biblioloo.itemtype.image_location | html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" />
883
                                            </td>
918
                                            </td>
884
                                        [% END %]
919
                                        [% END %]
885
                                        <td>[% biblioloo.rank | html %]</td>
920
                                        <td>[% biblioloo.rank | html %]</td>
Lines 912-931 Link Here
912
                                                [% END %]
947
                                                [% END %]
913
                                            [% END %]
948
                                            [% END %]
914
                                        </td>
949
                                        </td>
915
                                        <td>
916
                                            [% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %]
917
                                                <select name="pickup_[% biblioloo.biblionumber | html %]"
918
                                                        class="multi_pickup_select"
919
                                                        data-biblio-id="[% biblioloo.biblionumber | html %]"
920
                                                        data-patron-id="[% patron.borrowernumber | html %]"
921
                                                        data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'>
922
                                                    <option value=""></option>
923
                                                    [% FOREACH pickup_location IN biblioloo.pickup_locations %]
924
                                                        <option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option>
925
                                                    [% END %]
926
                                                </select>
927
                                            [% END %]
928
                                        </td>
929
                                    </tr>
950
                                    </tr>
930
                                [% END # /FOREACH biblioloo %]
951
                                [% END # /FOREACH biblioloo %]
931
                            </table> <!-- /#requesttitles -->
952
                            </table> <!-- /#requesttitles -->
Lines 950-956 Link Here
950
                                    [% ELSIF ( none_available ) %]
971
                                    [% ELSIF ( none_available ) %]
951
                                        <button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place hold</button>
972
                                        <button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place hold</button>
952
                                    [% ELSE %]
973
                                    [% ELSE %]
953
                                        <button type="submit" class="btn btn-default" id="lientype">Place hold</button>
974
                                        <button type="submit" class="btn btn-default">Place hold</button>
954
                                    [% END %]
975
                                    [% END %]
955
                                [% END %]
976
                                [% END %]
956
                            [% END # /IF patron %]
977
                            [% END # /IF patron %]
Lines 977-983 Link Here
977
                [% IF ( reserveloop ) %]
998
                [% IF ( reserveloop ) %]
978
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
999
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
979
                        [% IF ( multi_hold ) %]
1000
                        [% IF ( multi_hold ) %]
980
                            <input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
1001
                            [% FOREACH biblionumber IN biblionumbers %]
1002
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/>
1003
                            [% END %]
981
                        [% END %]
1004
                        [% END %]
982
1005
983
                        [% IF enqueued %]
1006
                        [% IF enqueued %]
Lines 992-998 Link Here
992
                            <input type="submit" name="submit" value="Update hold(s)" /> <button class="cancel_selected_holds" data-bulk="true"></button>
1015
                            <input type="submit" name="submit" value="Update hold(s)" /> <button class="cancel_selected_holds" data-bulk="true"></button>
993
                        <fieldset id="cancellation-reason-fieldset" class="action">
1016
                        <fieldset id="cancellation-reason-fieldset" class="action">
994
                            [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1017
                            [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
995
                            [% IF hold_cancellation %]
1018
                            [% IF hold_cancellation.count %]
996
                                <label for="cancellation-reason">Cancellation reason: </label>
1019
                                <label for="cancellation-reason">Cancellation reason: </label>
997
                                <select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason">
1020
                                <select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason">
998
                                    <option value="">No reason given</option>
1021
                                    <option value="">No reason given</option>
Lines 1115-1121 Link Here
1115
                                                                [% IF i %]
1138
                                                                [% IF i %]
1116
                                                                    [% ItemTypes.GetDescription( i ) | html %]
1139
                                                                    [% ItemTypes.GetDescription( i ) | html %]
1117
                                                                [% ELSE %]
1140
                                                                [% ELSE %]
1118
                                                                    Any item type
1141
                                                                    <span>Any item type</span>
1119
                                                                [% END %]
1142
                                                                [% END %]
1120
                                                            </h5>
1143
                                                            </h5>
1121
1144
Lines 1178-1184 Link Here
1178
1201
1179
                    <fieldset class="action">
1202
                    <fieldset class="action">
1180
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1203
                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
1181
                        [% IF hold_cancellation %]
1204
                        [% IF hold_cancellation.count %]
1182
                            <label for="cancellation-reason">Cancellation reason: </label>
1205
                            <label for="cancellation-reason">Cancellation reason: </label>
1183
                            <select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason">
1206
                            <select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason">
1184
                                <option value="">No reason given</option>
1207
                                <option value="">No reason given</option>
Lines 1200-1217 Link Here
1200
1223
1201
[% MACRO jsinclude BLOCK %]
1224
[% MACRO jsinclude BLOCK %]
1202
    [% INCLUDE 'datatables.inc' %]
1225
    [% INCLUDE 'datatables.inc' %]
1226
    [% INCLUDE 'calendar.inc' %]
1203
    [% INCLUDE 'columns_settings.inc' %]
1227
    [% INCLUDE 'columns_settings.inc' %]
1204
    [% Asset.js("lib/hc-sticky.js") | $raw %]
1228
    [% Asset.js("lib/hc-sticky.js") | $raw %]
1205
    [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1206
    [% INCLUDE 'select2.inc' %]
1229
    [% INCLUDE 'select2.inc' %]
1207
    [% Asset.js("js/holds.js") | $raw%]
1230
    [% Asset.js("js/holds.js") | $raw%]
1208
    [% INCLUDE 'calendar.inc' %]
1231
1232
    [% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&amp;biblionumber=") %]
1233
    [% IF multi_hold %]
1234
        [% SET url_biblio_params = url_biblio_params _ "&amp;multi_hold=1" %]
1235
    [% END %]
1236
1209
    <script>
1237
    <script>
1210
        var Sticky;
1238
        var Sticky;
1211
        var biblionumber = "[% biblionumber | $raw %]";
1239
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1212
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1240
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1213
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1241
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1214
        var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
1242
        var override_items = {[% FOREACH biblio IN biblioloop %][% FOREACH itemloo IN biblio.itemloop %][% IF ( itemloo.override ) %]
1215
        [% itemloo.itemnumber | html %]: {
1243
        [% itemloo.itemnumber | html %]: {
1216
            homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]",
1244
            homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]",
1217
            holdallowed: "[% itemloo.holdallowed | html %]"
1245
            holdallowed: "[% itemloo.holdallowed | html %]"
Lines 1233-1239 Link Here
1233
        }
1261
        }
1234
1262
1235
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
1263
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
1236
        columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1237
        $.fn.select2.defaults.set("width", "100%" );
1264
        $.fn.select2.defaults.set("width", "100%" );
1238
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
1265
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
1239
1266
Lines 1247-1262 Link Here
1247
                }
1274
                }
1248
            });
1275
            });
1249
1276
1250
            [% SET active = clubs ? 1 : 0 %]
1277
            if( $("#circ_holds_select").length > 0 ){
1251
            $('#circ_holds_select').tabs({
1278
                [% SET active = clubs ? 1 : 0 %]
1252
                active: [% active | $raw %],
1279
                /* Set active tab based on whether a club search was submitted */
1253
                activate: function(){
1280
                var tabs = $("#circ_holds_select li:eq(" + [% active | $raw %] + ") a").tab("show");
1254
                    $(this).find("input.focus").focus();
1281
                $( tabs[0].hash ).find("input.focus").focus();
1255
                },
1282
1256
                create: function(){
1283
                /* Change active focus when tabs change */
1257
                    $(this).find("input.focus").focus();
1284
                $("#circ_holds_select a[data-toggle='tab']").on("shown.bs.tab", function (e) {
1258
                }
1285
                    active_tab = e.target.hash;
1259
            });
1286
                    $( active_tab ).find("input.focus").focus();
1287
                });
1288
            }
1289
1290
1260
            function ToggleHoldsToPlace() {
1291
            function ToggleHoldsToPlace() {
1261
                if ( $("#requestany").prop('checked') ) {
1292
                if ( $("#requestany").prop('checked') ) {
1262
                    $("#holds_to_place_count").prop('disabled', false);
1293
                    $("#holds_to_place_count").prop('disabled', false);
Lines 1274-1280 Link Here
1274
                    var pickup = $("#pickup").val();
1305
                    var pickup = $("#pickup").val();
1275
                    var url = "?pickup=" + pickup;
1306
                    var url = "?pickup=" + pickup;
1276
                    url += "&borrowernumber=" + borrowernumber;
1307
                    url += "&borrowernumber=" + borrowernumber;
1277
                    url += "&biblionumber=" + biblionumber;
1308
                    url += "&biblionumber=" + biblionumbers[0];
1278
                    window.location.replace(url);
1309
                    window.location.replace(url);
1279
                });
1310
                });
1280
            [% END %]
1311
            [% END %]
Lines 1294-1301 Link Here
1294
            $("#club-request-form").on("submit", function() {
1325
            $("#club-request-form").on("submit", function() {
1295
                let $t = $(this);
1326
                let $t = $(this);
1296
                $('.clubalert, .holdalert').addClass('hide');
1327
                $('.clubalert, .holdalert').addClass('hide');
1297
                let biblionumbers = [biblionumber];
1298
                let biblionumbers_text;
1299
                const data = {
1328
                const data = {
1300
                    pickup_library_id: $('select[name="pickup"]').val()
1329
                    pickup_library_id: $('select[name="pickup"]').val()
1301
                };
1330
                };
Lines 1311-1322 Link Here
1311
                if($('input[name="default_patron_home"]:checked').length) {
1340
                if($('input[name="default_patron_home"]:checked').length) {
1312
                    data.default_patron_home = 1;
1341
                    data.default_patron_home = 1;
1313
                }
1342
                }
1314
                if($('input[name="biblionumbers"]').length) {
1315
                    biblionumbers_text = $('input[name="biblionumbers"]').val();
1316
                    biblionumbers = biblionumbers_text.replace(/\/$/, '').split('/')
1317
                }
1318
1343
1319
                const count = $('input[name="holds_to_place_count"]').length?$('input[name="holds_to_place_count"]').val():1;
1344
                const count = $('input[name="holds_to_place_count"]').length?$('input[name="holds_to_place_count"]').val():1;
1345
                var newloc = 'request.pl?';
1346
                biblionumbers.forEach(function (biblionumber) {
1347
                    newloc += '&biblionumber=' + biblionumber;
1348
                });
1349
1320
                biblionumbers.forEach(function(biblionumber) {
1350
                biblionumbers.forEach(function(biblionumber) {
1321
                    data.biblio_id = biblionumber;
1351
                    data.biblio_id = biblionumber;
1322
                    let options = {
1352
                    let options = {
Lines 1328-1338 Link Here
1328
                    for(let i = 0; i < count; i++) {
1358
                    for(let i = 0; i < count; i++) {
1329
                        $.ajax(options)
1359
                        $.ajax(options)
1330
                        .then(function(result) {
1360
                        .then(function(result) {
1331
                            let url = 'request.pl?biblionumber='+biblionumber;
1361
                            document.location = newloc;
1332
                            if(biblionumbers_text) {
1333
                                url = 'request.pl?biblionumbers='+biblionumbers_text;
1334
                            }
1335
                            document.location = url;
1336
                        })
1362
                        })
1337
                        .fail(function(err) {
1363
                        .fail(function(err) {
1338
                            var message = err.responseJSON.error;
1364
                            var message = err.responseJSON.error;
Lines 1427-1433 Link Here
1427
1453
1428
        function checkMultiHold() {
1454
        function checkMultiHold() {
1429
1455
1430
            var biblionumbers = "";
1431
            var selected_bibs = $(".multi_hold_item_checkbox:checked");
1456
            var selected_bibs = $(".multi_hold_item_checkbox:checked");
1432
            if ( selected_bibs.length > 0 ) {
1457
            if ( selected_bibs.length > 0 ) {
1433
                // there are biblios selected in the form!
1458
                // there are biblios selected in the form!
Lines 1440-1446 Link Here
1440
                    }
1465
                    }
1441
                    else {
1466
                    else {
1442
                        var bibnum = $(this).attr("title");
1467
                        var bibnum = $(this).attr("title");
1443
                        biblionumbers += bibnum + "/";
1444
                    }
1468
                    }
1445
                });
1469
                });
1446
                if ( pickup_not_set > 0 ) {
1470
                if ( pickup_not_set > 0 ) {
Lines 1453-1474 Link Here
1453
                return false;
1477
                return false;
1454
            }
1478
            }
1455
1479
1456
            var badSpans = $(".not_holdable");
1457
            var badBibs = "";
1458
            $(badSpans).each(function() {
1459
                var bibnum = $(this).attr("title");
1460
                badBibs += bibnum + "/";
1461
            });
1462
1463
            $("#multi_hold_bibs").val(biblionumbers);
1464
            $("#bad_bibs").val(badBibs);
1465
1466
            $('#hold-request-form').preventDoubleFormSubmit();
1480
            $('#hold-request-form').preventDoubleFormSubmit();
1467
1481
1468
            return true;
1482
            return true;
1469
        }
1483
        }
1470
1484
1471
         $(document).ready(function() {
1485
         $(document).ready(function() {
1486
1472
            $("#always_show_holds").change(function(){
1487
            $("#always_show_holds").change(function(){
1473
                if( $(this).prop('checked') ){
1488
                if( $(this).prop('checked') ){
1474
                    document.cookie = 'always_show_holds=DO';
1489
                    document.cookie = 'always_show_holds=DO';
Lines 1556-1566 Link Here
1556
            $("#cancelModalConfirmBtn").on("click",function(e) {
1571
            $("#cancelModalConfirmBtn").on("click",function(e) {
1557
                let link;
1572
                let link;
1558
                if(cancel_link.data('bulk')) {
1573
                if(cancel_link.data('bulk')) {
1559
                    [% IF biblionumbers %]
1574
                    [% SET data_url = 'biblionumber=' _ biblionumbers.join('&biblionumber=') %]
1560
                        link = `request.pl?biblionumbers=[% biblionumbers | url %]&amp;action=cancelBulk&amp;ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`;
1575
                    link = `request.pl?[% data_url | url %]&amp;action=cancelBulk&amp;ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`;
1561
                    [% ELSE %]
1562
                        link = `request.pl?biblionumber=[% biblionumber | url %]&amp;action=cancelBulk&amp;ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`;
1563
                    [% END %]
1564
                } else {
1576
                } else {
1565
                    let borrowernumber = cancel_link.data('borrowernumber');
1577
                    let borrowernumber = cancel_link.data('borrowernumber');
1566
                    let biblionumber = cancel_link.data('biblionumber');
1578
                    let biblionumber = cancel_link.data('biblionumber');
Lines 1577-1589 Link Here
1577
1589
1578
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
1590
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
1579
                [% IF ( PatronAutoComplete ) %]
1591
                [% IF ( PatronAutoComplete ) %]
1580
                $( "#patron" ).autocomplete({
1592
                $( "#search_patron_filter" ).autocomplete({
1581
                    source: "/cgi-bin/koha/circ/ysearch.pl",
1593
                    source: "/cgi-bin/koha/circ/ysearch.pl",
1582
                    minLength: 3,
1594
                    minLength: 3,
1583
                    select: function( event, ui ) {
1595
                    select: function( event, ui ) {
1584
                        $( "#patron" ).val( ui.item.cardnumber );
1596
                        document.location.href = '/cgi-bin/koha/reserve/request.pl?[% url_biblio_params | url %]&borrowernumber=' + ui.item.borrowernumber;
1585
                        $( "#holds_patronsearch" ).submit();
1586
                        return false;
1587
                    }
1597
                    }
1588
                })
1598
                })
1589
                .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
1599
                .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
Lines 1611-1616 Link Here
1611
                };
1621
                };
1612
                [% END %]
1622
                [% END %]
1613
            [% END %]
1623
            [% END %]
1624
1614
            Sticky = $("#toolbar");
1625
            Sticky = $("#toolbar");
1615
            Sticky.hcSticky({
1626
            Sticky.hcSticky({
1616
                stickTo: "#existing_holds",
1627
                stickTo: "#existing_holds",
Lines 1661-1668 Link Here
1661
                }
1672
                }
1662
                return false;
1673
                return false;
1663
            });
1674
            });
1675
        });
1676
    </script>
1677
1678
    <script>
1679
        table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1680
    </script>
1664
1681
1682
    [% 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/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
1683
    <script>
1684
        $(document).ready(function() {
1685
            $("#holds_patronsearch").on("submit", filter);
1665
        });
1686
        });
1687
        $('.printholdslip').click(function(){
1688
                var reserve_id = $(this).attr('data-reserve_id');
1689
                window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
1690
                return false;
1691
        })
1666
    </script>
1692
    </script>
1667
[% END %]
1693
[% END %]
1668
1694
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-43 / +45 lines)
Lines 1-9 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% formulaire = BLOCK %]
5
    [% INCLUDE 'cat-search.inc' %]
6
[% END %]
7
[% PROCESS 'authorities-search-results.inc' %]
4
[% PROCESS 'authorities-search-results.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Batch record modification &rsaquo; Tools &rsaquo; Koha</title>
6
<title>Batch record modification &rsaquo; Tools &rsaquo; Koha</title>
Lines 12-18 Link Here
12
</head>
9
</head>
13
10
14
<body id="tools_batch_record_modification" class="tools">
11
<body id="tools_batch_record_modification" class="tools">
15
    [% INCLUDE 'header.inc'  form=formulaire %]
12
    [% INCLUDE 'header.inc' %]
13
    [% INCLUDE 'cat-search.inc' %]
16
14
17
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18
        <ol>
16
        <ol>
Lines 26-37 Link Here
26
                <a href="#" aria-current="page">Batch record modification</a>
24
                <a href="#" aria-current="page">Batch record modification</a>
27
            </li>
25
            </li>
28
        </ol>
26
        </ol>
29
        <ol>
30
            [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
31
        </ol>
32
        <ol>
33
            <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
34
        </ol>
35
    </nav>
27
    </nav>
36
28
37
    <div class="main container-fluid">
29
    <div class="main container-fluid">
Lines 39-45 Link Here
39
            <div class="col-sm-10 col-sm-push-2">
31
            <div class="col-sm-10 col-sm-push-2">
40
                <main>
32
                <main>
41
33
42
                    <h2>Batch record modification</h2>
34
                    <h1>Batch record modification</h1>
43
35
44
                    [% IF ( messages ) %]
36
                    [% IF ( messages ) %]
45
                        <div class="dialog message">
37
                        <div class="dialog message">
Lines 73-79 Link Here
73
                    [% IF view == 'form' %]
65
                    [% IF view == 'form' %]
74
                        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection">
66
                        <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection">
75
                            <fieldset class="rows">
67
                            <fieldset class="rows">
76
                                <h3>Record type</h3>
68
                                <legend>Record type</legend>
77
                                <ol>
69
                                <ol>
78
                                    <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
70
                                    <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
79
                                    <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
71
                                    <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
Lines 83-89 Link Here
83
                            <br><br>
75
                            <br><br>
84
76
85
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
77
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
86
                            <fieldset id="searchresults">
87
                                <ul class="nav nav-tabs" role="tablist">
78
                                <ul class="nav nav-tabs" role="tablist">
88
                                    <li role="presentation" class="active">
79
                                    <li role="presentation" class="active">
89
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
80
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
Lines 98-126 Link Here
98
                                    </li>
89
                                    </li>
99
                                </ul>
90
                                </ul>
100
91
101
                                <div id="uploadfile_tab">
92
                                <div class="tab-content">
102
                                    <fieldset class="rows">
93
                                    <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
103
                                        <h3>Use a file</h3>
94
                                        <fieldset class="rows">
104
                                        <ol>
95
                                            <ol>
105
                                            <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
96
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
106
                                        </ol>
97
                                            </ol>
107
                                    </fieldset>
98
                                        </fieldset>
108
                                    &nbsp;
99
                                        &nbsp;
109
                                </div>
100
                                    </div>
110
101
111
                                [% IF lists.count %]
102
                                    [% IF lists.count %]
112
                                    <div id="shelves_tab">
103
                                        <div id="shelves_tab" role="tabpanel" class="tab-pane">
104
                                            <fieldset class="rows">
105
                                                <ol>
106
                                                    <li>
107
                                                        <label for="shelf_number">List: </label>
108
                                                        <select name="shelf_number" id="shelf_number">
109
                                                            <option value="">Select a list</option>
110
                                                            [% FOREACH list IN lists %]
111
                                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
112
                                                            [% END %]
113
                                                            </option>
114
                                                        </select>
115
                                                    </li>
116
                                                </ol>
117
                                            </fieldset>
118
                                            &nbsp;
119
                                        </div>
120
                                    [% END %]
121
122
                                    <div id="enterlist_tab" role="tabpanel" class="tab-pane">
113
                                        <fieldset class="rows">
123
                                        <fieldset class="rows">
114
                                            <ol>
124
                                            <ol>
115
                                                <li>
125
                                                <li>
116
                                                    <label for="shelf_number">Use records from the following list: </label>
126
                                                    <label for="recordnumber_list">Record numbers: </label>
117
                                                    <select name="shelf_number" id="shelf_number">
127
                                                    <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
118
                                                        <option value="">Select a list</option>
128
                                                    <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
119
                                                        [% FOREACH list IN lists %]
120
                                                        <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
121
                                                        [% END %]
122
                                                        </option>
123
                                                    </select>
124
                                                </li>
129
                                                </li>
125
                                            </ol>
130
                                            </ol>
126
                                        </fieldset>
131
                                        </fieldset>
Lines 133-139 Link Here
133
                                <legend>MARC modification template</legend>
138
                                <legend>MARC modification template</legend>
134
                                <ol>
139
                                <ol>
135
                                    <li>
140
                                    <li>
136
                                        <label for="marc_modification_template_id" class="required">Modify record using the following template: </label>
141
                                        <label for="marc_modification_template_id" class="required">Template: </label>
137
                                        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
142
                                        <select name="marc_modification_template_id" id="marc_modification_template_id" required="required">
138
                                            <option value="">Select a template</option>
143
                                            <option value="">Select a template</option>
139
                                            [% FOREACH mmt IN MarcModificationTemplatesLoop %]
144
                                            [% FOREACH mmt IN MarcModificationTemplatesLoop %]
Lines 145-151 Link Here
145
                            </fieldset>
150
                            </fieldset>
146
                            <fieldset class="action">
151
                            <fieldset class="action">
147
                                <input type="hidden" name="op" value="list" />
152
                                <input type="hidden" name="op" value="list" />
148
                                <input type="submit" class="principal" value="Continue" class="button" />
153
                                <input type="submit" value="Continue" class="button" />
149
                                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
154
                                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
150
                            </fieldset>
155
                            </fieldset>
151
                        </form> <!-- /#record_ids_selection -->
156
                        </form> <!-- /#record_ids_selection -->
Lines 174-180 Link Here
174
                                                <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
179
                                                <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
175
                                            </div>
180
                                            </div>
176
                                            <div class="modal-footer">
181
                                            <div class="modal-footer">
177
                                                <button class="btn btn-default cancel" data-dismiss="modal" aria-hidden="true">Close</button>
182
                                                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
178
                                            </div>
183
                                            </div>
179
                                        </div>
184
                                        </div>
180
                                    </div>
185
                                    </div>
Lines 216-222 Link Here
216
                                        <thead>
221
                                        <thead>
217
                                            <tr>
222
                                            <tr>
218
                                                <th></th>
223
                                                <th></th>
219
                                                <th>Authid</th>
224
                                                <th>AuthID</th>
220
                                                <th>Summary</th>
225
                                                <th>Summary</th>
221
                                                <th>&nbsp;</th>
226
                                                <th>&nbsp;</th>
222
                                            </tr>
227
                                            </tr>
Lines 237-248 Link Here
237
                                <fieldset class="action">
242
                                <fieldset class="action">
238
                                    <input type="hidden" name="op" value="modify" />
243
                                    <input type="hidden" name="op" value="modify" />
239
                                    <input type="hidden" name="recordtype" value="[% recordtype | html %]" />
244
                                    <input type="hidden" name="recordtype" value="[% recordtype | html %]" />
240
                                    <input type="submit" id="mainformsubmit" value="Modify selected records" class="button principal" />
245
                                    <input type="submit" id="mainformsubmit" value="Modify selected records" class="button" />
241
                                </fieldset>
246
                                </fieldset>
242
                            </form> <!-- /#process -->
247
                            </form> <!-- /#process -->
243
                        [% ELSE %]
248
                        [% ELSE %]
244
                            <div class="dialog message">
249
                            <div class="dialog message">
245
                                No records were modified. [% IF recordtype != 'biblio' %]<a id="lientype" href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %]
250
                                No records were modified. [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %]
246
                            </div>
251
                            </div>
247
                        [% END %]
252
                        [% END %]
248
                    [% ELSIF view == 'errors' %]
253
                    [% ELSIF view == 'errors' %]
Lines 256-263 Link Here
256
                     [% ELSIF view == 'enqueued' %]
261
                     [% ELSIF view == 'enqueued' %]
257
                        <div class="dialog message">
262
                        <div class="dialog message">
258
                            <p>The job has been enqueued! It will be processed as soon as possible.</p>
263
                            <p>The job has been enqueued! It will be processed as soon as possible.</p>
259
                            <p><a id="lientype" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
264
                            <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
260
                            | <a id="lientype" href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
265
                            | <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
261
                        </div>
266
                        </div>
262
                    [% ELSE %]
267
                    [% ELSE %]
263
                        <div class="dialog alert">
268
                        <div class="dialog alert">
Lines 281-288 Link Here
281
    <script>
286
    <script>
282
        $(document).ready(function() {
287
        $(document).ready(function() {
283
288
284
            $("#batch_mod_form").tabs();
285
286
            $("input[type='radio']").click(function() {
289
            $("input[type='radio']").click(function() {
287
                if ($(this).attr('id') == 'authority_type') {
290
                if ($(this).attr('id') == 'authority_type') {
288
                    $("#show_list_option").hide();
291
                    $("#show_list_option").hide();
289
- 

Return to bug 30952