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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/printers.tt (-12 / +15 lines)
Lines 10-16 Link Here
10
[% IF ( loop ) %]
10
[% IF ( loop ) %]
11
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
12
[% INCLUDE 'datatables.inc' %]
12
[% INCLUDE 'datatables.inc' %]
13
<script type="text/javascript">
13
<script>
14
//<![CDATA[
14
//<![CDATA[
15
    $(document).ready(function() {
15
    $(document).ready(function() {
16
        $("#printerst").dataTable($.extend(true, {}, dataTablesDefaults, {
16
        $("#printerst").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 35-45 Link Here
35
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; Printer deleted[% END %]
35
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; Printer deleted[% END %]
36
[% IF ( else ) %]Printers[% END %]</div>
36
[% IF ( else ) %]Printers[% END %]</div>
37
37
38
<div id="doc3" class="yui-t2">
38
<div class="main container-fluid">
39
   
39
    <div class="row">
40
   <div id="bd">
40
        <div class="col-sm-10 col-sm-push-2">
41
	<div id="yui-main">
41
            <main>
42
	<div class="yui-b">
43
42
44
[% IF ( add_form ) %]
43
[% IF ( add_form ) %]
45
44
Lines 161-170 Link Here
161
    </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
160
    </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
162
[% END %]
161
[% END %]
163
162
164
</div>
163
            </main>
165
</div>
164
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
166
<div class="yui-b">
165
167
[% INCLUDE 'admin-menu.inc' %]
166
        <div class="col-sm-2 col-sm-pull-10">
168
</div>
167
            <aside>
169
</div>
168
                [% INCLUDE 'admin-menu.inc' %]
169
            </aside>
170
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
171
     </div> <!-- /.row -->
172
170
[% INCLUDE 'intranet-bottom.inc' %]
173
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-13 / +16 lines)
Lines 3-9 Link Here
3
<title>Koha &rsaquo; Administration &rsaquo; Search engine configuration</title>
3
<title>Koha &rsaquo; Administration &rsaquo; Search engine configuration</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]
5
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]
6
<script type="text/javascript">
6
<script>
7
    function clean_line( line ) {
7
    function clean_line( line ) {
8
        $(line).find('input[type="text"]').val("");
8
        $(line).find('input[type="text"]').val("");
9
        $(line).find('select').find('option:first').attr("selected", "selected");
9
        $(line).find('select').find('option:first').attr("selected", "selected");
Lines 53-59 Link Here
53
        });
53
        });
54
    });
54
    });
55
</script>
55
</script>
56
<style type="text/css">
56
<style>
57
a.add, a.delete {
57
a.add, a.delete {
58
    cursor: pointer;
58
    cursor: pointer;
59
}
59
}
Lines 65-75 a.add, a.delete { Link Here
65
65
66
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Search engine configuration</div>
66
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Search engine configuration</div>
67
67
68
<div id="doc3" class="yui-t1">
68
<div class="main container-fluid">
69
69
    <div class="row">
70
  <div id="bd">
70
        <div class="col-sm-10 col-sm-push-2">
71
    <div id="yui-main">
71
            <main>
72
    <div class="yui-b">
73
72
74
    [% FOR m IN messages %]
73
    [% FOR m IN messages %]
75
      <div class="dialog [% m.type %]">
74
      <div class="dialog [% m.type %]">
Lines 299-309 a.add, a.delete { Link Here
299
        </div>
298
        </div>
300
        <p><button class="btn btn-default" type="submit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button></p>
299
        <p><button class="btn btn-default" type="submit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button></p>
301
    </form>
300
    </form>
302
</div>
303
301
304
</div>
302
            </main>
305
<div class="yui-b">
303
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
306
[% INCLUDE 'admin-menu.inc' %]
304
307
</div>
305
        <div class="col-sm-2 col-sm-pull-10">
308
</div>
306
            <aside>
307
                [% INCLUDE 'admin-menu.inc' %]
308
            </aside>
309
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
310
     </div> <!-- /.row -->
311
309
[% INCLUDE 'intranet-bottom.inc' %]
312
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-11 / +13 lines)
Lines 12-22 Link Here
12
12
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Circulation and fine rules</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Circulation and fine rules</div>
14
14
15
<div id="doc3" class="yui-t1">
15
<div class="main container-fluid">
16
    <div class="row">
17
        <div class="col-sm-10 col-sm-push-2">
18
            <main>
16
19
17
<div id="bd">
18
    <div id="yui-main">
19
    <div class="yui-b">
20
    <h1 class="parameters">
20
    <h1 class="parameters">
21
        [% IF humanbranch %]
21
        [% IF humanbranch %]
22
            Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) %]"
