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

Return to bug 20743