22
            Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) %]"
Lines 727-744 Link Here
727
            </table>
727
            </table>
728
        </form>
728
        </form>
729
    </div>
729
    </div>
730
</div>
730
            </main>
731
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
731
732
732
</div>
733
        <div class="col-sm-2 col-sm-pull-10">
733
<div class="yui-b">
734
            <aside>
734
[% INCLUDE 'admin-menu.inc' %]
735
                [% INCLUDE 'admin-menu.inc' %]
735
</div>
736
            </aside>
736
</div>
737
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
738
     </div> <!-- /.row -->
737
739
738
[% MACRO jsinclude BLOCK %]
740
[% MACRO jsinclude BLOCK %]
739
    [% Asset.js("js/admin-menu.js") %]
741
    [% Asset.js("js/admin-menu.js") %]
740
    [% INCLUDE 'calendar.inc' %]
742
    [% INCLUDE 'calendar.inc' %]
741
    <script type="text/javascript">
743
    <script>
742
744
743
        function clear_edit(){
745
        function clear_edit(){
744
            var cancel = confirm(_("Are you sure you want to cancel your changes?"));
746
            var cancel = confirm(_("Are you sure you want to cancel your changes?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt (-12 / +14 lines)
Lines 11-20 Link Here
11
11
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; SMS cellular providers</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; SMS cellular providers</div>
13
13
14
<div id="doc3" class="yui-t2">
14
<div class="main container-fluid">
15
    <div id="bd">
15
    <div class="row">
16
        <div id="yui-main">
16
        <div class="col-sm-10 col-sm-push-2">
17
            <div class="yui-b">
17
            <main>
18
18
19
                <div id="toolbar" class="btn-toolbar">
19
                <div id="toolbar" class="btn-toolbar">
20
                    <a class="btn btn-default btn-sm" id="new_provider" href="#"><i class="fa fa-plus"></i> New SMS provider</a>
20
                    <a class="btn btn-default btn-sm" id="new_provider" href="#"><i class="fa fa-plus"></i> New SMS provider</a>
Lines 88-104 Link Here
88
                    </form>
88
                    </form>
89
                </div>
89
                </div>
90
90
91
            </div>
91
            </main>
92
        </div>
92
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
93
        <div class="yui-b">
93
94
            [% INCLUDE 'admin-menu.inc' %]
94
        <div class="col-sm-2 col-sm-pull-10">
95
        </div>
95
            <aside>
96
    </div>
96
                [% INCLUDE 'admin-menu.inc' %]
97
</div>
97
            </aside>
98
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
99
     </div> <!-- /.row -->
98
100
99
[% MACRO jsinclude BLOCK %]
101
[% MACRO jsinclude BLOCK %]
100
    [% Asset.js("js/admin-menu.js") %]
102
    [% Asset.js("js/admin-menu.js") %]
101
    <script type="text/javascript">
103
    <script>
102
        var MSG_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
104
        var MSG_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
103
        var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
105
        var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
104
        var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
106
        var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt (-5 / +5 lines)
Lines 7-16 Link Here
7
7
8
<body id="admin_sru_modmapping" class="admin">
8
<body id="admin_sru_modmapping" class="admin">
9
9
10
<div id="custom-doc" class="yui-t7">
10
<div class="main container-fluid">
11
11
12
    <div id="bd">
12
    <main>
13
        <h1>Modify SRU search fields mapping for bibliographic records</h1>
13
        <h1>Modify SRU search fields mapping for bibliographic records</h1>
14
14
        <form id="form01" method="post">
15
        <form id="form01" method="post">
15
            <fieldset class="rows">
16
            <fieldset class="rows">
16
                <div class="yui-g">
17
                <div class="yui-g">
Lines 69-80 Link Here
69
                <a class="close cancel" href="#">Cancel</a>
70
                <a class="close cancel" href="#">Cancel</a>
70
            </fieldset>
71
            </fieldset>
71
        </form>
72
        </form>
72
    </div>
73
    </main>
73
</div>
74
74
75
[% MACRO jsinclude BLOCK %]
75
[% MACRO jsinclude BLOCK %]
76
    [% Asset.js("js/admin-menu.js") %]
76
    [% Asset.js("js/admin-menu.js") %]
77
    <script type="text/javascript">
77
    <script>
78
        $(document).ready(function() {
78
        $(document).ready(function() {
79
            $("#form01").submit(function(event) {
79
            $("#form01").submit(function(event) {
80
                if(window.opener) {
80
                if(window.opener) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt (-13 / +15 lines)
Lines 15-25 Link Here
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; Data added[% END %]
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; Data added[% END %]
16
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> &rsaquo; <a href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form&amp;searchfield=[% searchfield %]">[% searchfield %]</a> &rsaquo; Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; Parameter deleted[% END %][% IF ( else ) %]System preferences[% END %]</div>
16
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> &rsaquo; <a href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form&amp;searchfield=[% searchfield %]">[% searchfield %]</a> &rsaquo; Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a> &rsaquo; Parameter deleted[% END %][% IF ( else ) %]System preferences[% END %]</div>
17
17
18
<div id="doc3" class="yui-t2">
18
<div class="main container-fluid">
19
   
19
    <div class="row">
20
   <div id="bd">
20
        <div class="col-sm-10 col-sm-push-2">
21
    <div id="yui-main">
21
            <main>
22
    <div class="yui-b">
23
22
24
[% IF ( add_form ) %]
23
[% IF ( add_form ) %]
25
        [% IF ( type_upload ) %]
24
        [% IF ( type_upload ) %]
Lines 371-389 Link Here
371
    
370
    
372
    [% END %]
371
    [% END %]
373
372
374
</div>
373
            </main>
375
</div>
374
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
376
<div class="yui-b">
375
377
[% INCLUDE 'prefs-menu.inc' %]
376
        <div class="col-sm-2 col-sm-pull-10">
378
</div>
377
            <aside>
379
</div>
378
                [% INCLUDE 'admin-menu.inc' %]
379
            </aside>
380
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
381
     </div> <!-- /.row -->
380
382
381
[% MACRO jsinclude BLOCK %]
383
[% MACRO jsinclude BLOCK %]
382
    [%# Add WYSIWYG editor for htmlarea system preferences %]
384
    [%# Add WYSIWYG editor for htmlarea system preferences %]
383
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
385
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
384
    [% IF ( else ) %]
386
    [% IF ( else ) %]
385
        [% INCLUDE 'datatables.inc' %]
387
        [% INCLUDE 'datatables.inc' %]
386
        <script type="text/javascript">
388
        <script>
387
             $(document).ready(function() {
389
             $(document).ready(function() {
388
                [% IF ( loop ) %]$("#sysprefst").dataTable($.extend(true, {}, dataTablesDefaults, {
390
                [% IF ( loop ) %]$("#sysprefst").dataTable($.extend(true, {}, dataTablesDefaults, {
389
                    "sDom": '<"top pager"ilf>t',
391
                    "sDom": '<"top pager"ilf>t',
Lines 395-401 Link Here
395
             });
397
             });
396
        </script>
398
        </script>
397
    [% END %]
399
    [% END %]
398
    <script type="text/javascript">
400
    <script>
399
        [% IF ( add_form ) %]
401
        [% IF ( add_form ) %]
400
            $(document).ready(function() {
402
            $(document).ready(function() {
401
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
403
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-12 / +16 lines)
Lines 4-10 Link Here
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Transport cost matrix</title>
5
<title>Koha &rsaquo; Administration &rsaquo; Transport cost matrix</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
7
<style>
8
.disabled-transfer {
8
.disabled-transfer {
9
    background-color: #FF8888;
9
    background-color: #FF8888;
10
}
10
}
Lines 17-27 Link Here
17
17
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Transport cost matrix</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Transport cost matrix</div>
19
19
20
<div id="doc3" class="yui-t1">
20
<div class="main container-fluid">
21
    <div class="row">
22
        <div class="col-sm-10 col-sm-push-2">
23
            <main>
21
24
22
<div id="bd">
23
    <div id="yui-main">
24
    <div class="yui-b">
25
    <h1 class="parameters">
25
    <h1 class="parameters">
26
            Defining transport costs between libraries
26
            Defining transport costs between libraries
27
    </h1>
27
    </h1>
Lines 84-99 Link Here
84
                <input type="submit" value="Save" class="submit" /> <a href="/cgi-bin/koha/admin/transport-cost-matrix.pl" class="cancel">Cancel</a>
84
                <input type="submit" value="Save" class="submit" /> <a href="/cgi-bin/koha/admin/transport-cost-matrix.pl" class="cancel">Cancel</a>
85
            </fieldset>
85
            </fieldset>
86
        </form>
86
        </form>
87
    </div>
87
88
    </div>
88
            </main>
89
<div class="yui-b">
89
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
90
[% INCLUDE 'admin-menu.inc' %]
90
91
</div>
91
        <div class="col-sm-2 col-sm-pull-10">
92
</div>
92
            <aside>
93
                [% INCLUDE 'admin-menu.inc' %]
94
            </aside>
95
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
96
     </div> <!-- /.row -->
93
97
94
[% MACRO jsinclude BLOCK %]
98
[% MACRO jsinclude BLOCK %]
95
    [% Asset.js("js/admin-menu.js") %]
99
    [% Asset.js("js/admin-menu.js") %]
96
    <script type="text/javascript">
100
    <script>
97
        function check_transport_cost(e) {
101
        function check_transport_cost(e) {
98
            var val = e.value;
102
            var val = e.value;
99
            if (val && val != '' && !isNaN(parseFloat(val)) && val >= 0.0) {
103
            if (val && val != '' && !isNaN(parseFloat(val)) && val >= 0.0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt (-169 / +178 lines)
Lines 15-24 Link Here
15
15
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Usage statistics</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Usage statistics</div>
17
17
18
<div id="doc3" class="yui-t2">
18
<div class="main container-fluid">
19
   <div id="bd">
19
    <div class="row">
20
    <div id="yui-main">
20
        <div class="col-sm-10 col-sm-push-2">
21
    <div class="yui-b">
21
            <main>
22
22
23
[% FOR m IN messages %]
23
[% FOR m IN messages %]
24
    <div class="dialog [% m.type %]">
24
    <div class="dialog [% m.type %]">
Lines 49-218 Link Here
49
49
50
    <form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
50
    <form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
51
        <h1>Modify the statistics you share with the Koha community</h1>
51
        <h1>Modify the statistics you share with the Koha community</h1>
52
        <fieldset class="rows">
52
        <div class="row">
53
            <ol style="float:left;">
53
            <div class="col-sm-6">
54
                <li>
54
                <fieldset class="rows">
55
                    <label for="UsageStats">Share my Koha usage statistics: </label>
55
                    <ol>
56
                    <select name="UsageStats" id="UsageStats">
56
                        <li>
57
                    [% IF Koha.Preference('UsageStats') %]
57
                            <label for="UsageStats">Share my Koha usage statistics: </label>
58
                        <option value="1" selected="selected">Yes</option>
58
                            <select name="UsageStats" id="UsageStats">
59
                        <option value="0">No</option>
59
                            [% IF Koha.Preference('UsageStats') %]
60
                    [% ELSE %]
60
                                <option value="1" selected="selected">Yes</option>
61
                        <option value="1">Yes</option>
61
                                <option value="0">No</option>
62
                        <option value="0" selected="selected">No</option>
63
                    [% END %]
64
                    </select>
65
                </li>
66
                <li>
67
                    <label for="UsageStatsCountry">Your country: </label>
68
                    [% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
69
                    [% SET IsUsageStatsCountryValid = 0 %]
70
                    [% IF NOT UsageStatsCountry %]
71
                        [% SET IsUsageStatsCountryValid = 1 %]
72
                    [% END %]
73
                    [% PROCESS 'country-list.inc' %]
74
                    <select name="UsageStatsCountry" id="UsageStatsCountry">
75
                        <option value="">&nbsp;</option>
76
                        [% FOR country IN countries %]
77
                            [% IF country == UsageStatsCountry %]
78
                                <option value="[% country %]" selected="selected">[% country %]</option>
79
                                [% SET IsUsageStatsCountryValid = 1 %]
80
                            [% ELSE %]
62
                            [% ELSE %]
81
                                <option value="[% country %]">[% country %]</option>
63
                                <option value="1">Yes</option>
64
                                <option value="0" selected="selected">No</option>
65
                            [% END %]
66
                            </select>
67
                        </li>
68
                        <li>
69
                            <label for="UsageStatsCountry">Your country: </label>
70
                            [% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
71
                            [% SET IsUsageStatsCountryValid = 0 %]
72
                            [% IF NOT UsageStatsCountry %]
73
                                [% SET IsUsageStatsCountryValid = 1 %]
74
                            [% END %]
75
                            [% PROCESS 'country-list.inc' %]
76
                            <select name="UsageStatsCountry" id="UsageStatsCountry">
77
                                <option value="">&nbsp;</option>
78
                                [% FOR country IN countries %]
79
                                    [% IF country == UsageStatsCountry %]
80
                                        <option value="[% country %]" selected="selected">[% country %]</option>
81
                                        [% SET IsUsageStatsCountryValid = 1 %]
82
                                    [% ELSE %]
83
                                        <option value="[% country %]">[% country %]</option>
84
                                    [% END %]
85
                                [% END %]
86
                            </select>
87
                            [% UNLESS IsUsageStatsCountryValid %]
88
                                Note: The value of your system preference 'UsageStatsCountry' is not valid ([% UsageStatsCountry %]).
89
                                Please select a valid one.
82
                            [% END %]
90
                            [% END %]
83
                        [% END %]
91
                        </li>
84
                    </select>
92
                        <li>
85
                    [% UNLESS IsUsageStatsCountryValid %]
93
                            <label for="UsageStatsLibraryName">Library name: </label>
86
                        Note: The value of your system preference 'UsageStatsCountry' is not valid ([% UsageStatsCountry %]).
94
                            <input type="text" value="[% Koha.Preference('UsageStatsLibraryName') | html %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
87
                        Please select a valid one.
95
                        </li>
88
                    [% END %]
96
                        <li>
89
                </li>
97
                            <label for="UsageStatsLibraryType">Library type: </label>
90
                <li>
98
                            [% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
91
                    <label for="UsageStatsLibraryName">Library name: </label>
99
                            <select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
92
                    <input type="text" value="[% Koha.Preference('UsageStatsLibraryName') | html %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
100
                                <option value="">&nbsp;</option>
93
                </li>
101
                                [% IF UsageStatsLibraryType == 'public' %]
94
                <li>
102
                                    <option value="public" selected="selected">Public</option>
95
                    <label for="UsageStatsLibraryType">Library type: </label>
103
                                [% ELSE %]
96
                    [% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
104
                                    <option value="public">Public</option>
97
                    <select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
105
                                [% END %]
98
                        <option value="">&nbsp;</option>
99
                        [% IF UsageStatsLibraryType == 'public' %]
100
                            <option value="public" selected="selected">Public</option>
101
                        [% ELSE %]
102
                            <option value="public">Public</option>
103
                        [% END %]
104
106
105
                        [% IF UsageStatsLibraryType == 'school' %]
107
                                [% IF UsageStatsLibraryType == 'school' %]
106
                            <option value="school" selected="selected">School</option>
108
                                    <option value="school" selected="selected">School</option>
107
                        [% ELSE %]
109
                                [% ELSE %]
108
                            <option value="school">School</option>
110
                                    <option value="school">School</option>
109
                        [% END %]
111
                                [% END %]
110
                        [% IF UsageStatsLibraryType == 'academic' %]
112
                                [% IF UsageStatsLibraryType == 'academic' %]
111
                            <option value="academic" selected="selected">Academic</option>
113
                                    <option value="academic" selected="selected">Academic</option>
112
                        [% ELSE %]
114
                                [% ELSE %]
113
                            <option value="academic">Academic</option>
115
                                    <option value="academic">Academic</option>
114
                        [% END %]
116
                                [% END %]
115
                        [% IF UsageStatsLibraryType == 'research' %]
117
                                [% IF UsageStatsLibraryType == 'research' %]
116
                            <option value="research" selected="selected">Research</option>
118
                                    <option value="research" selected="selected">Research</option>
117
                        [% ELSE %]
119
                                [% ELSE %]
118
                            <option value="research">Research</option>
120
                                    <option value="research">Research</option>
119
                        [% END %]
121
                                [% END %]
120
                        [% IF UsageStatsLibraryType == 'private' %]
122
                                [% IF UsageStatsLibraryType == 'private' %]
121
                            <option value="private" selected="selected">Private</option>
123
                                    <option value="private" selected="selected">Private</option>
122
                        [% ELSE %]
124
                                [% ELSE %]
123
                            <option value="private">Private</option>
125
                                    <option value="private">Private</option>
124
                        [% END %]
126
                                [% END %]
125
                        [% IF UsageStatsLibraryType == 'societyAssociation' %]
127
                                [% IF UsageStatsLibraryType == 'societyAssociation' %]
126
                            <option value="societyAssociation" selected="selected">Society or association</option>
128
                                    <option value="societyAssociation" selected="selected">Society or association</option>
127
                        [% ELSE %]
129
                                [% ELSE %]
128
                            <option value="societyAssociation">Society or association</option>
130
                                    <option value="societyAssociation">Society or association</option>
129
                        [% END %]
131
                                [% END %]
130
                        [% IF UsageStatsLibraryType == 'corporate' %]
132
                                [% IF UsageStatsLibraryType == 'corporate' %]
131
                            <option value="corporate" selected="selected">Corporate</option>
133
                                    <option value="corporate" selected="selected">Corporate</option>
132
                        [% ELSE %]
134
                                [% ELSE %]
133
                            <option value="corporate">Corporate</option>
135
                                    <option value="corporate">Corporate</option>
134
                        [% END %]
136
                                [% END %]
135
                        [% IF UsageStatsLibraryType == 'government' %]
137
                                [% IF UsageStatsLibraryType == 'government' %]
136
                            <option value="government" selected="selected">Government</option>
138
                                    <option value="government" selected="selected">Government</option>
137
                        [% ELSE %]
139
                                [% ELSE %]
138
                            <option value="government">Government</option>
140
                                    <option value="government">Government</option>
139
                        [% END %]
141
                                [% END %]
140
                        [% IF UsageStatsLibraryType == 'religiousOrg' %]
142
                                [% IF UsageStatsLibraryType == 'religiousOrg' %]
141
                            <option value="religiousOrg" selected="selected">Religious organization</option>
143
                                    <option value="religiousOrg" selected="selected">Religious organization</option>
142
                        [% ELSE %]
144
                                [% ELSE %]
143
                            <option value="religiousOrg">Religious organization</option>
145
                                    <option value="religiousOrg">Religious organization</option>
144
                        [% END %]
146
                                [% END %]
145
                        [% IF UsageStatsLibraryType == 'subscription' %]
147
                                [% IF UsageStatsLibraryType == 'subscription' %]
146
                            <option value="subscription" selected="selected">Subscription</option>
148
                                    <option value="subscription" selected="selected">Subscription</option>
147
                        [% ELSE %]
149
                                [% ELSE %]
148
                            <option value="subscription">Subscription</option>
150
                                    <option value="subscription">Subscription</option>
149
                        [% END %]
151
                                [% END %]
150
                    </select>
152
                            </select>
151
                </li>
153
                        </li>
152
                <li>
154
                        <li>
153
                    <label for="UsageStatsLibraryUrl">Library URL: </label>
155
                            <label for="UsageStatsLibraryUrl">Library URL: </label>
154
                    <input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
156
                            <input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
155
                </li>
157
                        </li>
156
                <li>
158
                        <li>
157
                    <span class="label">Last update: </span>
159
                            <span class="label">Last update: </span>
158
                    [% IF UsageStatsLastUpdateTime %]
160
                            [% IF UsageStatsLastUpdateTime %]
159
                        [% UsageStatsLastUpdateTime %]
161
                                [% UsageStatsLastUpdateTime %]
160
                    [% ELSE %]
162
                            [% ELSE %]
161
                        Your data have never been shared
163
                                Your data have never been shared
162
                    [% END %]
164
                            [% END %]
163
                </li>
165
                        </li>
164
                <li>
166
                        <li>
165
                    <label for="UsageStatsGeolocation">Geolocation: </label>
167
                            <label for="UsageStatsGeolocation">Geolocation: </label>
166
                    <input id="UsageStatsGeolocation" name="UsageStatsGeolocation" value="[% Koha.Preference('UsageStatsGeolocation') %]" type="text" value="[% Koha.Preference('UsageStatsLibrariesInfo') %]" size="35" readonly="readonly" />
168
                            <input id="UsageStatsGeolocation" name="UsageStatsGeolocation" value="[% Koha.Preference('UsageStatsGeolocation') %]" type="text" value="[% Koha.Preference('UsageStatsLibrariesInfo') %]" size="35" readonly="readonly" />
167
                    <a href="#" class="change_geolocation" data-branchname="" data-id="UsageStatsGeolocation"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="Set geolocation" style="max-height: 2em;" /></a>
169
                            <a href="#" class="change_geolocation" data-branchname="" data-id="UsageStatsGeolocation"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="Set geolocation" style="max-height: 2em;" /></a>
168
                </li>
170
                        </li>
169
                <li>
171
                        <li>
170
                    <label for="UsageStatsLibrariesInfo">Libraries informations: </label>
172
                            <label for="UsageStatsLibrariesInfo">Libraries informations: </label>
171
                    <select name="UsageStatsLibrariesInfo" id="UsageStatsLibrariesInfo">
173
                            <select name="UsageStatsLibrariesInfo" id="UsageStatsLibrariesInfo">
172
                        [% IF Koha.Preference('UsageStatsLibrariesInfo') %]
174
                                [% IF Koha.Preference('UsageStatsLibrariesInfo') %]
173
                            <option value="1" selected="selected">Yes</option>
175
                                    <option value="1" selected="selected">Yes</option>
174
                            <option value="0">No</option>
176
                                    <option value="0">No</option>
175
                        [% ELSE %]
177
                                [% ELSE %]
176
                            <option value="1">Yes</option>
178
                                    <option value="1">Yes</option>
177
                            <option value="0" selected="selected">No</option>
179
                                    <option value="0" selected="selected">No</option>
178
                        [% END %]
180
                                [% END %]
179
                    </select>
181
                            </select>
180
                </li>
182
                        </li>
181
183
182
                <li id="libraries_info">
184
                        <li id="libraries_info">
183
                    <fieldset class="rows">
185
                            <fieldset class="rows">
184
                    <legend>Libraries</legend>
186
                            <legend>Libraries</legend>
185
                    <ol>
187
                            <ol>
186
                        [% FOR l IN libraries %]
188
                                [% FOR l IN libraries %]
189
                                <li>
190
                                    <label for="[% l.branchcode %]">[% l.branchname %]: </label>
191
                                    <div style="float:left;">
192
                                        <div>Country: [% l.branchcountry %]</div>
193
                                        <div>Url: [% l.branchurl %]</div>
194
                                        <div>
195
                                            Geolocation: <input type="text" id="geolocation_[% l.branchcode %]" name="geolocation_[% l.branchcode %]" value="[% l.geolocation %]" size="35" readonly="readonly" />
196
                                            <a href="#" class="change_geolocation" data-branchname="[% l.branchname %]" data-id="geolocation_[% l.branchcode %]"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="Set geolocation for [% l.branchname %]" style="max-height: 2em;" /></a>
197
                                        </div>
198
                                    </div>
199
                                </li>
200
                                [% END %]
201
                            </ol>
202
                            </fieldset>
203
                        </li>
187
                        <li>
204
                        <li>
188
                            <label for="[% l.branchcode %]">[% l.branchname %]: </label>
205
                            <label for="MyPublicLink">See your public page: </label>
189
                            <div style="float:left;">
206
                            [% IF Koha.Preference('UsageStatsPublicID') %]
190
                                <div>Country: [% l.branchcountry %]</div>
207
                                [% SET my_url = 'https://hea.koha-community.org/libraries/' _  Koha.Preference('UsageStatsPublicID') %]
191
                                <div>Url: [% l.branchurl %]</div>
208
                                <a href="[% my_url %]">[% my_url %]</a>
192
                                <div>
209
                            [% ELSE %]
193
                                    Geolocation: <input type="text" id="geolocation_[% l.branchcode %]" name="geolocation_[% l.branchcode %]" value="[% l.geolocation %]" size="35" readonly="readonly" />
210
                                You do not have anything public yet.
194
                                    <a href="#" class="change_geolocation" data-branchname="[% l.branchname %]" data-id="geolocation_[% l.branchcode %]"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="Set geolocation for [% l.branchname %]" style="max-height: 2em;" /></a>
211
                            [% END %]
195
                                </div>
196
                            </div>
197
                        </li>
212
                        </li>
198
                        [% END %]
199
                    </ol>
213
                    </ol>
200
                    </fieldset>
214
                </fieldset>
201
                </li>
215
            </div>
202
                <li>
216
            <div class="col-sm-6">
203
                    <label for="MyPublicLink">See your public page: </label>
217
                <div>
204
                    [% IF Koha.Preference('UsageStatsPublicID') %]
218
                    <div id="mapid" style="width:100%;height: 400px;"></div>
205
                        [% SET my_url = 'https://hea.koha-community.org/libraries/' _  Koha.Preference('UsageStatsPublicID') %]
219
                </div>
206
                        <a href="[% my_url %]">[% my_url %]</a>
220
            </div>
207
                    [% ELSE %]
221
        </div>
208
                        You do not have anything public yet.
209
                    [% END %]
210
                </li>
211
212
            </ol>
213
            <div style="clear:right"></div>
214
        <div id="mapid" style="width: 600px; height: 400px; margin-left: 40%:"></div>
215
    </fieldset>
216
222
217
        <fieldset class="action">
223
        <fieldset class="action">
218
            <input type="hidden" name="op" value="update" />
224
            <input type="hidden" name="op" value="update" />
Lines 220-237 Link Here
220
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
226
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
221
        </fieldset>
227
        </fieldset>
222
    </form>
228
    </form>
223
</div>
229
224
</div>
230
            </main>
225
<div class="yui-b">
231
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
226
[% INCLUDE 'admin-menu.inc' %]
232
227
</div>
233
        <div class="col-sm-2 col-sm-pull-10">
228
</div>
234
            <aside>
235
                [% INCLUDE 'admin-menu.inc' %]
236
            </aside>
237
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
238
     </div> <!-- /.row -->
229
239
230
[% MACRO jsinclude BLOCK %]
240
[% MACRO jsinclude BLOCK %]
231
    [% INCLUDE 'calendar.inc' %]
241
    [% INCLUDE 'calendar.inc' %]
232
    [% Asset.js("js/admin-menu.js") %]
242
    [% Asset.js("js/admin-menu.js") %]
233
    <script src="[% interface %]/lib/leaflet/leaflet.js"></script>
243
    <script src="[% interface %]/lib/leaflet/leaflet.js"></script>
234
    <script type="text/javascript">
244
    <script>
235
        function positionMap() {
245
        function positionMap() {
236
            var tbh = $("#mapid");
246
            var tbh = $("#mapid");
237
            var mapContainer = tbh.parent();
247
            var mapContainer = tbh.parent();
238
- 

Return to bug 20743