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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-78 / +79 lines)
Lines 1-135 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration</title>
5
<title>[% t('Koha › Administration') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
<body id="admin_admin-home" class="admin">
8
<body id="admin_admin-home" class="admin">
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'prefs-admin-search.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
10
11
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Administration</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Administration') %]</div>
12
13
13
<div class="main container-fluid">
14
<div class="main container-fluid">
14
    <div class="row">
15
    <div class="row">
15
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
16
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
16
17
17
        <h1>Koha administration</h1>
18
        <h1>[% t('Koha administration') %]</h1>
18
        <div class="row">
19
        <div class="row">
19
            <div class="col-md-6 sysprefs">
20
            <div class="col-md-6 sysprefs">
20
21
21
                <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
22
                <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
22
                <fieldset>
23
                <fieldset>
23
                    <h4><a href="/cgi-bin/koha/admin/preferences.pl">Global system preferences</a></h4>
24
                    <h4><a href="/cgi-bin/koha/admin/preferences.pl">[% t('Global system preferences') %]</a></h4>
24
                    <p>Manage global system preferences like MARC flavor, date format, administrator email, and templates.</p>
25
                    <p>[% t('Manage global system preferences like MARC flavor, date format, administrator email, and templates.') %]</p>
25
                    <input type="hidden" name="op" value="search" />
26
                    <input type="hidden" name="op" value="search" />
26
                    <input type="text" name="searchfield" value="[% searchfield %]" />
27
                    <input type="text" name="searchfield" value="[% searchfield %]" />
27
                    <input type="submit" name="ok" class="submit" value="Search" />
28
                    <input type="submit" name="ok" class="submit" value="Search" />
28
                </fieldset>
29
                </fieldset>
29
                </form>
30
                </form>
30
31
31
                <div class="hint"><h4>Hint:</h4><p>Configure these parameters in the order they appear.</p></div>
32
                <div class="hint"><h4>[% t('Hint:') %]</h4><p>[% t('Configure these parameters in the order they appear.') %]</p></div>
32
                <h3>Basic parameters</h3>
33
                <h3>[% t('Basic parameters') %]</h3>
33
                <dl>
34
                <dl>
34
                    <dt><a href="/cgi-bin/koha/admin/branches.pl">Libraries</a></dt>
35
                    <dt><a href="/cgi-bin/koha/admin/branches.pl">[% t('Libraries') %]</a></dt>
35
                    <dd>Define libraries.</dd>
36
                    <dd>[% t('Define libraries.') %]</dd>
36
                    <dt><a href="/cgi-bin/koha/admin/library_groups.pl">Library groups</a></dt>
37
                    <dt><a href="/cgi-bin/koha/admin/library_groups.pl">[% t('Library groups') %]</a></dt>
37
                    <dd>Define hierarchical library groups.</dd>
38
                    <dd>[% t('Define hierarchical library groups.') %]</dd>
38
                    <dt><a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a></dt>
39
                    <dt><a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a></dt>
39
                    <dd>Define item types used for circulation rules.</dd>
40
                    <dd>[% t('Define item types used for circulation rules.') %]</dd>
40
                    <dt><a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a></dt>
41
                    <dt><a href="/cgi-bin/koha/admin/authorised_values.pl">[% t('Authorized values') %]</a></dt>
41
                    <dd>Define categories and authorized values for them.</dd>
42
                    <dd>[% t('Define categories and authorized values for them.') %]</dd>
42
                </dl>
43
                </dl>
43
44
44
                <h3>Patrons and circulation</h3>
45
                <h3>[% t('Patrons and circulation') %]</h3>
45
                <dl>
46
                <dl>
46
                    <dt><a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a></dt>
47
                    <dt><a href="/cgi-bin/koha/admin/categories.pl">[% t('Patron categories') %]</a></dt>
47
                    <dd>Define patron categories.</dd>
48
                    <dd>[% t('Define patron categories.') %]</dd>
48
                [% IF CAN_user_parameters_manage_circ_rules %]
49
                [% IF CAN_user_parameters_manage_circ_rules %]
49
                    <dt><a href="/cgi-bin/koha/admin/smart-rules.pl">Circulation and fines rules</a></dt>
50
                    <dt><a href="/cgi-bin/koha/admin/smart-rules.pl">[% t('Circulation and fines rules') %]</a></dt>
50
                    <dd>Define circulation and fines rules for combinations of libraries, patron categories, and item types</dd>
51
                    <dd>[% t('Define circulation and fines rules for combinations of libraries, patron categories, and item types') %]</dd>
51
                [% END %]
52
                [% END %]
52
                    <dt><a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a></dt>
53
                    <dt><a href="/cgi-bin/koha/admin/patron-attr-types.pl">[% t('Patron attribute types') %]</a></dt>
53
                    <dd>Define extended attributes (identifiers and statistical categories) for patron records</dd>
54
                    <dd>[% t('Define extended attributes (identifiers and statistical categories) for patron records') %]</dd>
54
                    <dt><a href="/cgi-bin/koha/admin/branch_transfer_limits.pl">Library transfer limits</a></dt>
55
                    <dt><a href="/cgi-bin/koha/admin/branch_transfer_limits.pl">[% t('Library transfer limits') %]</a></dt>
55
                    <dd>Limit the ability to transfer items between libraries based on the library sending, the library receiving, and the item type involved. These rules only go into effect if the preference UseBranchTransferLimits is set to ON.</dd>
56
                    <dd>[% t('Limit the ability to transfer items between libraries based on the library sending, the library receiving, and the item type involved. These rules only go into effect if the preference UseBranchTransferLimits is set to ON.') %]</dd>
56
                    <dt><a href="/cgi-bin/koha/admin/transport-cost-matrix.pl">Transport cost matrix</a></dt>
57
                    <dt><a href="/cgi-bin/koha/admin/transport-cost-matrix.pl">[% t('Transport cost matrix') %]</a></dt>
57
                    <dd>Define transport costs between branches</dd>
58
                    <dd>[% t('Define transport costs between branches') %]</dd>
58
                    <dt><a href="/cgi-bin/koha/admin/item_circulation_alerts.pl">Item circulation alerts</a></dt>
59
                    <dt><a href="/cgi-bin/koha/admin/item_circulation_alerts.pl">[% t('Item circulation alerts') %]</a></dt>
59
                    <dd>Define rules for check-in and checkout notifications for combinations of libraries, patron categories, and item types</dd>
60
                    <dd>[% t('Define rules for check-in and checkout notifications for combinations of libraries, patron categories, and item types') %]</dd>
60
                    <dt><a href="/cgi-bin/koha/admin/cities.pl">Cities and towns</a></dt>
61
                    <dt><a href="/cgi-bin/koha/admin/cities.pl">[% t('Cities and towns') %]</a></dt>
61
                    <dd>Define cities and towns that your patrons live in.</dd>
62
                    <dd>[% t('Define cities and towns that your patrons live in.') %]</dd>
62
                </dl>
63
                </dl>
63
                [% IF CAN_user_plugins && plugins_enabled %]
64
                [% IF CAN_user_plugins && plugins_enabled %]
64
                    <h3>Plugins</h3>
65
                    <h3>[% t('Plugins') %]</h3>
65
                    <dl>
66
                    <dl>
66
                        <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl">Manage plugins</a></dt>
67
                        <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('Manage plugins') %]</a></dt>
67
                        <dd>View, manage, configure and run plugins.</dd>
68
                        <dd>[% t('View, manage, configure and run plugins.') %]</dd>
68
                    </dl>
69
                    </dl>
69
                [% END %]
70
                [% END %]
70
                </div>
71
                </div>
71
                <div class="col-md-6 sysprefs">
72
                <div class="col-md-6 sysprefs">
72
                <h3>Catalog</h3>
73
                <h3>[% t('Catalog') %]</h3>
73
                <dl>
74
                <dl>
74
                    <dt><a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic framework</a></dt>
75
                    <dt><a href="/cgi-bin/koha/admin/biblio_framework.pl">[% t('MARC bibliographic framework') %]</a></dt>
75
                    <dd>Create and manage Bibliographic frameworks that define the characteristics of your MARC Records (field and subfield definitions) as well as templates for the MARC editor.</dd>
76
                    <dd>[% t('Create and manage Bibliographic frameworks that define the characteristics of your MARC Records (field and subfield definitions) as well as templates for the MARC editor.') %]</dd>
76
                    <dt><a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC mapping</a></dt>
77
                    <dt><a href="/cgi-bin/koha/admin/koha2marclinks.pl">[% t('Koha to MARC mapping') %]</a></dt>
77
                    <dd>Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records.</dd>
78
                    <dd>[% t('Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records.') %]</dd>
78
                    <dt><a href="/cgi-bin/koha/admin/fieldmapping.pl">Keywords to MARC mapping</a></dt>
79
                    <dt><a href="/cgi-bin/koha/admin/fieldmapping.pl">[% t('Keywords to MARC mapping') %]</a></dt>
79
                    <dd>Define the mapping between keywords and MARC fields. The keywords are used to find some data independently of the framework.</dd>
80
                    <dd>[% t('Define the mapping between keywords and MARC fields. The keywords are used to find some data independently of the framework.') %]</dd>
80
                    <dt><a href="/cgi-bin/koha/admin/checkmarc.pl">MARC Bibliographic framework test</a></dt>
81
                    <dt><a href="/cgi-bin/koha/admin/checkmarc.pl">[% t('MARC Bibliographic framework test') %]</a></dt>
81
                    <dd>Checks the MARC structure. If you change your MARC Bibliographic framework it's recommended that you run this tool to test for errors in your definition.</dd>
82
                    <dd>[% t('Checks the MARC structure. If you change your MARC Bibliographic framework it\'s recommended that you run this tool to test for errors in your definition.') %]</dd>
82
                    <dt><a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a></dt>
83
                    <dt><a href="/cgi-bin/koha/admin/authtypes.pl">[% t('Authority types') %]</a></dt>
83
                    <dd>Create and manage Authorities frameworks that define the characteristics of your MARC Records (field and subfield definitions).</dd>
84
                    <dd>[% t('Create and manage Authorities frameworks that define the characteristics of your MARC Records (field and subfield definitions).') %]</dd>
84
                    <dt><a href="/cgi-bin/koha/admin/classsources.pl">Classification sources</a></dt>
85
                    <dt><a href="/cgi-bin/koha/admin/classsources.pl">[% t('Classification sources') %]</a></dt>
85
                    <dd>Define classification sources (i.e., call number schemes) used by your collection.  Also define filing rules used for sorting call numbers.</dd>
86
                    <dd>[% t('Define classification sources (i.e., call number schemes) used by your collection.') %]  [% t('Also define filing rules used for sorting call numbers.') %]</dd>
86
                    <dt><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></dt>
87
                    <dt><a href="/cgi-bin/koha/admin/matching-rules.pl">[% t('Record matching rules') %]</a></dt>
87
                    <dd>Manage rules for automatically matching MARC records during record imports.</dd>
88
                    <dd>[% t('Manage rules for automatically matching MARC records during record imports.') %]</dd>
88
                    <dt><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></dt>
89
                    <dt><a href="/cgi-bin/koha/admin/oai_sets.pl">[% t('OAI sets configuration') %]</a></dt>
89
                    <dd>Manage OAI Sets</dd>
90
                    <dd>[% t('Manage OAI Sets') %]</dd>
90
                    <dt><a href="/cgi-bin/koha/admin/items_search_fields.pl">Item search fields</a></dt>
91
                    <dt><a href="/cgi-bin/koha/admin/items_search_fields.pl">[% t('Item search fields') %]</a></dt>
91
                    <dd>Manage custom fields for item search.</dd>
92
                    <dd>[% t('Manage custom fields for item search.') %]</dd>
92
                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %]
93
                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %]
93
                        <dt><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration</a></dt>
94
                        <dt><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">[% t('Search engine configuration') %]</a></dt>
94
                        <dd>Manage indexes, facets, and their mappings to MARC fields and subfields.</dd>
95
                        <dd>[% t('Manage indexes, facets, and their mappings to MARC fields and subfields.') %]</dd>
95
                    [% END %]
96
                    [% END %]
96
                </dl>
97
                </dl>
97
98
98
                <h3>Acquisition parameters</h3>
99
                <h3>[% t('Acquisition parameters') %]</h3>
99
                <dl>
100
                <dl>
100
                        <dt><a href="/cgi-bin/koha/admin/currency.pl">Currencies and exchange rates</a></dt>
101
                        <dt><a href="/cgi-bin/koha/admin/currency.pl">[% t('Currencies and exchange rates') %]</a></dt>
101
                        <dd>Define currencies and exchange rates used for acquisitions.</dd>
102
                        <dd>[% t('Define currencies and exchange rates used for acquisitions.') %]</dd>
102
103
103
                        <dt><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a></dt>
104
                        <dt><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a></dt>
104
                        <dd>Define your budgets</dd>
105
                        <dd>[% t('Define your budgets') %]</dd>
105
106
106
                        <dt><a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a></dt>
107
                        <dt><a href="/cgi-bin/koha/admin/aqbudgets.pl">[% t('Funds') %]</a></dt>
107
                        <dd>Define funds within your budgets</dd>
108
                        <dd>[% t('Define funds within your budgets') %]</dd>
108
109
109
                        <dt><a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a></dt>
110
                        <dt><a href="/cgi-bin/koha/admin/edi_accounts.pl">[% t('EDI accounts') %]</a></dt>
110
                        <dd>Manage vendor EDI accounts for import/export</dd>
111
                        <dd>[% t('Manage vendor EDI accounts for import/export') %]</dd>
111
                        <dt><a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a></dt>
112
                        <dt><a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">[% t('Library EANs') %]</a></dt>
112
                        <dd>Manage library EDI EANs</dd>
113
                        <dd>[% t('Manage library EDI EANs') %]</dd>
113
                </dl>
114
                </dl>
114
115
115
                <h3>Additional parameters</h3>
116
                <h3>[% t('Additional parameters') %]</h3>
116
                <dl>
117
                <dl>
117
                    <!-- <dt><a href="/cgi-bin/koha/admin/printers.pl">Network Printers</a></dt>
118
                    <!-- <dt><a href="/cgi-bin/koha/admin/printers.pl">Network Printers</a></dt>
118
                    <dd>Printers (UNIX paths).</dd> -->
119
                    <dd>Printers (UNIX paths).</dd> -->
119
                    <dt><a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a></dt>
120
                    <dt><a href="/cgi-bin/koha/admin/z3950servers.pl">[% t('Z39.50/SRU servers') %]</a></dt>
120
                    <dd>Define which external servers to query for MARC data.</dd>
121
                    <dd>[% t('Define which external servers to query for MARC data.') %]</dd>
121
                    <dt><a href="/cgi-bin/koha/admin/didyoumean.pl">Did you mean?</a></dt>
122
                    <dt><a href="/cgi-bin/koha/admin/didyoumean.pl">[% t('Did you mean?') %]</a></dt>
122
                    <dd>Choose which plugins to use to suggest searches to patrons and staff.</dd>
123
                    <dd>[% t('Choose which plugins to use to suggest searches to patrons and staff.') %]</dd>
123
                    <dt><a href="/cgi-bin/koha/admin/columns_settings.pl">Configure columns</a></dt>
124
                    <dt><a href="/cgi-bin/koha/admin/columns_settings.pl">[% t('Configure columns') %]</a></dt>
124
                    <dd>Hide or show columns for tables.</dd>
125
                    <dd>[% t('Hide or show columns for tables.') %]</dd>
125
                    <dt><a href="/cgi-bin/koha/admin/audio_alerts.pl">Audio alerts</a></dt>
126
                    <dt><a href="/cgi-bin/koha/admin/audio_alerts.pl">[% t('Audio alerts') %]</a></dt>
126
                    <dd>Define which events trigger which sounds</dd>
127
                    <dd>[% t('Define which events trigger which sounds') %]</dd>
127
                    [% IF Koha.Preference('SMSSendDriver') == 'Email' %]
128
                    [% IF Koha.Preference('SMSSendDriver') == 'Email' %]
128
                        <dt><a href="/cgi-bin/koha/admin/sms_providers.pl">SMS cellular providers</a></dt>
129
                        <dt><a href="/cgi-bin/koha/admin/sms_providers.pl">[% t('SMS cellular providers') %]</a></dt>
129
                        <dd>Define a list of cellular providers for sending SMS messages via email.</dd>
130
                        <dd>[% t('Define a list of cellular providers for sending SMS messages via email.') %]</dd>
130
                    [% END %]
131
                    [% END %]
131
                    <dt><a href="/cgi-bin/koha/admin/usage_statistics.pl">Share your usage statistics</a></dt>
132
                    <dt><a href="/cgi-bin/koha/admin/usage_statistics.pl">[% t('Share your usage statistics') %]</a></dt>
132
                    <dd>Share with the Koha community the usage statistics of your Koha installation.</dd>
133
                    <dd>[% t('Share with the Koha community the usage statistics of your Koha installation.') %]</dd>
133
                </dl>
134
                </dl>
134
            </div>
135
            </div>
135
        </div>
136
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-118 / +117 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Price %]
4
[% USE Price %]
Lines 5-33 Link Here
5
[%- BLOCK action_menu %]
6
[%- BLOCK action_menu %]
6
    <div class="dropdown">
7
    <div class="dropdown">
7
        <a class="btn btn-default btn-xs dropdown-toggle" id="budgetmenu_[% block_budget.budget_period_id %]" role="button" data-toggle="dropdown" href="#">
8
        <a class="btn btn-default btn-xs dropdown-toggle" id="budgetmenu_[% block_budget.budget_period_id %]" role="button" data-toggle="dropdown" href="#">
8
           Actions <b class="caret"></b>
9
           [% t('Actions') %] <b class="caret"></b>
9
        </a>
10
        </a>
10
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id %]">
11
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget.budget_period_id %]">
11
              <li>
12
              <li>
12
                  <a href="[% script_name %]?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id |html %]"><i class="fa fa-pencil"></i> Edit</a>
13
                  <a href="[% script_name %]?op=add_form&budget_period_id=[% block_budget.budget_period_id |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
13
              </li>
14
              </li>
14
              [% IF block_budget.count %]
15
              [% IF block_budget.count %]
15
                  <li class="disabled">
16
                  <li class="disabled">
16
                      <a data-toggle="tooltip" data-placement="left" title="[% block_budget.count %] fund(s) are attached to this budget. You must delete all attached funds before deleting this budget." href="#"><i class="fa fa-trash"></i> Delete</a>
17
                      <a data-toggle="tooltip" data-placement="left" title="[% block_budget.count %] [% t('fund(s) are attached to this budget. You must delete all attached funds before deleting this budget.') %]" href="#"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
17
                  </li>
18
                  </li>
18
              [% ELSE %]
19
              [% ELSE %]
19
                  <li>
20
                  <li>
20
                      <a href="[% script_name %]?op=delete_confirm&amp;budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-trash"></i> Delete</a>
21
                      <a href="[% script_name %]?op=delete_confirm&budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
21
                  </li>
22
                  </li>
22
              [% END %]
23
              [% END %]
23
              <li>
24
              <li>
24
                  <a href="[% script_name %]?op=duplicate_form&amp;budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-copy"></i> Duplicate</a>
25
                  <a href="[% script_name %]?op=duplicate_form&budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-copy"></i> [% t('Duplicate') %]</a>
25
              </li>
26
              </li>
26
              <li>
27
              <li>
27
                  <a href="[% script_name %]?op=close_form&amp;budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-times-circle"></i> Close</a>
28
                  <a href="[% script_name %]?op=close_form&budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-times-circle"></i> [% t('Close') %]</a>
28
              </li>
29
              </li>
29
              <li>
30
              <li>
30
                  <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-plus"></i> Add fund</a>
31
                  <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% block_budget.budget_period_id %]"><i class="fa fa-plus"></i> [% t('Add fund') %]</a>
31
              </li>
32
              </li>
32
        </ul>
33
        </ul>
33
    </div>
34
    </div>
Lines 41-67 Link Here
41
[% END %]
42
[% END %]
42
43
43
<title>
44
<title>
44
    Koha &rsaquo; Administration &rsaquo; Budgets
45
    [% t('Koha › Administration › Budgets') %]
45
46
46
    [% IF ( add_form ) %]&rsaquo;
47
    [% IF ( add_form ) %]›
47
        [% IF ( budget_period_id ) %]
48
        [% IF ( budget_period_id ) %]
48
            Modify budget [% budget_period_description %]
49
            [% t('Modify budget') %] [% budget_period_description %]
49
        [% ELSE %]
50
        [% ELSE %]
50
            Add budget
51
            [% t('Add budget') %]
51
        [% END %]
52
        [% END %]
52
    [% END %]
53
    [% END %]
53
    [% IF ( duplicate_form ) %]&rsaquo; Duplicate budget[% END %]
54
    [% IF ( duplicate_form ) %][% t('› Duplicate budget') %][% END %]
54
    [% IF ( delete_confirm ) %]&rsaquo;
55
    [% IF ( delete_confirm ) %]›
55
            Delete budget '[% budget_period_description %]'?
56
            [% t('Delete budget \'') %][% budget_period_description %]'?
56
    [% END %]
57
    [% END %]
57
    [% IF ( delete_confirmed ) %]&rsaquo;
58
    [% IF ( delete_confirmed ) %]›
58
        Data deleted
59
        [% t('Data deleted') %]
59
    [% END %]
60
    [% END %]
60
    [% IF close_form %]&rsaquo;
61
    [% IF close_form %]›
61
      Close budget [% budget_period_description %]
62
      [% t('Close budget') %] [% budget_period_description %]
62
    [% END %]
63
    [% END %]
63
    [% IF closed %]&rsaquo;
64
    [% IF closed %]›
64
      Budget [% budget_period_description %] closed
65
      [% t('Budget') %] [% budget_period_description %] [% t('closed') %]
65
    [% END %]
66
    [% END %]
66
</title>
67
</title>
67
68
Lines 78-115 Link Here
78
<!-- ################################################################################# -->
79
<!-- ################################################################################# -->
79
80
80
<div id="breadcrumbs">
81
<div id="breadcrumbs">
81
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
82
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
82
    <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
83
    <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
83
84
84
    [% IF ( add_form ) %]
85
    [% IF ( add_form ) %]
85
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
86
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> ›
86
        [% IF ( budget_period_id ) %]
87
        [% IF ( budget_period_id ) %]
87
            <span>Modify budget '[% budget_period_description %]'</span>
88
            <span>[% t('Modify budget \'') %][% budget_period_description %]'</span>
88
        [% ELSE %]
89
        [% ELSE %]
89
            <span>Add budget</span>
90
            <span>[% t('Add budget') %]</span>
90
        [% END %]
91
        [% END %]
91
    [% END %]
92
    [% END %]
92
    [% IF ( delete_confirm ) %]
93
    [% IF ( delete_confirm ) %]
93
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
94
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> ›
94
        [% IF ( total || funds_exist ) %]
95
        [% IF ( total || funds_exist ) %]
95
            <span>Cannot delete budget '[% budget_period_description %]'</span>
96
            <span>[% t('Cannot delete budget \'') %][% budget_period_description %]'</span>
96
        [% ELSE %]
97
        [% ELSE %]
97
            <span>Delete budget '[% budget_period_description %]'?</span>
98
            <span>[% t('Delete budget \'') %][% budget_period_description %]'?</span>
98
        [% END %]
99
        [% END %]
99
    [% END %]
100
    [% END %]
100
    [% IF ( duplicate_form ) %]
101
    [% IF ( duplicate_form ) %]
101
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo; Duplicate budget
102
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> [% t('› Duplicate budget') %]
102
    [% END %]
103
    [% END %]
103
    [% IF close_form %]
104
    [% IF close_form %]
104
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
105
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> ›
105
        <span>Close budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a></span>
106
        <span>[% t('Close budget') %] <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a></span>
106
    [% END %]
107
    [% END %]
107
    [% IF closed %]
108
    [% IF closed %]
108
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
109
        <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> ›
109
        <span>Budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a> closed</span>
110
        <span>[% t('Budget') %] <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a> [% t('closed') %]</span>
110
    [% END %]
111
    [% END %]
111
    [% IF ( else ) %]
112
    [% IF ( else ) %]
112
        <span>Budgets administration</span>
113
        <span>[% t('Budgets administration') %]</span>
113
    [% END %]
114
    [% END %]
114
</div>
115
</div>
115
116
Lines 123-129 Link Here
123
[% END %]
124
[% END %]
124
125
125
[% IF ( duplicate_form ) %]
126
[% IF ( duplicate_form ) %]
126
<h3>Duplicate budget</h3>
127
<h3>[% t('Duplicate budget') %]</h3>
127
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
128
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
128
    <fieldset class="rows">
129
    <fieldset class="rows">
129
    <input type="hidden" name="op" value="duplicate_budget" />
130
    <input type="hidden" name="op" value="duplicate_budget" />
Lines 132-172 Link Here
132
    <ol>
133
    <ol>
133
134
134
    <li>
135
    <li>
135
    <label class="required" for="from">Start date: </label>
136
    <label class="required" for="from">[% t('Start date:') %] </label>
136
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
137
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
137
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
138
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
138
    </li>
139
    </li>
139
    <li>
140
    <li>
140
141
141
    <label class="required" for="to">End date: </label>
142
    <label class="required" for="to">[% t('End date:') %] </label>
142
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
143
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
143
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
144
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
144
    </li>
145
    </li>
145
146
146
    <li>
147
    <li>
147
    <label class="required" for="budget_period_description">Description</label>
148
    <label class="required" for="budget_period_description">[% t('Description') %]</label>
148
    <input type="text" id="budget_period_description" name="budget_period_description" value="[% budgetperiod.budget_period_description %]" />
149
    <input type="text" id="budget_period_description" name="budget_period_description" value="[% budgetperiod.budget_period_description %]" />
149
    </li>
150
    </li>
150
151
151
    <li>
152
    <li>
152
      <label for="amount_change_percentage">Change amounts by</label>
153
      <label for="amount_change_percentage">[% t('Change amounts by') %]</label>
153
      <input type="text" id="amount_change_percentage" name="amount_change_percentage" /> %
154
      <input type="text" id="amount_change_percentage" name="amount_change_percentage" /> %
154
      <div class="hint">(can be positive or negative)</div>
155
      <div class="hint">[% t('(can be positive or negative)') %]</div>
155
    </li>
156
    </li>
156
157
157
    <li>
158
    <li>
158
      <label for="amount_change_round_increment">If amounts changed, round to a multiple of</label>
159
      <label for="amount_change_round_increment">[% t('If amounts changed, round to a multiple of') %]</label>
159
      <input type="text" id="amount_change_round_increment" name="amount_change_round_increment" />
160
      <input type="text" id="amount_change_round_increment" name="amount_change_round_increment" />
160
      <div class="hint">(amounts will be rounded down)</div>
161
      <div class="hint">[% t('(amounts will be rounded down)') %]</div>
161
    </li>
162
    </li>
162
163
163
    <li>
164
    <li>
164
      <label for="mark_as_inactive">Mark the original budget as inactive</label>
165
      <label for="mark_as_inactive">[% t('Mark the original budget as inactive') %]</label>
165
      <input type="checkbox" id="mark_as_inactive" name="mark_original_budget_as_inactive" />
166
      <input type="checkbox" id="mark_as_inactive" name="mark_original_budget_as_inactive" />
166
    </li>
167
    </li>
167
168
168
    <li>
169
    <li>
169
      <label for="reset_all_budgets">Set all funds to zero</label>
170
      <label for="reset_all_budgets">[% t('Set all funds to zero') %]</label>
170
      <input type="checkbox" id="reset_all_budgets" name="reset_all_budgets" />
171
      <input type="checkbox" id="reset_all_budgets" name="reset_all_budgets" />
171
    </li>
172
    </li>
172
173
Lines 174-180 Link Here
174
    </fieldset>
175
    </fieldset>
175
176
176
    <fieldset class="action">
177
    <fieldset class="action">
177
        <input type="button" value="Save Changes"  onclick="CheckDuplicateForm(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Cancel</a>
178
        <input type="button" value="Save Changes" onclick="CheckDuplicateForm(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% t('Cancel') %]</a>
178
    </fieldset>
179
    </fieldset>
179
180
180
</form>
181
</form>
Lines 185-193 Link Here
185
    <!--  add or modify a budget period   -->
186
    <!--  add or modify a budget period   -->
186
187
187
    [% IF ( budget_period_id ) %]
188
    [% IF ( budget_period_id ) %]
188
        <h3>Modify budget <i>[% budget_period_description %]</i></h3>
189
        <h3>[% t('Modify budget') %] <i>[% budget_period_description %]</i></h3>
189
    [% ELSE %]
190
    [% ELSE %]
190
        <h3>Add budget</h3>
191
        <h3>[% t('Add budget') %]</h3>
191
	[% END %]
192
	[% END %]
192
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
193
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
193
    <fieldset class="rows">
194
    <fieldset class="rows">
Lines 198-210 Link Here
198
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
199
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
199
    <ol>
200
    <ol>
200
    <li>
201
    <li>
201
    <label class="required" for="from">Start date: </label>
202
    <label class="required" for="from">[% t('Start date:') %] </label>
202
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
203
    <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
203
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
204
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
204
    </li>
205
    </li>
205
    <li>
206
    <li>
206
207
207
    <label class="required" for="to">End date: </label>
208
    <label class="required" for="to">[% t('End date:') %] </label>
208
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
209
    <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
209
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
210
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
210
    </li>
211
    </li>
Lines 212-242 Link Here
212
    <li>
213
    <li>
213
        <!-- DESCRIPTION -->
214
        <!-- DESCRIPTION -->
214
        <!-- ############################## -->
215
        <!-- ############################## -->
215
        <label class="required" for="budget_period_description">Description: </label>
216
        <label class="required" for="budget_period_description">[% t('Description:') %] </label>
216
        <input type="text" id="budget_period_description" name="budget_period_description"
217
        <input type="text" id="budget_period_description" name="budget_period_description" size="48" maxlength="80" value="[% budget_period_description %]" />
217
        size="48" maxlength="80" value="[% budget_period_description %]" />
218
    </li>
218
    </li>
219
219
220
    <li>
220
    <li>
221
        <!-- TOTAL -->
221
        <!-- TOTAL -->
222
        <!-- ############################## -->
222
        <!-- ############################## -->
223
        <label for="budget_period_total">Total amount: </label>
223
        <label for="budget_period_total">[% t('Total amount:') %] </label>
224
        <input type="text" id="budget_period_total" name="budget_period_total"
224
        <input type="text" id="budget_period_total" name="budget_period_total" size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
225
        size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
226
    </li>
225
    </li>
227
226
228
    <li>
227
    <li>
229
        <!-- ACTIVE -->
228
        <!-- ACTIVE -->
230
        <!-- ############################## -->
229
        <!-- ############################## -->
231
        <label for="budget_period_active">Make budget active: </label>
230
        <label for="budget_period_active">[% t('Make budget active:') %] </label>
232
        [% IF ( budget_period_active ) %]<input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1"/> [% END %]
231
        [% IF ( budget_period_active ) %]<input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1" /> [% END %]
233
    </li>
232
    </li>
234
233
235
    <li>
234
    <li>
236
        <!-- LOCK  -->
235
        <!-- LOCK  -->
237
        <!-- ############################## -->
236
        <!-- ############################## -->
238
        <label for="budget_period_locked">Lock budget: </label>
237
        <label for="budget_period_locked">[% t('Lock budget:') %] </label>
239
        [% IF ( budget_period_locked ) %]<input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1"/> [% END %]
238
        [% IF ( budget_period_locked ) %]<input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1" /> [% END %]
240
    </li>
239
    </li>
241
    </ol>
240
    </ol>
242
    </fieldset>
241
    </fieldset>
Lines 244-255 Link Here
244
    <fieldset class="action">
243
    <fieldset class="action">
245
        <!-- "save changes" button -->
244
        <!-- "save changes" button -->
246
        <!-- ###################################### -->
245
        <!-- ###################################### -->
247
        <input type="button" value="Save"  onclick="Check(this.form)" />
246
        <input type="button" value="Save" onclick="Check(this.form)" />
248
        <!--             <input type="submit" value="Save Changes"  />  -->
247
        <!--             <input type="submit" value="Save Changes"  />  -->
249
        [% IF ( budget_period_id ) %]
248
        [% IF ( budget_period_id ) %]
250
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]" class="cancel">Cancel</a>
249
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]" class="cancel">[% t('Cancel') %]</a>
251
        [% ELSE %]
250
        [% ELSE %]
252
            <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" class="cancel">Cancel</a>
251
            <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" class="cancel">[% t('Cancel') %]</a>
253
        [% END %]
252
        [% END %]
254
    </fieldset>
253
    </fieldset>
255
254
Lines 264-279 Link Here
264
[% IF ( delete_confirm ) %]
263
[% IF ( delete_confirm ) %]
265
    [% IF ( total ) %]
264
    [% IF ( total ) %]
266
        <div class="dialog message">
265
        <div class="dialog message">
267
        <h3>Cannot delete budget</h3>
266
        <h3>[% t('Cannot delete budget') %]</h3>
268
        <p><strong>This record is used [% total %] times</strong>
267
        <p><strong>[% t('This record is used') %] [% total %] [% t('times') %]</strong>
269
        . Deletion is not possible.</p>
268
        [% t('. Deletion is not possible.') %]</p>
270
    [% ELSIF ( funds_exist ) %]
269
    [% ELSIF ( funds_exist ) %]
271
        <div class="dialog message">
270
        <div class="dialog message">
272
        <h3>Cannot delete budget</h3>
271
        <h3>[% t('Cannot delete budget') %]</h3>
273
        <p>This budget has funds attached. You must delete all attached funds before you can delete this budget.</p>
272
        <p>[% t('This budget has funds attached. You must delete all attached funds before you can delete this budget.') %]</p>
274
    [% ELSE %]
273
    [% ELSE %]
275
        <div class="dialog alert">
274
        <div class="dialog alert">
276
        <h3>Delete budget '[% budget_period_description %]'?</h3>
275
        <h3>[% t('Delete budget \'') %][% budget_period_description %]'?</h3>
277
276
278
    <!-- ############################################################# -->
277
    <!-- ############################################################# -->
279
    <!-- "delete" and "cancel" buttons    -->
278
    <!-- "delete" and "cancel" buttons    -->
Lines 282-291 Link Here
282
    <form action="[% script_name %]" method="post">
281
    <form action="[% script_name %]" method="post">
283
        <input type="hidden" name="op" value="delete_confirmed" />
282
        <input type="hidden" name="op" value="delete_confirmed" />
284
        <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
283
        <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
285
        <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
284
        <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
286
    </form>
285
    </form>
287
    <form action="[% script_name %]" method="post">
286
    <form action="[% script_name %]" method="post">
288
        <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
287
        <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
289
    </form>
288
    </form>
290
    [% END %]
289
    [% END %]
291
290
Lines 294-315 Link Here
294
293
295
[% IF close_form %]
294
[% IF close_form %]
296
  [% IF budget_periods.size == 0 %]
295
  [% IF budget_periods.size == 0 %]
297
    You cannot move funds of this budget, there is no active budget.
296
    [% t('You cannot move funds of this budget, there is no active budget.') %]
298
    Please create a new active budget and retry.
297
    [% t('Please create a new active budget and retry.') %]
299
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
298
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Back') %]</a>
300
  [% ELSIF number_of_unreceived_orders == 0 %]
299
  [% ELSIF number_of_unreceived_orders == 0 %]
301
    There are no unreceived orders for this budget.
300
    [% t('There are no unreceived orders for this budget.') %]
302
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
301
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Back') %]</a>
303
  [% ELSE %]
302
  [% ELSE %]
304
    <h3>The unreceived orders from the following funds will be moved</h3>
303
    <h3>[% t('The unreceived orders from the following funds will be moved') %]</h3>
305
      Fund list of budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a>:
304
      [% t('Fund list of budget') %] <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a>:
306
    <table id="budgeth">
305
    <table id="budgeth">
307
      <thead>
306
      <thead>
308
        <tr>
307
        <tr>
309
            <th>Fund id</th>
308
            <th>[% t('Fund id') %]</th>
310
            <th>Fund code</th>
309
            <th>[% t('Fund code') %]</th>
311
            <th>Fund name</th>
310
            <th>[% t('Fund name') %]</th>
312
            <th>Unreceived orders</th>
311
            <th>[% t('Unreceived orders') %]</th>
313
        </tr>
312
        </tr>
314
      </thead>
313
      </thead>
315
      <tbody>
314
      <tbody>
Lines 327-333 Link Here
327
      <fieldset class="rows">
326
      <fieldset class="rows">
328
        <ol>
327
        <ol>
329
          <li>
328
          <li>
330
            <label class="required" for="to_budget_period_id">Select a budget</label>
329
            <label class="required" for="to_budget_period_id">[% t('Select a budget') %]</label>
331
            <select name="to_budget_period_id" id="to_budget_period_id" required="required">
330
            <select name="to_budget_period_id" id="to_budget_period_id" required="required">
332
              <option value=""></option>
331
              <option value=""></option>
333
              [% FOR budget_period IN budget_periods %]
332
              [% FOR budget_period IN budget_periods %]
Lines 336-342 Link Here
336
            </select>
335
            </select>
337
          </li>
336
          </li>
338
          <li>
337
          <li>
339
          <label for="move_remaining_unspent">Move remaining unspent funds</label>
338
          <label for="move_remaining_unspent">[% t('Move remaining unspent funds') %]</label>
340
            <input type="checkbox" name="move_remaining_unspent" id="move_remaining_unspent" />
339
            <input type="checkbox" name="move_remaining_unspent" id="move_remaining_unspent" />
341
          </li>
340
          </li>
342
        </ol>
341
        </ol>
Lines 345-364 Link Here
345
          <input type="hidden" name="op" value="close_confirmed" />
344
          <input type="hidden" name="op" value="close_confirmed" />
346
          <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
345
          <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
347
          <input type="submit" value="Move unreceived orders" />
346
          <input type="submit" value="Move unreceived orders" />
348
          <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Cancel</a>
347
          <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Cancel') %]</a>
349
      </fieldset>
348
      </fieldset>
350
    </form>
349
    </form>
351
  [% END %]
350
  [% END %]
352
[% ELSIF closed %]
351
[% ELSIF closed %]
353
  <h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3>
352
  <h3>[% t('Report after moving unreceived orders from budget') %] [% from_budget_period.budget_period_description %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %][% t(') to') %] [% to_budget_period.budget_period_description %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3>
354
353
355
  <table id="closed_report">
354
  <table id="closed_report">
356
    <thead>
355
    <thead>
357
      <tr>
356
      <tr>
358
        <td>Budget id</td>
357
        <td>[% t('Budget id') %]</td>
359
        <td>Basket</td>
358
        <td>[% t('Basket') %]</td>
360
        <td>Ordernumber</td>
359
        <td>[% t('Ordernumber') %]</td>
361
        <td>Details</td>
360
        <td>[% t('Details') %]</td>
362
      </tr>
361
      </tr>
363
    </thead>
362
    </thead>
364
    <tbody>
363
    <tbody>
Lines 367-393 Link Here
367
            [% IF r.orders_moved.size > 0 %]
366
            [% IF r.orders_moved.size > 0 %]
368
              [% FOR order IN r.orders_moved %]
367
              [% FOR order IN r.orders_moved %]
369
                <tr>
368
                <tr>
370
                  <td>[% r.budget.budget_name %] (id=[% r.budget.budget_id %]) Amount=[% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %]</td>
369
                  <td>[% r.budget.budget_name %] [% t('(id=') %][% r.budget.budget_id %][% t(') Amount=') %][% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] [% t('remaining has been moved)') %][% END %]</td>
371
                  <td>[% order.basketname %]</td>
370
                  <td>[% order.basketname %]</td>
372
                  <td>[% order.ordernumber %]</td>
371
                  <td>[% order.ordernumber %]</td>
373
                  <td>Moved!</td>
372
                  <td>[% t('Moved!') %]</td>
374
                </tr>
373
                </tr>
375
              [% END %]
374
              [% END %]
376
            [% ELSE %]
375
            [% ELSE %]
377
              <tr>
376
              <tr>
378
                <td>[% r.budget.budget_name %] (id=[% r.budget.budget_id %])</td>
377
                <td>[% r.budget.budget_name %] [% t('(id=') %][% r.budget.budget_id %])</td>
379
                <td></td>
378
                <td></td>
380
                <td></td>
379
                <td></td>
381
                <td>There were no unreceived orders for this fund.</td>
380
                <td>[% t('There were no unreceived orders for this fund.') %]</td>
382
              </tr>
381
              </tr>
383
            [% END %]
382
            [% END %]
384
          [% ELSE %]
383
          [% ELSE %]
385
            [% IF r.error == 'budget_code_not_exists' %]
384
            [% IF r.error == 'budget_code_not_exists' %]
386
              <tr>
385
              <tr>
387
                <td>[% r.budget.budget_id %] [% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %]</td>
386
                <td>[% r.budget.budget_id %] [% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] [% t('remaining has been moved)') %][% END %]</td>
388
                <td></td>
387
                <td></td>
389
                <td></td>
388
                <td></td>
390
                <td>This fund code does not exist in the destination budget.</td>
389
                <td>[% t('This fund code does not exist in the destination budget.') %]</td>
391
              </tr>
390
              </tr>
392
            [% END %]
391
            [% END %]
393
          [% END %]
392
          [% END %]
Lines 395-417 Link Here
395
      [% END %]
394
      [% END %]
396
    </tbody>
395
    </tbody>
397
  </table>
396
  </table>
398
  <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
397
  <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Back') %]</a>
399
[% END %]
398
[% END %]
400
399
401
<!--  DEFAULT  display budget periods list -->
400
<!--  DEFAULT  display budget periods list -->
402
[% IF ( else ) %]
401
[% IF ( else ) %]
403
  <h2>Budgets administration</h2>
402
  <h2>[% t('Budgets administration') %]</h2>
404
403
405
    [% IF ( failed_delete_funds_exist ) %]
404
    [% IF ( failed_delete_funds_exist ) %]
406
        <div class="dialog message">Failed to delete budget because funds exist.</div>
405
        <div class="dialog message">[% t('Failed to delete budget because funds exist.') %]</div>
407
    [% END %]
406
    [% END %]
408
407
409
  [% INCLUDE 'budgets-active-currency.inc' %]
408
  [% INCLUDE 'budgets-active-currency.inc' %]
410
409
411
  <div id="budgetsTabs" class="toptabs">
410
  <div id="budgetsTabs" class="toptabs">
412
    <ul>
411
    <ul>
413
        <li><a href="#active">Active budgets</a></li>
412
        <li><a href="#active">[% t('Active budgets') %]</a></li>
414
        <li><a href="#inactive">Inactive budgets</a></li>
413
        <li><a href="#inactive">[% t('Inactive budgets') %]</a></li>
415
    </ul>
414
    </ul>
416
415
417
    <div id="active">
416
    <div id="active">
Lines 419-441 Link Here
419
        <table id="activeperiodst">
418
        <table id="activeperiodst">
420
          <thead>
419
          <thead>
421
            <tr>
420
            <tr>
422
              <th>Budget name</th>
421
              <th>[% t('Budget name') %]</th>
423
              <th class="title-string">Start date</th>
422
              <th class="title-string">[% t('Start date') %]</th>
424
              <th class="title-string">End date</th>
423
              <th class="title-string">[% t('End date') %]</th>
425
              <th>Locked</th>
424
              <th>[% t('Locked') %]</th>
426
              <th>Total</th>
425
              <th>[% t('Total') %]</th>
427
              <th>Actions</th>
426
              <th>[% t('Actions') %]</th>
428
            </tr>
427
            </tr>
429
          </thead>
428
          </thead>
430
          <tbody>
429
          <tbody>
431
              [% FOREACH period_active IN period_active_loop %]
430
              [% FOREACH period_active IN period_active_loop %]
432
                <tr>
431
                <tr>
433
                <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="View funds for [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td>
432
                <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="[% t('View funds for') %] [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td>
434
                <td><span title="[% period_active.budget_period_startdate %]">[% period_active.budget_period_startdate | $KohaDates %]</span></td>
433
                <td><span title="[% period_active.budget_period_startdate %]">[% period_active.budget_period_startdate | $KohaDates %]</span></td>
435
                <td><span title="[% period_active.budget_period_enddate %]">[% period_active.budget_period_enddate | $KohaDates %]</span></td>
434
                <td><span title="[% period_active.budget_period_enddate %]">[% period_active.budget_period_enddate | $KohaDates %]</span></td>
436
                <td>
435
                <td>
437
                  [% IF ( period_active.budget_period_locked ) %]
436
                  [% IF ( period_active.budget_period_locked ) %]
438
                    <span style="color:green;">Locked</span>&nbsp;
437
                    <span style="color:green;">[% t('Locked') %]</span> 
439
                  [% END %]
438
                  [% END %]
440
                </td>
439
                </td>
441
                <td class="data">[% period_active.budget_period_total | $Price %]</td>
440
                <td class="data">[% period_active.budget_period_total | $Price %]</td>
Lines 447-453 Link Here
447
          </tbody>
446
          </tbody>
448
        </table>
447
        </table>
449
      [% ELSE %]
448
      [% ELSE %]
450
        No active budgets
449
        [% t('No active budgets') %]
451
      [% END %]
450
      [% END %]
452
    </div>
451
    </div>
453
    <div id="inactive">
452
    <div id="inactive">
Lines 455-475 Link Here
455
        <table id="inactiveperiodst">
454
        <table id="inactiveperiodst">
456
          <thead>
455
          <thead>
457
              <tr>
456
              <tr>
458
                  <th>Budget name</th>
457
                  <th>[% t('Budget name') %]</th>
459
                  <th class="title-string">Start date</th>
458
                  <th class="title-string">[% t('Start date') %]</th>
460
                  <th class="title-string">End date</th>
459
                  <th class="title-string">[% t('End date') %]</th>
461
                  <th>Locked</th>
460
                  <th>[% t('Locked') %]</th>
462
                  <th>Total</th>
461
                  <th>[% t('Total') %]</th>
463
                  <th>Actions</th>
462
                  <th>[% t('Actions') %]</th>
464
              </tr>
463
              </tr>
465
          </thead>
464
          </thead>
466
          <tbody>
465
          <tbody>
467
              [% FOREACH period_loo IN period_inactive_loop %]
466
              [% FOREACH period_loo IN period_inactive_loop %]
468
                  <tr>
467
                  <tr>
469
                  <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td>
468
                  <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="[% t('View funds for') %] [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td>
470
                  <td><span title="[% period_loo.budget_period_startdate %]">[% period_loo.budget_period_startdate | $KohaDates %]</span></td>
469
                  <td><span title="[% period_loo.budget_period_startdate %]">[% period_loo.budget_period_startdate | $KohaDates %]</span></td>
471
                  <td><span title="[% period_loo.budget_period_enddate %]">[% period_loo.budget_period_enddate | $KohaDates %]</span></td>
470
                  <td><span title="[% period_loo.budget_period_enddate %]">[% period_loo.budget_period_enddate | $KohaDates %]</span></td>
472
                  <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span>&nbsp;[% ELSE %][% END %] </td>
471
                  <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">[% t('Locked') %]</span> [% ELSE %][% END %] </td>
473
                  <td class="data">[% period_loo.budget_period_total | $Price %]</td>
472
                  <td class="data">[% period_loo.budget_period_total | $Price %]</td>
474
                  <td>
473
                  <td>
475
                        [% PROCESS action_menu block_budget=period_loo %]
474
                        [% PROCESS action_menu block_budget=period_loo %]
Lines 479-485 Link Here
479
          </tbody>
478
          </tbody>
480
        </table>
479
        </table>
481
      [% ELSE %]
480
      [% ELSE %]
482
        No inactive budgets
481
        [% t('No inactive budgets') %]
483
      [% END %]
482
      [% END %]
484
    </div>
483
    </div>
485
  </div>
484
  </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-78 / +78 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Administration &rsaquo; Funds[% IF op == 'add_form' %] &rsaquo; [% IF ( budget_id ) %]Modify fund[% IF ( budget_name ) %] '[% budget_name %]'[% END %][% ELSE %]Add fund [% END %][% END %]</title>
8
<title>[% t('Koha › Administration › Funds') %][% IF op == 'add_form' %] › [% IF ( budget_id ) %][% t('Modify fund') %][% IF ( budget_name ) %] '[% budget_name %]'[% END %][% ELSE %][% t('Add fund') %] [% END %][% END %]</title>
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
10
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
Lines 14-26 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'budgets-admin-search.inc' %]
16
[% INCLUDE 'budgets-admin-search.inc' %]
16
17
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
18
    <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo; [% IF op == 'list' %][% IF budget_period_id %]Funds for '[% budget_period_description %]'[% ELSE %]All funds[% END %][% END %]
19
    <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> › [% IF op == 'list' %][% IF budget_period_id %][% t('Funds for \'') %][% budget_period_description %]'[% ELSE %][% t('All funds') %][% END %][% END %]
19
    [% IF op == 'add_form' %]
20
    [% IF op == 'add_form' %]
20
      <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Funds</a> &rsaquo; [% IF ( budget_id ) %]Modify fund[% IF ( budget_name ) %] '[% budget_name %]'[% END %][% ELSE %]Add fund[% END %]
21
      <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% t('Funds') %]</a> › [% IF ( budget_id ) %][% t('Modify fund') %][% IF ( budget_name ) %] '[% budget_name %]'[% END %][% ELSE %][% t('Add fund') %][% END %]
21
    [% END %]
22
    [% END %]
22
    [% IF op == 'delete_confirm' %]
23
    [% IF op == 'delete_confirm' %]
23
      <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a> &rsaquo; Delete fund?
24
      <a href="/cgi-bin/koha/admin/aqbudgets.pl">[% t('Funds') %]</a> [% t('› Delete fund?') %]
24
    [% END %]
25
    [% END %]
25
</div>
26
</div>
26
27
Lines 34-40 Link Here
34
35
35
[% IF (error_not_authorised_to_modify) %]
36
[% IF (error_not_authorised_to_modify) %]
36
    <div class="error">
37
    <div class="error">
37
        <p>You are not authorized to modify this fund</p>
38
        <p>[% t('You are not authorized to modify this fund') %]</p>
38
    </div>
39
    </div>
39
[% END %]
40
[% END %]
40
41
Lines 42-50 Link Here
42
43
43
<h1>
44
<h1>
44
  [% IF budget_period_id %]
45
  [% IF budget_period_id %]
45
    Funds for '[% budget_period_description %]'
46
    [% t('Funds for \'') %][% budget_period_description %]'
46
  [% ELSE %]
47
  [% ELSE %]
47
    All funds
48
    [% t('All funds') %]
48
  [% END %]
49
  [% END %]
49
</h1>
50
</h1>
50
51
Lines 55-87 Link Here
55
<table id="budgeth" class="group">
56
<table id="budgeth" class="group">
56
    [% UNLESS budget_period_id %]
57
    [% UNLESS budget_period_id %]
57
      <caption>
58
      <caption>
58
        <span class="actions"><a href="#" id="expand_all">Expand all</a>
59
        <span class="actions"><a href="#" id="expand_all">[% t('Expand all') %]</a>
59
        | <a href="#" id="collapse_all">Collapse all</a>
60
        | <a href="#" id="collapse_all">[% t('Collapse all') %]</a>
60
        | <a href="#" id="hide_inactive">Hide inactive budgets</a>
61
        | <a href="#" id="hide_inactive">[% t('Hide inactive budgets') %]</a>
61
        | <a href="#" id="show_inactive">Show inactive budgets</a></span>
62
        | <a href="#" id="show_inactive">[% t('Show inactive budgets') %]</a></span>
62
      </caption>
63
      </caption>
63
    [% END %]
64
    [% END %]
64
    <thead>
65
    <thead>
65
        <tr>
66
        <tr>
66
            <th>Active</th>
67
            <th>[% t('Active') %]</th>
67
            <th>Budget period description</th>
68
            <th>[% t('Budget period description') %]</th>
68
            <th>Fund code</th>
69
            <th>[% t('Fund code') %]</th>
69
            <th>Fund name</th>
70
            <th>[% t('Fund name') %]</th>
70
            <th>Base-level allocated</th>
71
            <th>[% t('Base-level allocated') %]</th>
71
            <th>Base-level ordered</th>
72
            <th>[% t('Base-level ordered') %]</th>
72
            <th>Total ordered</th>
73
            <th>[% t('Total ordered') %]</th>
73
            <th>Base-level spent</th>
74
            <th>[% t('Base-level spent') %]</th>
74
            <th>Total spent</th>
75
            <th>[% t('Total spent') %]</th>
75
            <th>Base-level available</th>
76
            <th>[% t('Base-level available') %]</th>
76
            <th>Total available</th>
77
            <th>[% t('Total available') %]</th>
77
            <th>Actions</th>
78
            <th>[% t('Actions') %]</th>
78
        </tr>
79
        </tr>
79
    </thead>
80
    </thead>
80
    <tfoot>
81
    <tfoot>
81
    <tr>
82
    <tr>
82
    <th></th>
83
    <th></th>
83
    <th></th>
84
    <th></th>
84
    <th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF budget_period_total %][% budget_period_total | $Price %][% END %]  </th>
85
    <th colspan="2" style="text-align: left;" nowrap="nowrap">[% t('Period allocated') %] [% IF budget_period_total %][% budget_period_total | $Price %][% END %]  </th>
85
    <th nowrap="nowrap" class="data"> [% period_alloc_total | $Price %]</th>
86
    <th nowrap="nowrap" class="data"> [% period_alloc_total | $Price %]</th>
86
    <th></th>
87
    <th></th>
87
    <th class="data">[% ordered_total | $Price %]</th>
88
    <th class="data">[% ordered_total | $Price %]</th>
Lines 100-106 Link Here
100
      <tr data-tt-id="[% budget.budget_id %]">
101
      <tr data-tt-id="[% budget.budget_id %]">
101
    [% END %]
102
    [% END %]
102
    <td>[% budget.budget_period_active %]</td>
103
    <td>[% budget.budget_period_active %]</td>
103
    <td>Budget [% budget.budget_period_description %] [id=[% budget.budget_period_id %]][% UNLESS budget.budget_period_active %] (inactive)[% END %]</td>
104
    <td>[% t('Budget') %] [% budget.budget_period_description %] [% t('[id=') %][% budget.budget_period_id %]][% UNLESS budget.budget_period_active %] [% t('(inactive)') %][% END %]</td>
104
    <td>[% budget.budget_code %]</td>
105
    <td>[% budget.budget_code %]</td>
105
    <td>[% budget.budget_name %]</td>
106
    <td>[% budget.budget_name %]</td>
106
    <td class="data">
107
    <td class="data">
Lines 173-188 Link Here
173
        <td>
174
        <td>
174
            <div class="dropdown dropup">
175
            <div class="dropdown dropup">
175
                <a class="btn btn-default btn-xs dropdown-toggle" id="budgetactions[% budget.budget_id %]_[% budget.budget_period_id %]" role="button" data-toggle="dropdown" href="#">
176
                <a class="btn btn-default btn-xs dropdown-toggle" id="budgetactions[% budget.budget_id %]_[% budget.budget_period_id %]" role="button" data-toggle="dropdown" href="#">
176
                   Actions <b class="caret"></b>
177
                   [% t('Actions') %] <b class="caret"></b>
177
                </a>
178
                </a>
178
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id %]_[% budget.budget_period_id %]">
179
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id %]_[% budget.budget_period_id %]">
179
                    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget.budget_id %]&amp;budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-pencil"></i> Edit</a></li>
180
                    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget.budget_id %]&budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
180
                    [% IF budget.budget_has_children %]
181
                    [% IF budget.budget_has_children %]
181
                        <li class="disabled"><a href="#" class="deletefund-disabled" data-toggle="tooltip" data-placement="left" title="This fund has children"><i class="fa fa-trash"></i> Delete</a></li>
182
                        <li class="disabled"><a href="#" class="deletefund-disabled" data-toggle="tooltip" data-placement="left" title="[% t('This fund has children') %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
182
                    [% ELSE %]
183
                    [% ELSE %]
183
                        <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&amp;budget_id=[% budget.budget_id %]&amp;budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-trash"></i> Delete</a></li>
184
                        <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id %]&budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
184
                    [% END %]
185
                    [% END %]
185
                    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_parent_id=[% budget.budget_id %]&amp;budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-plus"></i> Add child fund</a></li>
186
                    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_parent_id=[% budget.budget_id %]&budget_period_id=[% budget.budget_period_id %]"><i class="fa fa-plus"></i> [% t('Add child fund') %]</a></li>
186
                </ul>
187
                </ul>
187
            </div>
188
            </div>
188
        </td>
189
        </td>
Lines 193-199 Link Here
193
</table>
194
</table>
194
195
195
[% ELSE %]
196
[% ELSE %]
196
    <p>No fund found</p>
197
    <p>[% t('No fund found') %]</p>
197
[% END %]
198
[% END %]
198
199
199
[% END %] <!-- list -->
200
[% END %] <!-- list -->
Lines 203-211 Link Here
203
[% IF op == 'add_form' && !error_not_authorised_to_modify %]
204
[% IF op == 'add_form' && !error_not_authorised_to_modify %]
204
<form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
205
<form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
205
    <fieldset class="rows">
206
    <fieldset class="rows">
206
    <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund
207
    <legend>[% IF ( budget_id ) %][% t('Modify') %][% ELSE %][% t('Add') %][% END %] [% t('Fund') %]
207
    [% IF ( budget_period_description ) %]
208
    [% IF ( budget_period_description ) %]
208
        [% budget_name %] for Budget '[% budget_period_description %]'
209
        [% budget_name %] [% t('for Budget \'') %][% budget_period_description %]'
209
    [% END %]
210
    [% END %]
210
    </legend>
211
    </legend>
211
212
Lines 214-267 Link Here
214
    <ol>
215
    <ol>
215
    [% IF ( budget_parent_id ) %]
216
    [% IF ( budget_parent_id ) %]
216
    <li>
217
    <li>
217
        <span class="label">Fund parent: </span>
218
        <span class="label">[% t('Fund parent:') %] </span>
218
        [% budget_parent_name %]
219
        [% budget_parent_name %]
219
        [% budget_parent_id %] - [% budget_parent_name %]
220
        [% budget_parent_id %] - [% budget_parent_name %]
220
        <input type="hidden" name="budget_parent_id" value="[% budget_parent_id %]" />
221
        <input type="hidden" name="budget_parent_id" value="[% budget_parent_id %]" />
221
    </li>
222
    </li>
222
    [% END %]
223
    [% END %]
223
    <li>
224
    <li>
224
    <label class="required"  for="budget_code">Fund code: </label>
225
    <label class="required" for="budget_code">[% t('Fund code:') %] </label>
225
    <input type="text" name="budget_code" id="budget_code" value="[% budget_code %]" size="30" />
226
    <input type="text" name="budget_code" id="budget_code" value="[% budget_code %]" size="30" />
226
    </li>
227
    </li>
227
228
228
    <li>
229
    <li>
229
    <label class="required" for="budget_name">Fund name: </label>
230
    <label class="required" for="budget_name">[% t('Fund name:') %] </label>
230
    <input type="text" name="budget_name" id="budget_name" value="[% budget_name %]" size="60" />
231
    <input type="text" name="budget_name" id="budget_name" value="[% budget_name %]" size="60" />
231
    </li>
232
    </li>
232
233
233
    <li>
234
    <li>
234
    <label style="white-space: nowrap;" for="budget_amount" class="required">Amount: </label>
235
    <label style="white-space: nowrap;" for="budget_amount" class="required">[% t('Amount:') %] </label>
235
    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
236
    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
236
    </li>
237
    </li>
237
238
238
    <li>
239
    <li>
239
      <label for="budget_encumb">Warning at (%): </label>
240
      <label for="budget_encumb">[% t('Warning at (%):') %] </label>
240
      <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb %]" size="10" />
241
      <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb %]" size="10" />
241
      <span class="hint">0 to disable</span>
242
      <span class="hint">[% t('0 to disable') %]</span>
242
    </li>
243
    </li>
243
244
244
    <li>
245
    <li>
245
      <label for="budget_expend">Warning at (amount): </label>
246
      <label for="budget_expend">[% t('Warning at (amount):') %] </label>
246
      <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend | $Price on_editing => 1 %]" size="10" />
247
      <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend | $Price on_editing => 1 %]" size="10" />
247
      <span class="hint">0 to disable</span>
248
      <span class="hint">[% t('0 to disable') %]</span>
248
    </li>
249
    </li>
249
250
250
    <li>
251
    <li>
251
        <span class="label">Owner: </span>
252
        <span class="label">[% t('Owner:') %] </span>
252
        [% IF  budget_owner %]
253
        [% IF  budget_owner %]
253
            <span  id="budget_owner_name">
254
            <span id="budget_owner_name">
254
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber %]">
255
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber %]">
255
                    [% budget_owner.firstname %] [% budget_owner.surname %]
256
                    [% budget_owner.firstname %] [% budget_owner.surname %]
256
                </a> |
257
                </a> |
257
            </span>
258
            </span>
258
        [% ELSE %]
259
        [% ELSE %]
259
            <span  id="budget_owner_name"></span>
260
            <span id="budget_owner_name"></span>
260
        [% END %]
261
        [% END %]
261
        <a id="edit_owner" class="new_window" href="#"><i class="fa fa-search"></i> Select owner</a>
262
        <a id="edit_owner" class="new_window" href="#"><i class="fa fa-search"></i> [% t('Select owner') %]</a>
262
        <a id="remove_owner" href="#"><i class="fa fa-trash"></i> Remove owner</a>
263
        <a id="remove_owner" href="#"><i class="fa fa-trash"></i> [% t('Remove owner') %]</a>
263
        <input type="hidden" name="budget_owner_id" id="budget_owner_id"
264
        <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="[% budget_owner.borrowernumber %]" />
264
            value="[% budget_owner.borrowernumber %]" />
265
    </li>
265
    </li>
266
266
267
267
Lines 269-297 Link Here
269
        <li class="radio">
269
        <li class="radio">
270
            <label>
270
            <label>
271
                <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
271
                <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
272
                Update all child funds with this owner
272
                [% t('Update all child funds with this owner') %]
273
            </label>
273
            </label>
274
            <span class="hint">Selecting this option will overwrite existing fund owners, if any</span>
274
            <span class="hint">[% t('Selecting this option will overwrite existing fund owners, if any') %]</span>
275
        </li>
275
        </li>
276
    [% END %]
276
    [% END %]
277
277
278
    <li>
278
    <li>
279
        <span class="label">Users:</span>
279
        <span class="label">[% t('Users:') %]</span>
280
        <ul style="float:left;" id="budget_users">
280
        <ul style="float:left;" id="budget_users">
281
            [% FOREACH user IN budget_users %]
281
            [% FOREACH user IN budget_users %]
282
                <li id="user_[% user.borrowernumber %]">
282
                <li id="user_[% user.borrowernumber %]">
283
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% user.borrowernumber %]">
283
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% user.borrowernumber %]">
284
                        [% user.firstname %] [% user.surname %]
284
                        [% user.firstname %] [% user.surname %]
285
                    </a>
285
                    </a>
286
                    &bull; <a href="#" class="del_user" data-borrowernumber="[% user.borrowernumber %]"><i class="fa fa-trash"></i> Remove</a>
286
                    • <a href="#" class="del_user" data-borrowernumber="[% user.borrowernumber %]"><i class="fa fa-trash"></i> [% t('Remove') %]</a>
287
                </li>
287
                </li>
288
            [% END %]
288
            [% END %]
289
            <li><a href="#" id="add_user_button"><i class="fa fa-plus"></i> Add users</a></li>
289
            <li><a href="#" id="add_user_button"><i class="fa fa-plus"></i> [% t('Add users') %]</a></li>
290
        </ul>
290
        </ul>
291
        <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids %]" />
291
        <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids %]" />
292
    </li>
292
    </li>
293
    <li>
293
    <li>
294
    <label for="budget_branchcode">Library: </label>
294
    <label for="budget_branchcode">[% t('Library:') %] </label>
295
    <select name="budget_branchcode" id="budget_branchcode">
295
    <select name="budget_branchcode" id="budget_branchcode">
296
        <option value=""></option>
296
        <option value=""></option>
297
        [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
297
        [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
Lines 299-312 Link Here
299
    </li>
299
    </li>
300
300
301
    <li>
301
    <li>
302
    <label for="budget_permission">Restrict access to: </label>
302
    <label for="budget_permission">[% t('Restrict access to:') %] </label>
303
    <select name="budget_permission" id="budget_permission">
303
    <select name="budget_permission" id="budget_permission">
304
        [% IF ( budget_perm_0 ) %]
304
        [% IF ( budget_perm_0 ) %]
305
            <option value="0" selected="selected">
305
            <option value="0" selected="selected">
306
        [% ELSE %]
306
        [% ELSE %]
307
            <option value="0">
307
            <option value="0">
308
        [% END %]
308
        [% END %]
309
            None
309
            [% t('None') %]
310
        </option>
310
        </option>
311
311
312
        [% IF ( budget_perm_1 ) %]
312
        [% IF ( budget_perm_1 ) %]
Lines 314-320 Link Here
314
        [% ELSE %]
314
        [% ELSE %]
315
            <option value="1">
315
            <option value="1">
316
        [% END %]
316
        [% END %]
317
            Owner
317
            [% t('Owner') %]
318
        </option>
318
        </option>
319
319
320
        [% IF ( budget_perm_3) %]
320
        [% IF ( budget_perm_3) %]
Lines 322-328 Link Here
322
        [% ELSE %]
322
        [% ELSE %]
323
            <option value="3">
323
            <option value="3">
324
        [% END %]
324
        [% END %]
325
            Owner and users
325
            [% t('Owner and users') %]
326
        </option>
326
        </option>
327
327
328
        [% IF ( budget_perm_2 ) %]
328
        [% IF ( budget_perm_2 ) %]
Lines 330-354 Link Here
330
        [% ELSE %]
330
        [% ELSE %]
331
            <option value="2">
331
            <option value="2">
332
        [% END %]
332
        [% END %]
333
            Owner, users and library
333
            [% t('Owner, users and library') %]
334
        </option>
334
        </option>
335
    </select>
335
    </select>
336
    </li>
336
    </li>
337
337
338
    <li>
338
    <li>
339
    <label for="budget_notes">Notes: </label>
339
    <label for="budget_notes">[% t('Notes:') %] </label>
340
    <textarea name="budget_notes" id="budget_notes"  cols="80" rows="6">[% budget_notes %]</textarea>
340
    <textarea name="budget_notes" id="budget_notes" cols="80" rows="6">[% budget_notes %]</textarea>
341
    </li>
341
    </li>
342
342
343
    <li>
343
    <li>
344
    <label  style="white-space: nowrap;" for="authorised_value_category1">Statistic 1 done on: </label>
344
    <label style="white-space: nowrap;" for="authorised_value_category1">[% t('Statistic 1 done on:') %] </label>
345
        <select name="sort1_authcat" id="authorised_value_category1">
345
        <select name="sort1_authcat" id="authorised_value_category1">
346
            <option value=""></option>
346
            <option value=""></option>
347
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort1_authcat ) %]
347
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort1_authcat ) %]
348
        </select>
348
        </select>
349
    </li>
349
    </li>
350
    <li>
350
    <li>
351
    <label  style="white-space: nowrap;" for="authorised_value_category2">Statistic 2 done on: </label>
351
    <label style="white-space: nowrap;" for="authorised_value_category2">[% t('Statistic 2 done on:') %] </label>
352
        <select name="sort2_authcat" id="authorised_value_category2">
352
        <select name="sort2_authcat" id="authorised_value_category2">
353
            <option value=""></option>
353
            <option value=""></option>
354
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort2_authcat ) %]
354
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort2_authcat ) %]
Lines 362-368 Link Here
362
    </fieldset>
362
    </fieldset>
363
363
364
    <fieldset class="action">
364
    <fieldset class="action">
365
        <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl">Cancel</a>
365
        <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl">[% t('Cancel') %]</a>
366
        <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
366
        <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
367
    </fieldset>
367
    </fieldset>
368
</form>
368
</form>
Lines 371-381 Link Here
371
371
372
[% IF op == 'delete_confirm' %]
372
[% IF op == 'delete_confirm' %]
373
    <div class="dialog alert">
373
    <div class="dialog alert">
374
        <h3>Delete fund [% budget_name %]?</h3>
374
        <h3>[% t('Delete fund') %] [% budget_name %]?</h3>
375
        If you delete this fund, all orders linked to this fund will be deleted!
375
        [% t('If you delete this fund, all orders linked to this fund will be deleted!') %]
376
        <table>
376
        <table>
377
            <tr>
377
            <tr>
378
            <th scope="row">Fund amount:</th>
378
            <th scope="row">[% t('Fund amount:') %]</th>
379
            <td>[% budget_amount | $Price %]</td>
379
            <td>[% budget_amount | $Price %]</td>
380
            </tr>
380
            </tr>
381
        </table>
381
        </table>
Lines 384-393 Link Here
384
            <input type="hidden" name="op" value="delete_confirmed" />
384
            <input type="hidden" name="op" value="delete_confirmed" />
385
            <input type="hidden" name="budget_id" value="[% budget_id %]" />
385
            <input type="hidden" name="budget_id" value="[% budget_id %]" />
386
            <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
386
            <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
387
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this fund</button>
387
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this fund') %]</button>
388
        </form>
388
        </form>
389
        <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
389
        <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
390
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
390
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
391
        </form>
391
        </form>
392
    </div>
392
    </div>
393
[% END %]
393
[% END %]
Lines 397-408 Link Here
397
<div class="yui-b">
397
<div class="yui-b">
398
[% IF op == 'list' %]
398
[% IF op == 'list' %]
399
  <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
399
  <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
400
    <a href="#" id="filterbutton">Filters</a>
400
    <a href="#" id="filterbutton">[% t('Filters') %]</a>
401
    <fieldset class="brief" id="fundfilters">
401
    <fieldset class="brief" id="fundfilters">
402
    <h4>Fund filters</h4>
402
    <h4>[% t('Fund filters') %]</h4>
403
        <ol>
403
        <ol>
404
        <li>
404
        <li>
405
            <label for="filter_budgetbranch2">Library: </label>
405
            <label for="filter_budgetbranch2">[% t('Library:') %] </label>
406
            <select name="filter_budgetbranch" id="filter_budgetbranch2">
406
            <select name="filter_budgetbranch" id="filter_budgetbranch2">
407
                <option value=""></option>
407
                <option value=""></option>
408
                [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
408
                [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
Lines 410-428 Link Here
410
        </li>
410
        </li>
411
        <li class="radio">
411
        <li class="radio">
412
412
413
        <label for="show_mine">Show my funds only:</label>
413
        <label for="show_mine">[% t('Show my funds only:') %]</label>
414
            [% IF ( show_mine ) %]
414
            [% IF ( show_mine ) %]
415
                <input type="checkbox" id="show_mine"  name="show_mine" value="1" checked="checked" />
415
                <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
416
            [% ELSE %]
416
            [% ELSE %]
417
                <input type="checkbox" id="show_mine"  name="show_mine" value="1" />
417
                <input type="checkbox" id="show_mine" name="show_mine" value="1" />
418
        [% END %]
418
        [% END %]
419
        </li>
419
        </li>
420
420
421
        [% IF periods %]
421
        [% IF periods %]
422
          <li>
422
          <li>
423
            <label for="periods">Budget:</label>
423
            <label for="periods">[% t('Budget:') %]</label>
424
            <select id="periods" name="budget_period_id">
424
            <select id="periods" name="budget_period_id">
425
              <option value="">All budgets</option>
425
              <option value="">[% t('All budgets') %]</option>
426
              [% FOR period IN periods %]
426
              [% FOR period IN periods %]
427
                [% IF budget_period_id && period.budget_period_id == budget_period_id %]
427
                [% IF budget_period_id && period.budget_period_id == budget_period_id %]
428
                  <option value="[% period.budget_period_id %]" selected="selected">[% period.budget_period_description %]</option>
428
                  <option value="[% period.budget_period_id %]" selected="selected">[% period.budget_period_description %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt (-54 / +55 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Acquisitions &rsaquo; Contracts &rsaquo;
6
<title>[% t('Koha › Acquisitions › Contracts ›') %]
6
[% IF ( add_form ) %]
7
[% IF ( add_form ) %]
7
    [% IF ( contractnumber ) %]Modify contract '[% contractname %]'
8
    [% IF ( contractnumber ) %][% t('Modify contract \'') %][% contractname %]'
8
[% ELSE %]New contract[% END %]
9
[% ELSE %][% t('New contract') %][% END %]
9
[% END %]
10
[% END %]
10
[% IF ( else ) %]Contracts of [% booksellername %][% END %]
11
[% IF ( else ) %][% t('Contracts of') %] [% booksellername %][% END %]
11
[% IF ( add_validate ) %]Data recorded[% END %]
12
[% IF ( add_validate ) %][% t('Data recorded') %][% END %]
12
[% IF ( delete_confirm ) %]Confirm deletion of contract '[% contractnumber %]'[% END %]
13
[% IF ( delete_confirm ) %][% t('Confirm deletion of contract \'') %][% contractnumber %]'[% END %]
13
[% IF ( delete_confirmed ) %]Contract deleted[% END %]</title>
14
[% IF ( delete_confirmed ) %][% t('Contract deleted') %][% END %]</title>
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
15
</head>
16
</head>
16
17
Lines 19-49 Link Here
19
[% INCLUDE 'contracts-admin-search.inc' %]
20
[% INCLUDE 'contracts-admin-search.inc' %]
20
21
21
<div id="breadcrumbs">
22
<div id="breadcrumbs">
22
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
23
    &rsaquo;
24
24
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
25
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a>
25
    &rsaquo;
26
26
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a>
27
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a>
27
    &rsaquo;
28
28
    [% IF ( add_form ) %]
29
    [% IF ( add_form ) %]
29
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a>
30
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">[% t('Contracts') %]</a>
30
        &rsaquo;
31
31
        [% IF ( contractnumber ) %]Modify contract '[% contractname %]'
32
        [% IF ( contractnumber ) %][% t('Modify contract \'') %][% contractname %]'
32
        [% ELSE %]New contract
33
        [% ELSE %][% t('New contract') %]
33
        [% END %]
34
        [% END %]
34
    [% END %]
35
    [% END %]
35
    [% IF ( add_validate ) %]
36
    [% IF ( add_validate ) %]
36
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a>
37
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">[% t('Contracts') %]</a>
37
        &rsaquo; Data recorded
38
        [% t('› Data recorded') %]
38
    [% END %]
39
    [% END %]
39
    [% IF ( delete_confirm ) %]
40
    [% IF ( delete_confirm ) %]
40
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a>
41
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">[% t('Contracts') %]</a>
41
        &rsaquo; Confirm deletion of contract [% contractnumber %]
42
        [% t('› Confirm deletion of contract') %] [% contractnumber %]
42
    [% END %]
43
    [% END %]
43
    [% IF ( delete_confirmed ) %]
44
    [% IF ( delete_confirmed ) %]
44
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a> &rsaquo; Contract deleted
45
        <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">[% t('Contracts') %]</a> [% t('› Contract deleted') %]
45
    [% END %]
46
    [% END %]
46
    [% IF ( else ) %]Contracts[% END %]
47
    [% IF ( else ) %][% t('Contracts') %][% END %]
47
</div>
48
</div>
48
49
49
<div id="doc3" class="yui-t2">
50
<div id="doc3" class="yui-t2">
Lines 55-61 Link Here
55
[% INCLUDE 'acquisitions-toolbar.inc' %]
56
[% INCLUDE 'acquisitions-toolbar.inc' %]
56
57
57
[% IF error == 'not_deleted' %]
58
[% IF error == 'not_deleted' %]
58
    <div class="dialog alert">Contract has not been deleted. Maybe a basket linked to this contract exists.</div>
59
    <div class="dialog alert">[% t('Contract has not been deleted. Maybe a basket linked to this contract exists.') %]</div>
59
[% END %]
60
[% END %]
60
61
61
                [% IF ( add_form ) %]
62
                [% IF ( add_form ) %]
Lines 64-170 Link Here
64
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
65
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
65
                        <input type="hidden" name="checked" value="0" />
66
                        <input type="hidden" name="checked" value="0" />
66
                        [% IF ( contractnumber ) %]
67
                        [% IF ( contractnumber ) %]
67
                            <h1>Modify contract [% contractname %] for [% booksellername %]</h1>
68
                            <h1>[% t('Modify contract') %] [% contractname %] [% t('for') %] [% booksellername %]</h1>
68
                        [% ELSE %]
69
                        [% ELSE %]
69
                            <h1>New contract for [% booksellername %]</h1>
70
                            <h1>[% t('New contract for') %] [% booksellername %]</h1>
70
                        [% END %]
71
                        [% END %]
71
                        <fieldset class="rows">
72
                        <fieldset class="rows">
72
                            <ol>
73
                            <ol>
73
                                [% IF ( contractnumber ) %]
74
                                [% IF ( contractnumber ) %]
74
                                        <li><span class="label">Contract id </span>[% contractnumber %]
75
                                        <li><span class="label">[% t('Contract id') %] </span>[% contractnumber %]
75
                                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
76
                                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
76
                                            <input type="hidden" name="is_a_modif" value="1" />
77
                                            <input type="hidden" name="is_a_modif" value="1" />
77
                                        </li>
78
                                        </li>
78
                                [% END %]
79
                                [% END %]
79
                                <li><label for="contractname" class="required">Name: *</label> &nbsp;
80
                                <li><label for="contractname" class="required">[% t('Name: *') %]</label>  
80
                                        <input type="text" name="contractname" id="contractname" size="40" maxlength="80" value="[% contractname %]" />
81
                                        <input type="text" name="contractname" id="contractname" size="40" maxlength="80" value="[% contractname %]" />
81
                                </li>
82
                                </li>
82
                                <li><label for="contractdescription">Description: </label> &nbsp;
83
                                <li><label for="contractdescription">[% t('Description:') %] </label>  
83
                                        <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription %]" />
84
                                        <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription %]" />
84
                                </li>
85
                                </li>
85
                                <li><label for="from" class="required">Start date: *</label> &nbsp;
86
                                <li><label for="from" class="required">[% t('Start date: *') %]</label>  
86
                                        <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="datepickerfrom" />
87
                                        <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="datepickerfrom" />
87
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
88
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
88
                                </li>
89
                                </li>
89
                                <li><label for="to" class="required">End date: *</label> &nbsp;
90
                                <li><label for="to" class="required">[% t('End date: *') %]</label>  
90
                                        <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10"  size="10" class="datepickerto" />
91
                                        <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10" size="10" class="datepickerto" />
91
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
92
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
92
                                </li>
93
                                </li>
93
                            </ol>
94
                            </ol>
94
                        </fieldset>
95
                        </fieldset>
95
                        <fieldset class="action">
96
                        <fieldset class="action">
96
                            <input type="button" value="Save" onclick="Check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]&amp;contractnumber=[% contractnumber %]">Cancel</a>
97
                            <input type="button" value="Save" onclick="Check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]&contractnumber=[% contractnumber %]">[% t('Cancel') %]</a>
97
                        </fieldset>
98
                        </fieldset>
98
                    </form>
99
                    </form>
99
            [% END %]
100
            [% END %]
100
            [% IF ( add_validate ) %]
101
            [% IF ( add_validate ) %]
101
                <h3>Data recorded</h3>
102
                <h3>[% t('Data recorded') %]</h3>
102
                <form action="[% script_name %]" method="post">
103
                <form action="[% script_name %]" method="post">
103
                    <input type="submit" value="OK" />
104
                    <input type="submit" value="OK" />
104
                </form>
105
                </form>
105
            [% END %]
106
            [% END %]
106
            [% IF ( delete_confirm ) %]
107
            [% IF ( delete_confirm ) %]
107
                    <div class="dialog alert">
108
                    <div class="dialog alert">
108
                        <h3>Confirm deletion of contract <i>[% contractname %]</i></h3>
109
                        <h3>[% t('Confirm deletion of contract') %] <i>[% contractname %]</i></h3>
109
                        <table>
110
                        <table>
110
                            <tr><th scope="row">Contract number:</th><td>[% contractnumber %]</td></tr>
111
                            <tr><th scope="row">[% t('Contract number:') %]</th><td>[% contractnumber %]</td></tr>
111
                            <tr><th scope="row">Contract name:</th><td>[% contractname %]</td></tr>
112
                            <tr><th scope="row">[% t('Contract name:') %]</th><td>[% contractname %]</td></tr>
112
                            <tr><th scope="row">Contract description:</th><td>[% contractdescription %]</td></tr>
113
                            <tr><th scope="row">[% t('Contract description:') %]</th><td>[% contractdescription %]</td></tr>
113
                            <tr><th scope="row">Contract start date:</th><td>[% contractstartdate | $KohaDates %]</td></tr>
114
                            <tr><th scope="row">[% t('Contract start date:') %]</th><td>[% contractstartdate | $KohaDates %]</td></tr>
114
                            <tr><th scope="row">Contract end date:</th><td>[% contractenddate | $KohaDates %]</td></tr>
115
                            <tr><th scope="row">[% t('Contract end date:') %]</th><td>[% contractenddate | $KohaDates %]</td></tr>
115
                            <tr><th scope="row">Vendor:</th><td>[% booksellername %]</td></tr>
116
                            <tr><th scope="row">[% t('Vendor:') %]</th><td>[% booksellername %]</td></tr>
116
                        </table>
117
                        </table>
117
                        <form action="[% script_name %]" method="post">
118
                        <form action="[% script_name %]" method="post">
118
                            <input type="hidden" name="op" value="delete_confirmed" />
119
                            <input type="hidden" name="op" value="delete_confirmed" />
119
                            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
120
                            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
120
                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
121
                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
121
                            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete contract</button>
122
                            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete contract') %]</button>
122
                        </form>
123
                        </form>
123
                        <form action="/cgi-bin/koha/admin/aqcontract.pl" method="get">
124
                        <form action="/cgi-bin/koha/admin/aqcontract.pl" method="get">
124
                            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
125
                            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
125
                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
126
                            <input type="hidden" name="contractnumber" value="[% contractnumber %]" />
126
                            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
127
                            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
127
                        </form>
128
                        </form>
128
                    </div>
129
                    </div>
129
            [% END %]
130
            [% END %]
130
            [% IF ( delete_confirmed ) %]
131
            [% IF ( delete_confirmed ) %]
131
                <h3>Contract deleted</h3>
132
                <h3>[% t('Contract deleted') %]</h3>
132
                <form action="[% script_name %]" method="post">
133
                <form action="[% script_name %]" method="post">
133
                    <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
134
                    <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
134
                    <input type="submit" value="OK" />
135
                    <input type="submit" value="OK" />
135
                </form>
136
                </form>
136
            [% END %]
137
            [% END %]
137
            [% IF ( else ) %]
138
            [% IF ( else ) %]
138
                <h2>Contract(s) of [% booksellername %]</h2>
139
                <h2>[% t('Contract(s) of') %] [% booksellername %]</h2>
139
                [% IF ( loop ) %]
140
                [% IF ( loop ) %]
140
                    <table>
141
                    <table>
141
                        <tr>
142
                        <tr>
142
                            <th scope="col">Name</th>
143
                            <th scope="col">[% t('Name') %]</th>
143
                            <th scope="col">Description</th>
144
                            <th scope="col">[% t('Description') %]</th>
144
                            <th scope="col">Start date</th>
145
                            <th scope="col">[% t('Start date') %]</th>
145
                            <th scope="col">End date</th>
146
                            <th scope="col">[% t('End date') %]</th>
146
                            <th scope="col">Actions</th>
147
                            <th scope="col">[% t('Actions') %]</th>
147
                        </tr>
148
                        </tr>
148
                    [% FOREACH loo IN loop %]
149
                    [% FOREACH loo IN loop %]
149
                        <tr>
150
                        <tr>
150
                        <td>
151
                        <td>
151
                            <a href="[% loo.script_name %]?op=add_form&amp;booksellerid=[% loo.booksellerid %]&amp;contractnumber=[% loo.contractnumber %]">[% loo.contractname %]</a>
152
                            <a href="[% loo.script_name %]?op=add_form&booksellerid=[% loo.booksellerid %]&contractnumber=[% loo.contractnumber %]">[% loo.contractname %]</a>
152
                        </td>
153
                        </td>
153
                        <td>[% loo.contractdescription %]</td>
154
                        <td>[% loo.contractdescription %]</td>
154
                        <td>[% loo.contractstartdate %]</td>
155
                        <td>[% loo.contractstartdate %]</td>
155
                        <td>[% loo.contractenddate %]</td>
156
                        <td>[% loo.contractenddate %]</td>
156
                        <td class="actions">
157
                        <td class="actions">
157
                            <a href="[% loo.script_name %]?op=add_form&amp;contractnumber=[% loo.contractnumber %]&amp;booksellerid=[% loo.booksellerid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
158
                            <a href="[% loo.script_name %]?op=add_form&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
158
                            <a href="[% loo.script_name %]?op=delete_confirm&amp;contractnumber=[% loo.contractnumber %]&amp;booksellerid=[% loo.booksellerid %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
159
                            <a href="[% loo.script_name %]?op=delete_confirm&contractnumber=[% loo.contractnumber %]&booksellerid=[% loo.booksellerid %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
159
                        </td>
160
                        </td>
160
                        </tr>
161
                        </tr>
161
                    [% END %]
162
                    [% END %]
162
                </table>
163
                </table>
163
                [% ELSE %]
164
                [% ELSE %]
164
                    <div class="dialog message">
165
                    <div class="dialog message">
165
                        There are no contracts with this vendor.
166
                        [% t('There are no contracts with this vendor.') %]
166
                        [% IF active %]
167
                        [% IF active %]
167
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;booksellerid=[% booksellerid %]">Add a contract</a>.
168
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&booksellerid=[% booksellerid %]">[% t('Add a contract') %]</a>.
168
                        [% END %]
169
                        [% END %]
169
                    </div>
170
                    </div>
170
                [% END %]
171
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-44 / +45 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Price %]
3
[% USE Price %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Budgets &rsaquo; Funds &rsaquo; Planning for [% budget_period_description %] by [% authcat %]</title>
6
<title>[% t('Koha › Administration › Budgets › Funds › Planning for') %] [% budget_period_description %] [% t('by') %] [% authcat %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">td.locked { background-image: url('[% interface %]/[% theme %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; }</style>
8
<style type="text/css">td.locked { background-image: url('[% interface %]/[% theme %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; }</style>
8
</head>
9
</head>
Lines 12-22 Link Here
12
[% INCLUDE 'budgets-admin-search.inc' %]
13
[% INCLUDE 'budgets-admin-search.inc' %]
13
14
14
<div id="breadcrumbs">
15
<div id="breadcrumbs">
15
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
16
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
16
    <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
17
    <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
17
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo; 
18
    <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('Budgets') %]</a> › 
18
    <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Funds</a> &rsaquo;
19
    <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% t('Funds') %]</a> ›
19
    <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Planning</a> &rsaquo;
20
    <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">[% t('Planning') %]</a> ›
20
</div>
21
</div>
21
22
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
Lines 26-33 Link Here
26
27
27
[% INCLUDE 'budgets-admin-toolbar.inc' %]
28
[% INCLUDE 'budgets-admin-toolbar.inc' %]
28
29
29
<form method="post" id="Aform" name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
30
<form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl">
30
<h3>Planning for [% budget_period_description %] by [% authcat %]</h3>
31
<h3>[% t('Planning for') %] [% budget_period_description %] [% t('by') %] [% authcat %]</h3>
31
<input type="hidden" name="authcat" value="[% authcat %]" />
32
<input type="hidden" name="authcat" value="[% authcat %]" />
32
<!-- Budget Lines -->
33
<!-- Budget Lines -->
33
34
Lines 35-47 Link Here
35
36
36
        [% INCLUDE 'budgets-active-currency.inc' %]
37
        [% INCLUDE 'budgets-active-currency.inc' %]
37
        [% IF ( show_actual ) %]
38
        [% IF ( show_actual ) %]
38
            <p><b>Each cell contain both actual and estimated values.</b></p>
39
            <p><b>[% t('Each cell contain both actual and estimated values.') %]</b></p>
39
        [% ELSE %]
40
        [% ELSE %]
40
            <p><b>Cells contain estimated values only.</b></p>
41
            <p><b>[% t('Cells contain estimated values only.') %]</b></p>
41
        [% END %]
42
        [% END %]
42
43
43
    <p id="selections">
44
    <p id="selections">
44
        <strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span>
45
        <strong>[% t('Show/hide columns:') %]</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall" /><label for="showall">[% t('Show all columns') %]</label></span> <span><input type="checkbox" id="hideall" /><label for="hideall">[% t('Hide all columns') %]</label></span>
45
        [% FOREACH authvals_ro IN authvals_row %]
46
        [% FOREACH authvals_ro IN authvals_row %]
46
            <span class="selected"><label><input type="checkbox" checked="checked" id="col[% authvals_ro.colnum %]">[% authvals_ro.code %]</label></span>
47
            <span class="selected"><label><input type="checkbox" checked="checked" id="col[% authvals_ro.colnum %]">[% authvals_ro.code %]</label></span>
47
        [% END %]
48
        [% END %]
Lines 49-56 Link Here
49
    <table id="plan">
50
    <table id="plan">
50
    <thead>
51
    <thead>
51
    <tr>
52
    <tr>
52
    <th>Fund name</th>
53
    <th>[% t('Fund name') %]</th>
53
    <th>Fund total</th>
54
    <th>[% t('Fund total') %]</th>
54
55
55
    [% FOREACH authvals_ro IN authvals_row %]
56
    [% FOREACH authvals_ro IN authvals_row %]
56
         [% IF ( authvals_ro.display ) %]
57
         [% IF ( authvals_ro.display ) %]
Lines 62-68 Link Here
62
    [% authvals_ro.code %]</th>
63
    [% authvals_ro.code %]</th>
63
    [% END %]
64
    [% END %]
64
65
65
    <th class="remaining">Fund remaining</th><th>&nbsp;</th>
66
    <th class="remaining">[% t('Fund remaining') %]</th><th> </th>
66
    </tr>
67
    </tr>
67
    </thead>
68
    </thead>
68
69
Lines 70-81 Link Here
70
    [% FOREACH budget_line IN budget_lines %]
71
    [% FOREACH budget_line IN budget_lines %]
71
    <tr>
72
    <tr>
72
        [% IF ( budget_line.budget_lock ) %]
73
        [% IF ( budget_line.budget_lock ) %]
73
            <td class="locked" title="Fund locked">
74
            <td class="locked" title="[% t('Fund locked') %]">
74
        [% ELSE %]
75
        [% ELSE %]
75
            <td>
76
            <td>
76
        [% END %]
77
        [% END %]
77
        <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget_line.budget_id %]&amp;budget_period_id=[% budget_period_id %]">[% budget_line.budget_name %]</a></td>
78
        <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_period_id %]">[% budget_line.budget_name %]</a></td>
78
        <td><span id="[% budget_line.budget_amount %]">[% budget_line.budget_amount | $Price %]&nbsp;</span>
79
        <td><span id="[% budget_line.budget_amount %]">[% budget_line.budget_amount | $Price %] </span>
79
80
80
81
81
        <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
82
        <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
Lines 90-104 Link Here
90
            <table class="invis">
91
            <table class="invis">
91
                <tr>
92
                <tr>
92
                    [% IF show_actual %]
93
                    [% IF show_actual %]
93
                        <td    >[% line.actual_amount %]</td>
94
                        <td>[% line.actual_amount %]</td>
94
                    [% END %]
95
                    [% END %]
95
                <td>
96
                <td>
96
97
97
                [% IF ( line.budget_lock ) %]
98
                [% IF ( line.budget_lock ) %]
98
                    [% line.estimated_amount %]&nbsp;
99
                    [% line.estimated_amount %] 
99
                    <input type="hidden" style="text-align: right;"  name="[% line.cell_name %]" value="[% line.estimated_amount %]"   />
100
                    <input type="hidden" style="text-align: right;" name="[% line.cell_name %]" value="[% line.estimated_amount %]" />
100
                [% ELSE %]
101
                [% ELSE %]
101
                    <input type="text" style="text-align: right;  width:90%; " size="6" name="[% line.cell_name %]"  value="[% line.estimated_amount %]"  id="budget_[% line.budget_id %][% line.colnum %]" class="plan_entry_[% line.budget_id %]" onchange="calcTotalRow(this);" />
102
                    <input type="text" style="text-align: right;  width:90%; " size="6" name="[% line.cell_name %]" value="[% line.estimated_amount %]" id="budget_[% line.budget_id %][% line.colnum %]" class="plan_entry_[% line.budget_id %]" onchange="calcTotalRow(this);" />
102
                [% END %]
103
                [% END %]
103
104
104
                </td></tr>
105
                </td></tr>
Lines 128-134 Link Here
128
        [% ELSE %]
129
        [% ELSE %]
129
            <td id="budget_est_[% budget_line.budget_id %]">
130
            <td id="budget_est_[% budget_line.budget_id %]">
130
        [% END %] 
131
        [% END %] 
131
                [% budget_line.budget_est_remain | $Price %]&nbsp;
132
                [% budget_line.budget_est_remain | $Price %] 
132
            </td>
133
            </td>
133
            </tr>
134
            </tr>
134
        </table>
135
        </table>
Lines 136-144 Link Here
136
137
137
        <td>
138
        <td>
138
             [% UNLESS ( budget_line.budget_lock ) %]
139
             [% UNLESS ( budget_line.budget_lock ) %]
139
                    <input type="button"  onclick="autoFillRow('[% budget_line.budget_id %]')" value="Auto-fill row"/>
140
                    <input type="button" onclick="autoFillRow('[% budget_line.budget_id %]')" value="Auto-fill row" />
140
            [% ELSE %]
141
            [% ELSE %]
141
             <div style="color:red;">not owned</div>
142
             <div style="color:red;">[% t('not owned') %]</div>
142
            [% END %]
143
            [% END %]
143
        </td>
144
        </td>
144
        </tr>
145
        </tr>
Lines 150-156 Link Here
150
    [% IF ( budget_period_locked ) %]
151
    [% IF ( budget_period_locked ) %]
151
        <!-- <input STYLE="background: gray;"   type="submit" value="Save" disabled="disabled"/> -->
152
        <!-- <input STYLE="background: gray;"   type="submit" value="Save" disabled="disabled"/> -->
152
    [% ELSE %]
153
    [% ELSE %]
153
        <fieldset class="action"><input type="button"  onclick="Check(this.form)" value="Save"/></fieldset>
154
        <fieldset class="action"><input type="button" onclick="Check(this.form)" value="Save" /></fieldset>
154
    [% END %]
155
    [% END %]
155
156
156
157
Lines 158-164 Link Here
158
    [% FOREACH authvals_ro IN authvals_row %]
159
    [% FOREACH authvals_ro IN authvals_row %]
159
160
160
     [% UNLESS ( authvals_ro.display ) %]
161
     [% UNLESS ( authvals_ro.display ) %]
161
        <input type="hidden" value="[% authvals_ro.code %]"  name="hide_cols"/>
162
        <input type="hidden" value="[% authvals_ro.code %]" name="hide_cols" />
162
     [% END %]
163
     [% END %]
163
    [% END %]
164
    [% END %]
164
165
Lines 168-176 Link Here
168
</form>
169
</form>
169
170
170
        [% ELSIF not budget_period_id %]
171
        [% ELSIF not budget_period_id %]
171
<div class="dialog alert">That budget does not exist! Please select a budget to continue.</div>
172
<div class="dialog alert">[% t('That budget does not exist! Please select a budget to continue.') %]</div>
172
        [% ELSE %]
173
        [% ELSE %]
173
<div class="dialog message">No funds to display for this search criteria</div>
174
<div class="dialog message">[% t('No funds to display for this search criteria') %]</div>
174
        [% END %]
175
        [% END %]
175
176
176
177
Lines 181-198 Link Here
181
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
182
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
182
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
183
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
183
<fieldset class="brief">
184
<fieldset class="brief">
184
<h4>Filter</h4>
185
<h4>[% t('Filter') %]</h4>
185
[% BLOCK planning_types %]
186
[% BLOCK planning_types %]
186
[%   SWITCH type %]
187
[%   SWITCH type %]
187
[%     CASE 'MONTHS'    %]<span>by months</span>
188
[%     CASE 'MONTHS'    %]<span>[% t('by months') %]</span>
188
[%     CASE 'ITEMTYPES' %]<span>by item types</span>
189
[%     CASE 'ITEMTYPES' %]<span>[% t('by item types') %]</span>
189
[%     CASE 'BRANCHES'  %]<span>by libraries</span>
190
[%     CASE 'BRANCHES'  %]<span>[% t('by libraries') %]</span>
190
[%     CASE             %]<span>by [% type %]</span>
191
[%     CASE             %]<span>[% t('by') %] [% type %]</span>
191
[%   END %]
192
[%   END %]
192
[% END %]
193
[% END %]
193
<ol>
194
<ol>
194
    <li>
195
    <li>
195
        <label for="authcat"> Select planning type:</label>
196
        <label for="authcat"> [% t('Select planning type:') %]</label>
196
        <select name="authcat" id="authcat" size="1">
197
        <select name="authcat" id="authcat" size="1">
197
        [% FOREACH value IN authcat_dropbox.values %]
198
        [% FOREACH value IN authcat_dropbox.values %]
198
            [% IF ( value == authcat_dropbox.default ) %]
199
            [% IF ( value == authcat_dropbox.default ) %]
Lines 205-215 Link Here
205
    </li>
206
    </li>
206
    <li class="radio">
207
    <li class="radio">
207
    [% IF ( show_mine ) %]
208
    [% IF ( show_mine ) %]
208
        <input type="checkbox" id="show_mine"  name="show_mine" value="1" checked="checked" />
209
        <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
209
    [% ELSE %]
210
    [% ELSE %]
210
        <input type="checkbox" id="show_mine"  name="show_mine" value="1"  />
211
        <input type="checkbox" id="show_mine" name="show_mine" value="1" />
211
    [% END %]
212
    [% END %]
212
    <label for="show_mine">Show my funds only</label>
213
    <label for="show_mine">[% t('Show my funds only') %]</label>
213
    </li>
214
    </li>
214
215
215
    <li class="radio">
216
    <li class="radio">
Lines 218-224 Link Here
218
    [% ELSE %]
219
    [% ELSE %]
219
        <input type="checkbox" id="show_active" name="show_active" value="1" />
220
        <input type="checkbox" id="show_active" name="show_active" value="1" />
220
        [% END %]
221
        [% END %]
221
    <label for="show_active">Show active funds only</label>
222
    <label for="show_active">[% t('Show active funds only') %]</label>
222
    </li>
223
    </li>
223
224
224
225
Lines 226-234 Link Here
226
        [% IF ( show_actual ) %]
227
        [% IF ( show_actual ) %]
227
            <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
228
            <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
228
        [% ELSE %]
229
        [% ELSE %]
229
            <input type="checkbox" id="show_actual" name="show_actual" value="1"  />
230
            <input type="checkbox" id="show_actual" name="show_actual" value="1" />
230
        [% END %]
231
        [% END %]
231
        <label for="show_actual">Show actual/estimated values</label>
232
        <label for="show_actual">[% t('Show actual/estimated values') %]</label>
232
    </li>
233
    </li>
233
    </ol>
234
    </ol>
234
    <fieldset class="action">
235
    <fieldset class="action">
Lines 240-249 Link Here
240
[% IF ( budget_lines ) %]
241
[% IF ( budget_lines ) %]
241
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
242
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
242
<fieldset class="brief">
243
<fieldset class="brief">
243
<h4>Export</h4>
244
<h4>[% t('Export') %]</h4>
244
    <ol>
245
    <ol>
245
        <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" /></li>
246
        <li><label for="basename">[% t('Output to a file named:') %] </label><input type="text" name="basename" id="basename" value="Export" /></li>
246
        <li><label class="inline" for="MIME">Into an application</label>
247
        <li><label class="inline" for="MIME">[% t('Into an application') %]</label>
247
            <select name="MIME" id="MIME" size="1">
248
            <select name="MIME" id="MIME" size="1">
248
            [% FOREACH value IN CGIextChoice %]
249
            [% FOREACH value IN CGIextChoice %]
249
                <option value="[% value %]">[% value %]</option>
250
                <option value="[% value %]">[% value %]</option>
Lines 256-262 Link Here
256
            </select>
257
            </select>
257
        </li>
258
        </li>
258
    </ol>
259
    </ol>
259
    <fieldset class="action">    <input type="submit" value="Submit"/>
260
    <fieldset class="action">    <input type="submit" value="Submit" />
260
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
261
    <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
261
    <input type="hidden" name="report_name" value="[% report_name %]" />
262
    <input type="hidden" name="report_name" value="[% report_name %]" />
262
    <input type="hidden" name="output" value="file" /></fieldset>
263
    <input type="hidden" name="output" value="file" /></fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt (-47 / +48 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Audio alerts</title>
6
<title>[% t('Koha › Administration › Audio alerts') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
12
[% INCLUDE 'prefs-admin-search.inc' %]
12
13
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; Audio alerts</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Audio alerts') %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
    <div id="bd">
17
    <div id="bd">
Lines 18-92 Link Here
18
            <div class="yui-b">
19
            <div class="yui-b">
19
20
20
                <div id="toolbar" class="btn-toolbar">
21
                <div id="toolbar" class="btn-toolbar">
21
                    <a class="btn btn-default btn-sm" id="newalert" href="/cgi-bin/koha/admin/audio_alerts.pl"><i class="fa fa-plus"></i> New alert</a>
22
                    <a class="btn btn-default btn-sm" id="newalert" href="/cgi-bin/koha/admin/audio_alerts.pl"><i class="fa fa-plus"></i> [% t('New alert') %]</a>
22
                </div>
23
                </div>
23
24
24
                <form id="new-alert-form" action="audio_alerts.pl" method="post" class="validated">
25
                <form id="new-alert-form" action="audio_alerts.pl" method="post" class="validated">
25
                    <fieldset class="rows">
26
                    <fieldset class="rows">
26
                        <legend><span class="create-alert">Add new alert</span><span class="edit-alert">Edit alert</span></legend>
27
                        <legend><span class="create-alert">[% t('Add new alert') %]</span><span class="edit-alert">[% t('Edit alert') %]</span></legend>
27
28
28
                        <input id="id" name="id" type="hidden" value="" />
29
                        <input id="id" name="id" type="hidden" value="" />
29
                        <ol>
30
                        <ol>
30
                            <li>
31
                            <li>
31
                                <label for="selector" class="required">Selector: </label>
32
                                <label for="selector" class="required">[% t('Selector:') %] </label>
32
                                <input id="selector" name="selector" type="text" class="required input-large" placeholder="selector" />
33
                                <input id="selector" name="selector" type="text" class="required input-large" placeholder="[% t('selector') %]" />
33
                                <span class="required">Required</span>
34
                                <span class="required">[% t('Required') %]</span>
34
                            </li>
35
                            </li>
35
                            <li>
36
                            <li>
36
                                <label for="sound" class="required">Sound: </label>
37
                                <label for="sound" class="required">[% t('Sound:') %] </label>
37
                                <input id="sound" name="sound" type="text" class="required input-large" placeholder="sound" />
38
                                <input id="sound" name="sound" type="text" class="required input-large" placeholder="[% t('sound') %]" />
38
                                <button id="play-sound" class="btn btn-default btn-xs disabled"><i class="fa fa-play"></i> Play sound</button>
39
                                <button id="play-sound" class="btn btn-default btn-xs disabled"><i class="fa fa-play"></i> [% t('Play sound') %]</button>
39
                                 <span class="required">Required</span>
40
                                 <span class="required">[% t('Required') %]</span>
40
                            </li>
41
                            </li>
41
                            <li>
42
                            <li>
42
                                <label for="koha-sounds">Select a built-in sound: </label>
43
                                <label for="koha-sounds">[% t('Select a built-in sound:') %] </label>
43
                                <select id="koha-sounds">
44
                                <select id="koha-sounds">
44
                                    <option value=""> -- Choose one -- </option>
45
                                    <option value=""> [% t('-- Choose one --') %] </option>
45
                                    <option value="beep.ogg">beep.ogg</option>
46
                                    <option value="beep.ogg">[% t('beep.ogg') %]</option>
46
                                    <option value="call.ogg">call.ogg</option>
47
                                    <option value="call.ogg">[% t('call.ogg') %]</option>
47
                                    <option value="critical.ogg">critical.ogg</option>
48
                                    <option value="critical.ogg">[% t('critical.ogg') %]</option>
48
                                    <option value="device_connect.ogg">device_connect.ogg</option>
49
                                    <option value="device_connect.ogg">[% t('device_connect.ogg') %]</option>
49
                                    <option value="device_disconnect.ogg">device_disconnect.ogg</option>
50
                                    <option value="device_disconnect.ogg">[% t('device_disconnect.ogg') %]</option>
50
                                    <option value="ending.ogg">ending.ogg</option>
51
                                    <option value="ending.ogg">[% t('ending.ogg') %]</option>
51
                                    <option value="fail.ogg">fail.ogg</option>
52
                                    <option value="fail.ogg">[% t('fail.ogg') %]</option>
52
                                    <option value="IM_notification.ogg">IM_notification.ogg</option>
53
                                    <option value="IM_notification.ogg">[% t('IM_notification.ogg') %]</option>
53
                                    <option value="incoming_call.ogg">incoming_call.ogg</option>
54
                                    <option value="incoming_call.ogg">[% t('incoming_call.ogg') %]</option>
54
                                    <option value="loading.ogg">loading.ogg</option>
55
                                    <option value="loading.ogg">[% t('loading.ogg') %]</option>
55
                                    <option value="loading_2.ogg">loading_2.ogg</option>
56
                                    <option value="loading_2.ogg">[% t('loading_2.ogg') %]</option>
56
                                    <option value="maximize.ogg">maximize.ogg</option>
57
                                    <option value="maximize.ogg">[% t('maximize.ogg') %]</option>
57
                                    <option value="minimize.ogg">minimize.ogg</option>
58
                                    <option value="minimize.ogg">[% t('minimize.ogg') %]</option>
58
                                    <option value="new_mail_notification.ogg">new_mail_notification.ogg</option>
59
                                    <option value="new_mail_notification.ogg">[% t('new_mail_notification.ogg') %]</option>
59
                                    <option value="opening.ogg">opening.ogg</option>
60
                                    <option value="opening.ogg">[% t('opening.ogg') %]</option>
60
                                    <option value="panic.ogg">panic.ogg</option>
61
                                    <option value="panic.ogg">[% t('panic.ogg') %]</option>
61
                                    <option value="popup.ogg">popup.ogg</option>
62
                                    <option value="popup.ogg">[% t('popup.ogg') %]</option>
62
                                    <option value="warning.ogg">warning.ogg</option>
63
                                    <option value="warning.ogg">[% t('warning.ogg') %]</option>
63
                                </select>
64
                                </select>
64
                            </li>
65
                            </li>
65
                        </ol>
66
                        </ol>
66
                    </fieldset>
67
                    </fieldset>
67
                    <fieldset class="action">
68
                    <fieldset class="action">
68
                            <input id="save-alert" type="submit" value="Submit" />
69
                            <input id="save-alert" type="submit" value="Submit" />
69
                            <a href="#" id="cancel-edit" class="cancel cancel-edit">Cancel</a>
70
                            <a href="#" id="cancel-edit" class="cancel cancel-edit">[% t('Cancel') %]</a>
70
                    </fieldset>
71
                    </fieldset>
71
                </form>
72
                </form>
72
73
73
                <form id="delete-alert-form" action="audio_alerts.pl" method="post">
74
                <form id="delete-alert-form" action="audio_alerts.pl" method="post">
74
                    <h3>Audio alerts</h3>
75
                    <h3>[% t('Audio alerts') %]</h3>
75
                    [%IF !( Koha.Preference('AudioAlerts') ) %]
76
                    [%IF !( Koha.Preference('AudioAlerts') ) %]
76
                        <div class="dialog alert">
77
                        <div class="dialog alert">
77
                            <p><strong>Note: </strong></p>
78
                            <p><strong>[% t('Note:') %] </strong></p>
78
                            <p>Please enable system preference 'AudioAlerts' to activate sounds.</p>
79
                            <p>[% t('Please enable system preference \'AudioAlerts\' to activate sounds.') %]</p>
79
                        </div>
80
                        </div>
80
                    [% END %]
81
                    [% END %]
81
                    <table id="audio-alerts-table">
82
                    <table id="audio-alerts-table">
82
                        <thead id="audio-alerts-table-head">
83
                        <thead id="audio-alerts-table-head">
83
                            <tr>
84
                            <tr>
84
                                <th>&nbsp;</th>
85
                                <th> </th>
85
                                <th>Precedence</th>
86
                                <th>[% t('Precedence') %]</th>
86
                                <th>Change order</th>
87
                                <th>[% t('Change order') %]</th>
87
                                <th>Selector</th>
88
                                <th>[% t('Selector') %]</th>
88
                                <th>Sound</th>
89
                                <th>[% t('Sound') %]</th>
89
                                <th>&nbsp;</th>
90
                                <th> </th>
90
                            </tr>
91
                            </tr>
91
                        </thead>
92
                        </thead>
92
93
Lines 96-128 Link Here
96
                                    <td><input type="checkbox" name="delete" value="[% a.id %]" /></td>
97
                                    <td><input type="checkbox" name="delete" value="[% a.id %]" /></td>
97
                                    <td>[% a.precedence %]</td>
98
                                    <td>[% a.precedence %]</td>
98
                                    <td style="white-space:nowrap;">
99
                                    <td style="white-space:nowrap;">
99
                                        <a title="Move alert up" href="audio_alerts.pl?action=move&amp;where=up&amp;id=[% a.id %]">
100
                                        <a title="[% t('Move alert up') %]" href="audio_alerts.pl?action=move&where=up&id=[% a.id %]">
100
                                            <i class="fa fa-arrow-up fa-lg order-control"></i>
101
                                            <i class="fa fa-arrow-up fa-lg order-control"></i>
101
                                        </a>
102
                                        </a>
102
103
103
                                        <a title="Move alert to top" href="audio_alerts.pl?action=move&amp;where=top&amp;id=[% a.id %]">
104
                                        <a title="[% t('Move alert to top') %]" href="audio_alerts.pl?action=move&where=top&id=[% a.id %]">
104
                                            <i class="fa fa-arrow-up fa-lg overline order-control"></i>
105
                                            <i class="fa fa-arrow-up fa-lg overline order-control"></i>
105
                                        </a>
106
                                        </a>
106
107
107
                                        <a title="Move alert to bottom" href="audio_alerts.pl?action=move&amp;where=bottom&amp;id=[% a.id %]">
108
                                        <a title="[% t('Move alert to bottom') %]" href="audio_alerts.pl?action=move&where=bottom&id=[% a.id %]">
108
                                            <i class="fa fa-arrow-down fa-lg underline order-control"></i>
109
                                            <i class="fa fa-arrow-down fa-lg underline order-control"></i>
109
                                        </a>
110
                                        </a>
110
111
111
                                        <a title="Move alert down" href="audio_alerts.pl?action=move&amp;where=down&amp;id=[% a.id %]">
112
                                        <a title="[% t('Move alert down') %]" href="audio_alerts.pl?action=move&where=down&id=[% a.id %]">
112
                                            <i class="fa fa-arrow-down fa-lg order-control"></i>
113
                                            <i class="fa fa-arrow-down fa-lg order-control"></i>
113
                                        </a>
114
                                        </a>
114
                                    </td>
115
                                    </td>
115
                                    <td>[% a.selector %]</td>
116
                                    <td>[% a.selector %]</td>
116
                                    <td>[% a.sound %]</td>
117
                                    <td>[% a.sound %]</td>
117
                                    <td>
118
                                    <td>
118
                                        <a class="btn btn-default btn-xs edit" data-soundid="[% a.id %]" data-precedence="[% a.precedence %]" data-selector="[% a.selector %]" data-sound="[% a.sound %]"><i class="fa fa-pencil"></i> Edit</a></td>
119
                                        <a class="btn btn-default btn-xs edit" data-soundid="[% a.id %]" data-precedence="[% a.precedence %]" data-selector="[% a.selector %]" data-sound="[% a.sound %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></td>
119
                                </tr>
120
                                </tr>
120
                            [% END %]
121
                            [% END %]
121
                        </tbody>
122
                        </tbody>
122
                    </table>
123
                    </table>
123
124
124
                    <p>
125
                    <p>
125
                        <button id="delete-alerts" type="submit" class="btn btn-default btn-sm disabled"><i class="fa fa-trash"></i> Delete selected alerts</button>
126
                        <button id="delete-alerts" type="submit" class="btn btn-default btn-sm disabled"><i class="fa fa-trash"></i> [% t('Delete selected alerts') %]</button>
126
                    </p>
127
                    </p>
127
                </form>
128
                </form>
128
            </div>
129
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-73 / +74 lines)
Lines 1-26 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Authority MARC subfield structure</title>
5
<title>[% t('Koha › Administration › Authority MARC subfield structure') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
8
<body id="admin_auth_subfields_structure" class="admin">
9
<body id="admin_auth_subfields_structure" class="admin">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
<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;
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
12
  <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> &rsaquo;
13
  <a href="/cgi-bin/koha/admin/authtypes.pl">[% t('Authority types') %]</a> ›
13
  [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode |html%] framework</a> &rsaquo;
14
  [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode |html%] [% t('framework') %]</a> ›
14
  [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a> &rsaquo;
15
  [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a> ›
15
  [% END %]
16
  [% END %]
16
  [% IF ( else ) %]Authority MARC subfield structure for [% tagfield | html %]
17
  [% IF ( else ) %][% t('Authority MARC subfield structure for') %] [% tagfield | html %]
17
  [% ELSE %]<a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;tagsubfield=[% tagsubfield %]&amp;authtypecode=[% authtypecode |uri %]">Authority MARC subfield structure for [% tagfield | html %]</a> &rsaquo;
18
  [% ELSE %]<a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&tagsubfield=[% tagsubfield %]&authtypecode=[% authtypecode |uri %]">[% t('Authority MARC subfield structure for') %] [% tagfield | html %]</a> ›
18
  [% END %]
19
  [% END %]
19
  [% IF ( delete_confirm ) %]Confirm deletion of subfield [% tagsubfield %]?[% END %]
20
  [% IF ( delete_confirm ) %][% t('Confirm deletion of subfield') %] [% tagsubfield %]?[% END %]
20
  [% IF ( delete_confirmed ) %]Data deleted[% END %]
21
  [% IF ( delete_confirmed ) %][% t('Data deleted') %][% END %]
21
  [% IF ( add_form ) %]
22
  [% IF ( add_form ) %]
22
  [% IF ( use_heading_flags_p ) %]
23
  [% IF ( use_heading_flags_p ) %]
23
  [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints[% END %]
24
  [% IF ( heading_edit_subfields_p ) %][% t('Edit MARC subfields constraints') %][% END %]
24
  [% ELSE %][% action %][% END %]
25
  [% ELSE %][% action %][% END %]
25
  [% END %]
26
  [% END %]
26
</div>
27
</div>
Lines 34-51 Link Here
34
[% IF ( add_form ) %]
35
[% IF ( add_form ) %]
35
36
36
    <h1>[% IF ( use_heading_flags_p ) %]
37
    <h1>[% IF ( use_heading_flags_p ) %]
37
    [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield | html %] authority [% authtypecode |html%][% END %]
38
    [% IF ( heading_edit_subfields_p ) %][% t('Edit MARC subfields constraints for field') %] [% tagfield | html %] [% t('authority') %] [% authtypecode |html%][% END %]
38
    [% ELSE %][% action %][% END %]</h1>
39
    [% ELSE %][% action %][% END %]</h1>
39
    <form action="[% script_name %]" name="Aform" method="post">
40
    <form action="[% script_name %]" name="Aform" method="post">
40
        <input type="hidden" name="op" value="add_validate" />
41
        <input type="hidden" name="op" value="add_validate" />
41
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
42
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
42
        <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
43
        <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
43
        <fieldset class="action"><input type="submit" class="submit" value="Save changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;authtypecode=[% authtypecode |uri %]">Cancel</a></fieldset>
44
        <fieldset class="action"><input type="submit" class="submit" value="Save changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&authtypecode=[% authtypecode |uri %]">[% t('Cancel') %]</a></fieldset>
44
        <div id="subfieldtabs" class="toptabs numbered">
45
        <div id="subfieldtabs" class="toptabs numbered">
45
            <ul>
46
            <ul>
46
                [% FOREACH loo IN loop %]
47
                [% FOREACH loo IN loop %]
47
                    [% IF ( loo.new_subfield ) %]
48
                    [% IF ( loo.new_subfield ) %]
48
                        <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">New</a></li>
49
                        <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">[% t('New') %]</a></li>
49
                    [% ELSE %]
50
                    [% ELSE %]
50
                        <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">
51
                        <li><a href="#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian | html_entity %]">
51
                            [% loo.tagsubfield %]
52
                            [% loo.tagsubfield %]
Lines 60-66 Link Here
60
61
61
                [% IF ( loo.new_subfield ) %]
62
                [% IF ( loo.new_subfield ) %]
62
                    <li>
63
                    <li>
63
                        <label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>
64
                        <label for="tagsubfieldinput[% loo.row %]">[% t('Subfield code:') %] </label>
64
                        <input type="text" name="tagsubfield" value="[% loo.tagsubfield %]" size="1" id="tagsubfield" maxlength="1" />
65
                        <input type="text" name="tagsubfield" value="[% loo.tagsubfield %]" size="1" id="tagsubfield" maxlength="1" />
65
                    </li>
66
                    </li>
66
                [% ELSE %]
67
                [% ELSE %]
Lines 69-75 Link Here
69
                    </li>
70
                    </li>
70
                [% END %]
71
                [% END %]
71
                <li>
72
                <li>
72
                    <label for="repeatable[% loo.row %]">Repeatable: </label>
73
                    <label for="repeatable[% loo.row %]">[% t('Repeatable:') %] </label>
73
                    [% IF loo.repeatable %]
74
                    [% IF loo.repeatable %]
74
                        <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
75
                        <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
75
                    [% ELSE %]
76
                    [% ELSE %]
Lines 77-123 Link Here
77
                    [% END %]
78
                    [% END %]
78
                </li>
79
                </li>
79
                <li>
80
                <li>
80
                    <label for="mandatory[% loo.row %]">Mandatory: </label>
81
                    <label for="mandatory[% loo.row %]">[% t('Mandatory:') %] </label>
81
                    [% IF loo.mandatory %]
82
                    [% IF loo.mandatory %]
82
                        <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
83
                        <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
83
                    [% ELSE %]
84
                    [% ELSE %]
84
                        <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
85
                        <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
85
                    [% END %]
86
                    [% END %]
86
                </li>
87
                </li>
87
                <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /></li>
88
                <li><label for="liblibrarian[% loo.row %]">[% t('Text for librarian:') %] </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /></li>
88
                <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /></li>
89
                <li><label for="libopac[% loo.row %]">[% t('Text for OPAC:') %] </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /></li>
89
                <li><label for="tab[% loo.row %]">Managed in tab: </label>
90
                <li><label for="tab[% loo.row %]">[% t('Managed in tab:') %] </label>
90
                    <select name="tab" size="1" id="tab[% loo.row %]">
91
                    <select name="tab" size="1" id="tab[% loo.row %]">
91
                        [%- IF ( loo.tab ==  -1 ) -%]
92
                        [%- IF ( loo.tab ==  -1 ) -%]
92
                        <option value="-1" selected="selected">ignore</option>
93
                        <option value="-1" selected="selected">[% t('ignore') %]</option>
93
                        [%- ELSE -%]
94
                        [%- ELSE -%]
94
                        <option value="-1">ignore</option>
95
                        <option value="-1">[% t('ignore') %]</option>
95
                        [%- END -%]
96
                        [%- END -%]
96
                    [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
97
                    [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -%]
97
                        [%- IF ( loo.tab ==  t && t.length>0 ) -%]
98
                        [%- IF ( loo.tab ==  t && t.length>0 ) -%]
98
                        <option value="[%- t -%]" selected="selected">[%- t -%]</option>
99
                        <option value="[%- t -%]" selected="selected">[%- t -%]</option>
99
                        [%- ELSIF ( loo.tab ==  t ) -%]
100
                        [%- ELSIF ( loo.tab ==  t ) -%]
100
                        <option value="[%- t -%]" selected="selected">&nbsp;</option>
101
                        <option value="[%- t -%]" selected="selected"> </option>
101
                        [%- ELSE -%]
102
                        [%- ELSE -%]
102
                        <option value="[%- t -%]">[%- t -%]</option>
103
                        <option value="[%- t -%]">[%- t -%]</option>
103
                        [%- END -%]
104
                        [%- END -%]
104
                    [%- END -%]
105
                    [%- END -%]
105
                    </select>
106
                    </select>
106
                    (ignore means that the subfield does not display in the record editor)
107
                    [% t('(ignore means that the subfield does not display in the record editor)') %]
107
                </li>
108
                </li>
108
                <li>
109
                <li>
109
                    <fieldset>
110
                    <fieldset>
110
                        <legend>Display</legend>
111
                        <legend>[% t('Display') %]</legend>
111
                        <ol>
112
                        <ol>
112
                            <li><label for="ohidden[% loo.row %]">Select to display or not:</label>
113
                            <li><label for="ohidden[% loo.row %]">[% t('Select to display or not:') %]</label>
113
                                <select name="ohidden" size="1" id="ohidden[% loo.row %]">
114
                                <select name="ohidden" size="1" id="ohidden[% loo.row %]">
114
                                    [%- IF ( loo.ohidden ==  0 ) -%]
115
                                    [%- IF ( loo.ohidden ==  0 ) -%]
115
                                    <option value= "0" selected="selected">Show all</option>
116
                                    <option value="0" selected="selected">[% t('Show all') %]</option>
116
                                    <option value="1">Hide all</option>
117
                                    <option value="1">[% t('Hide all') %]</option>
117
                                    [%- ELSE -%]
118
                                    [%- ELSE -%]
118
                                    [%# All other non-zero values mean: Hide %]
119
                                    [%# All other non-zero values mean: Hide %]
119
                                    <option value= "0">Show all</option>
120
                                    <option value="0">[% t('Show all') %]</option>
120
                                    <option value="1" selected="selected">Hide all</option>
121
                                    <option value="1" selected="selected">[% t('Hide all') %]</option>
121
                                    [%- END -%]
122
                                    [%- END -%]
122
                                </select>
123
                                </select>
123
                            </li>
124
                            </li>
Lines 126-162 Link Here
126
                </li>
127
                </li>
127
                <li>
128
                <li>
128
                    <fieldset class="rows">
129
                    <fieldset class="rows">
129
                        <legend>Advanced constraints:</legend>
130
                        <legend>[% t('Advanced constraints:') %]</legend>
130
                        <ol>
131
                        <ol>
131
                            <li>
132
                            <li>
132
                                <label for="isurl[% loo.row %]">Is a URL:</label>
133
                                <label for="isurl[% loo.row %]">[% t('Is a URL:') %]</label>
133
                                [% IF loo.isurl %]
134
                                [% IF loo.isurl %]
134
                                    <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
135
                                    <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
135
                                [% ELSE %]
136
                                [% ELSE %]
136
                                    <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
137
                                    <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
137
                                [% END %]
138
                                [% END %]
138
                                (if checked, it means that the subfield is a URL and can be clicked)
139
                                [% t('(if checked, it means that the subfield is a URL and can be clicked)') %]
139
                            </li>
140
                            </li>
140
                            <li>
141
                            <li>
141
                                <label for="defaultvalue[% loo.row %]">Default value:</label>
142
                                <label for="defaultvalue[% loo.row %]">[% t('Default value:') %]</label>
142
                                <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
143
                                <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" />
143
                            </li>
144
                            </li>
144
                        </ol>
145
                        </ol>
145
                    </fieldset>
146
                    </fieldset>
146
                </li>
147
                </li>
147
                <li>
148
                <li>
148
                    <fieldset><legend>Help input</legend>    
149
                    <fieldset><legend>[% t('Help input') %]</legend>    
149
                        <ol>
150
                        <ol>
150
                            <li>
151
                            <li>
151
                                <label for="kohafield[% loo.row %]">Koha field:</label>
152
                                <label for="kohafield[% loo.row %]">[% t('Koha field:') %]</label>
152
                                <select name="kohafield" id="kohafield[% loo.row %]" size="1">
153
                                <select name="kohafield" id="kohafield[% loo.row %]" size="1">
153
                                [%- FOREACH value IN loo.kohafields %]
154
                                [%- FOREACH value IN loo.kohafields %]
154
                                    [% IF ( value == loo.kohafield  && value.length>0 ) -%]
155
                                    [% IF ( value == loo.kohafield  && value.length>0 ) -%]
155
                                    <option value="[% value %]" selected="selected">[% value %]</option>
156
                                    <option value="[% value %]" selected="selected">[% value %]</option>
156
                                    [%- ELSIF ( value == loo.kohafield ) -%]
157
                                    [%- ELSIF ( value == loo.kohafield ) -%]
157
                                    <option value="[% value %]" selected="selected">&nbsp;</option>
158
                                    <option value="[% value %]" selected="selected"> </option>
158
                                    [%- ELSIF ( value.length==0 ) -%]
159
                                    [%- ELSIF ( value.length==0 ) -%]
159
                                    <option value="[% value %]">&nbsp;</option>
160
                                    <option value="[% value %]"> </option>
160
                                    [%- ELSE -%]
161
                                    [%- ELSE -%]
161
                                    <option value="[% value %]">[% value %]</option>
162
                                    <option value="[% value %]">[% value %]</option>
162
                                    [%- END -%]
163
                                    [%- END -%]
Lines 164-178 Link Here
164
                                </select>
165
                                </select>
165
                            </li>
166
                            </li>
166
                            <li>
167
                            <li>
167
                                <label for="authorised_value[% loo.row %]">Authorized value:</label>
168
                                <label for="authorised_value[% loo.row %]">[% t('Authorized value:') %]</label>
168
                                <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
169
                                <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
169
                                [%- FOREACH value IN loo.authorised_values %]
170
                                [%- FOREACH value IN loo.authorised_values %]
170
                                    [% IF ( value == loo.authorised_value && value.length>0 ) -%]
171
                                    [% IF ( value == loo.authorised_value && value.length>0 ) -%]
171
                                    <option value="[% value %]" selected="selected">[% value %]</option>
172
                                    <option value="[% value %]" selected="selected">[% value %]</option>
172
                                    [%- ELSIF ( value == loo.authorised_value ) -%]
173
                                    [%- ELSIF ( value == loo.authorised_value ) -%]
173
                                    <option value="[% value %]" selected>&nbsp;</option>
174
                                    <option value="[% value %]" selected=""> </option>
174
                                    [%- ELSIF ( value.length==0 ) -%]
175
                                    [%- ELSIF ( value.length==0 ) -%]
175
                                    <option value="[% value %]">&nbsp;</option>
176
                                    <option value="[% value %]"> </option>
176
                                    [%- ELSE -%]
177
                                    [%- ELSE -%]
177
                                    <option value="[% value %]">[% value %]</option>
178
                                    <option value="[% value %]">[% value %]</option>
178
                                    [%- END -%]
179
                                    [%- END -%]
Lines 180-194 Link Here
180
                                </select>
181
                                </select>
181
                            </li>
182
                            </li>
182
                            <li>
183
                            <li>
183
                                <label for="frameworkcode[% loo.row %]">Thesaurus:</label>
184
                                <label for="frameworkcode[% loo.row %]">[% t('Thesaurus:') %]</label>
184
                                <select name="frameworkcode" id="frameworkcode[% loo.row %]" size="1">
185
                                <select name="frameworkcode" id="frameworkcode[% loo.row %]" size="1">
185
                                [%- FOREACH value IN loo.frameworkcodes %]
186
                                [%- FOREACH value IN loo.frameworkcodes %]
186
                                    [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
187
                                    [% IF ( value == loo.frameworkcode && value.length>0 ) -%]
187
                                    <option value="[% value %]" selected="selected">[% value %]</option>
188
                                    <option value="[% value %]" selected="selected">[% value %]</option>
188
                                    [%- ELSIF ( value == loo.frameworkcode ) -%]
189
                                    [%- ELSIF ( value == loo.frameworkcode ) -%]
189
                                    <option value="[% value %]" selected="selected">&nbsp;</option>
190
                                    <option value="[% value %]" selected="selected"> </option>
190
                                    [%- ELSIF ( value.length==0 ) -%]
191
                                    [%- ELSIF ( value.length==0 ) -%]
191
                                    <option value="[% value %]">&nbsp;</option>
192
                                    <option value="[% value %]"> </option>
192
                                    [%- ELSE -%]
193
                                    [%- ELSE -%]
193
                                    <option value="[% value %]">[% value %]</option>
194
                                    <option value="[% value %]">[% value %]</option>
194
                                    [%- END -%]
195
                                    [%- END -%]
Lines 196-210 Link Here
196
                                </select>
197
                                </select>
197
                            </li>
198
                            </li>
198
                            <li>
199
                            <li>
199
                                <label for="value_builder[% loo.row %]">Plugin:</label>
200
                                <label for="value_builder[% loo.row %]">[% t('Plugin:') %]</label>
200
                                <select name="value_builder" id="value_builder[% loo.row %]" size="1">
201
                                <select name="value_builder" id="value_builder[% loo.row %]" size="1">
201
                                [%- FOREACH value IN loo.value_builders %]
202
                                [%- FOREACH value IN loo.value_builders %]
202
                                    [% IF ( value == loo.value_builder && value.length>0 ) -%]
203
                                    [% IF ( value == loo.value_builder && value.length>0 ) -%]
203
                                    <option value="[% value %]" selected="selected">[% value %]</option>
204
                                    <option value="[% value %]" selected="selected">[% value %]</option>
204
                                    [%- ELSIF ( value == loo.value_builder ) -%]
205
                                    [%- ELSIF ( value == loo.value_builder ) -%]
205
                                    <option value="[% value %]" selected="selected">&nbsp;</option>
206
                                    <option value="[% value %]" selected="selected"> </option>
206
                                    [%- ELSIF ( value.length==0 ) -%]
207
                                    [%- ELSIF ( value.length==0 ) -%]
207
                                    <option value="[% value %]">&nbsp;</option>
208
                                    <option value="[% value %]"> </option>
208
                                    [%- ELSE -%]
209
                                    [%- ELSE -%]
209
                                    <option value="[% value %]">[% value %]</option>
210
                                    <option value="[% value %]">[% value %]</option>
210
                                    [%- END -%]
211
                                    [%- END -%]
Lines 224-241 Link Here
224
[% IF ( delete_confirm ) %]
225
[% IF ( delete_confirm ) %]
225
226
226
    <div class="dialog alert">
227
    <div class="dialog alert">
227
        <h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
228
        <h3>[% t('Delete subfield') %] <span class="ex">'[% tagsubfield %]'?</span></h3>
228
        <form action="[% delete_link %]" method="post">
229
        <form action="[% delete_link %]" method="post">
229
            <input type="hidden" name="op" value="delete_confirmed" />
230
            <input type="hidden" name="op" value="delete_confirmed" />
230
            <table>
231
            <table>
231
                <tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
232
                <tr><th scope="row">[% t('Subfield:') %]</th> <td>[% tagsubfield %]</td></tr>
232
                <tr><th scope="row">Description:</th> <td>[% liblibrarian | html_entity %]</td></tr>
233
                <tr><th scope="row">[% t('Description:') %]</th> <td>[% liblibrarian | html_entity %]</td></tr>
233
            </table>
234
            </table>
234
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
235
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
235
            <input type="hidden" name="tagfield" value="[% tagfield%]" />
236
            <input type="hidden" name="tagfield" value="[% tagfield%]" />
236
            <input type="hidden" name="tagsubfield" value="[% tagsubfield | html %]" />
237
            <input type="hidden" name="tagsubfield" value="[% tagsubfield | html %]" />
237
            <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
238
            <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
238
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
239
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this subfield') %]</button>
239
        </form>
240
        </form>
240
241
241
        <form action="[% delete_link %]" method="get">
242
        <form action="[% delete_link %]" method="get">
Lines 243-256 Link Here
243
            <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
244
            <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
244
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
245
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
245
            <input type="hidden" name="authtypecode" value="[% authtypecode |html %]" />
246
            <input type="hidden" name="authtypecode" value="[% authtypecode |html %]" />
246
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
247
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
247
        </form>
248
        </form>
248
    </form></div>
249
    </form></div>
249
[% END %]
250
[% END %]
250
251
251
[% IF ( delete_confirmed ) %]
252
[% IF ( delete_confirmed ) %]
252
253
253
   <div class="dialog message"> <h3>Data deleted</h3>
254
   <div class="dialog message"> <h3>[% t('Data deleted') %]</h3>
254
    <form action="[% script_name %]" method="post">
255
    <form action="[% script_name %]" method="post">
255
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
256
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
256
        <input type="submit" class="approve" value="OK" />
257
        <input type="submit" class="approve" value="OK" />
Lines 259-274 Link Here
259
260
260
261
261
[% IF ( else ) %]
262
[% IF ( else ) %]
262
<h1>Authority MARC subfield structure admin for [% tagfield | html %] (authority: [% authtypecode | html%])</h1>
263
<h1>[% t('Authority MARC subfield structure admin for') %] [% tagfield | html %] [% t('(authority:') %] [% authtypecode | html%])</h1>
263
<p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
264
<p>[% t('This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.') %]</p>
264
<p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
265
<p>[% t('The column \'Koha field\' shows that the subfield is linked with a Koha field.') %]</p>
265
266
266
<table>
267
<table>
267
    <tr>
268
    <tr>
268
        <th>Subfield</th>
269
        <th>[% t('Subfield') %]</th>
269
        <th>Text</th>
270
        <th>[% t('Text') %]</th>
270
        <th>Constraints</th>
271
        <th>[% t('Constraints') %]</th>
271
        <th>&nbsp;</th>
272
        <th> </th>
272
    </tr>
273
    </tr>
273
    [% FOREACH loo IN loop %]
274
    [% FOREACH loo IN loop %]
274
    <tr>
275
    <tr>
Lines 282-307 Link Here
282
        </td>
283
        </td>
283
        <td>
284
        <td>
284
            [% IF ( loo.subfield_ignored ) %]
285
            [% IF ( loo.subfield_ignored ) %]
285
                    <i>subfield ignored</i>
286
                    <i>[% t('subfield ignored') %]</i>
286
            [% ELSE %]
287
            [% ELSE %]
287
                <strong>Tab:</strong>[% loo.tab %],
288
                <strong>[% t('Tab:') %]</strong>[% loo.tab %],
288
                [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
289
                [% IF ( loo.kohafield ) %] | <strong>[% t('Koha field:') %]</strong> [% loo.kohafield %], [% END %]
289
                [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
290
                [% IF ( loo.repeatable ) %][% t('Repeatable,') %] [% ELSE %][% t('Not repeatable,') %]
290
                [% END %]
291
                [% END %]
291
                        [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
292
                        [% IF ( loo.mandatory ) %][% t('Mandatory,') %] [% ELSE %][% t('Not mandatory,') %]
292
                [% END %]
293
                [% END %]
293
                        [% IF ( loo.hidden ) %]hidden,
294
                        [% IF ( loo.hidden ) %][% t('hidden,') %]
294
                [% END %]
295
                [% END %]
295
                        [% IF ( loo.isurl ) %]is a url,
296
                        [% IF ( loo.isurl ) %][% t('is a url,') %]
296
                [% END %]
297
                [% END %]
297
                        [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
298
                        [% IF ( loo.authorised_value ) %] | <strong>[% t('Auth value:') %]</strong>[% loo.authorised_value %],
298
                [% END %]
299
                [% END %]
299
                        [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
300
                        [% IF ( loo.frameworkcode ) %] | <strong>[% t('Authority:') %]</strong>[% loo.frameworkcode %],
300
                [% END %]
301
                [% END %]
301
                [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
302
                [% IF ( loo.value_builder ) %] | <strong>[% t('Plugin:') %]</strong>[% loo.value_builder %],[% END %]
302
            [% END %]
303
            [% END %]
303
        </td>
304
        </td>
304
        <td><a href="[% loo.delete %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a></td>
305
        <td><a href="[% loo.delete %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
305
    </tr>
306
    </tr>
306
    [% END %]
307
    [% END %]
307
</table>
308
</table>
Lines 311-326 Link Here
311
    <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
312
    <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
312
    <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
313
    <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
313
    <input type="submit" value="Edit subfields" />
314
    <input type="submit" value="Edit subfields" />
314
    <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&amp;authtypecode=[% authtypecode | uri %]">Cancel</a></fieldset>
315
    <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield | uri%]&authtypecode=[% authtypecode | uri %]">[% t('Cancel') %]</a></fieldset>
315
    </form>
316
    </form>
316
317
317
    [% IF ( previous ) %]
318
    [% IF ( previous ) %]
318
    <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" />
319
    <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="[% t('previous') %]" alt="[% t('previous') %]" />
319
    </a>
320
    </a>
320
    [% END %]
321
    [% END %]
321
    [% IF ( next ) %]
322
    [% IF ( next ) %]
322
        [% next %]
323
        [% next %]
323
    <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" />
324
    <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="[% t('next') %]" alt="[% t('next') %]" />
324
    </a>
325
    </a>
325
    [% END %]
326
    [% END %]
326
327
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-56 / +57 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Authority MARC framework [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
6
<title>[% t('Koha › Administration › Authority MARC framework') %] [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
6
    [% IF ( heading_modify_tag_p ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; Modify tag[% END %]
7
    [% IF ( heading_modify_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] [% t('Framework') %][% ELSE %][% t('Default framework') %][% END %] [% t('› Modify tag') %][% END %]
7
    [% IF ( heading_add_tag_p ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; New tag[% END %]
8
    [% IF ( heading_add_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] [% t('Framework') %][% ELSE %][% t('Default framework') %][% END %] [% t('› New tag') %][% END %]
8
    [% ELSE %]&rsaquo; [% action %][% END %][% END %][% IF ( delete_confirm ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; Confirm deletion[% END %][% IF ( delete_confirmed ) %]&rsaquo; [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] &rsaquo; Data deleted[% END %]</title>
9
    [% ELSE %]› [% action %][% END %][% END %][% IF ( delete_confirm ) %]› [% IF ( authtypecode ) %][% authtypecode %] [% t('Framework') %][% ELSE %][% t('Default framework') %][% END %] [% t('› Confirm deletion') %][% END %][% IF ( delete_confirmed ) %]› [% IF ( authtypecode ) %][% authtypecode %] [% t('Framework') %][% ELSE %][% t('Default framework') %][% END %] [% t('› Data deleted') %][% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
11
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
Lines 15-52 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'prefs-admin-search.inc' %]
17
[% INCLUDE 'prefs-admin-search.inc' %]
17
18
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;
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
19
    <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> &rsaquo;
20
    <a href="/cgi-bin/koha/admin/authtypes.pl">[% t('Authority types') %]</a> ›
20
    [% IF ( add_form ) %]
21
    [% IF ( add_form ) %]
21
        [% IF ( use_heading_flags_p ) %]
22
        [% IF ( use_heading_flags_p ) %]
22
            [% IF ( heading_modify_tag_p ) %]
23
            [% IF ( heading_modify_tag_p ) %]
23
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
24
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] [% t('Framework') %]</a>
24
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
25
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a>
25
                [% END %] &rsaquo; Modify tag
26
                [% END %] [% t('› Modify tag') %]
26
            [% END %]
27
            [% END %]
27
            [% IF ( heading_add_tag_p ) %]
28
            [% IF ( heading_add_tag_p ) %]
28
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
29
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] [% t('framework') %]</a>
29
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
30
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a>
30
                [% END %] &rsaquo; New tag
31
                [% END %] [% t('› New tag') %]
31
            [% END %]
32
            [% END %]
32
        [% ELSE %]
33
        [% ELSE %]
33
            [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
34
            [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] [% t('Framework') %]</a>
34
            [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
35
            [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a>
35
            [% END %] &rsaquo; [% action %]
36
            [% END %] › [% action %]
36
        [% END %]
37
        [% END %]
37
    [% ELSE %]
38
    [% ELSE %]
38
        [% IF ( delete_confirm ) %]
39
        [% IF ( delete_confirm ) %]
39
            [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
40
            [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] [% t('framework') %]</a>
40
            [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
41
            [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a>
41
            [% END %] &rsaquo; Confirm deletion
42
            [% END %] [% t('› Confirm deletion') %]
42
        [% ELSE %]
43
        [% ELSE %]
43
            [% IF ( delete_confirmed ) %]
44
            [% IF ( delete_confirmed ) %]
44
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
45
                [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] [% t('framework') %]</a>
45
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
46
                [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">[% t('Default framework') %]</a>
46
                [% END %] &rsaquo; Data deleted
47
                [% END %] [% t('› Data deleted') %]
47
            [% ELSE %]
48
            [% ELSE %]
48
                [% IF ( authtypecode ) %][% authtypecode %] Framework
49
                [% IF ( authtypecode ) %][% authtypecode %] [% t('Framework') %]
49
                [% ELSE %]Default framework
50
                [% ELSE %][% t('Default framework') %]
50
                [% END %]
51
                [% END %]
51
            [% END %]
52
            [% END %]
52
        [% END %]
53
        [% END %]
Lines 59-72 Link Here
59
    <div id="yui-main">
60
    <div id="yui-main">
60
    <div class="yui-b">
61
    <div class="yui-b">
61
62
62
<h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode %][% ELSE %]default framework[% END %]</h1>
63
<h1>[% t('Authority MARC framework for') %] [% IF ( authtypecode ) %][% authtypecode %][% ELSE %][% t('default framework') %][% END %]</h1>
63
64
64
65
65
[% IF ( add_form ) %]
66
[% IF ( add_form ) %]
66
67
67
    <h2>
68
    <h2>
68
    [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
69
    [% IF ( heading_modify_tag_p ) %][% t('Modify tag') %][% END %]
69
    [% IF ( heading_add_tag_p ) %]New tag[% END %]
70
    [% IF ( heading_add_tag_p ) %][% t('New tag') %][% END %]
70
    </h2>
71
    </h2>
71
    <form action="[% script_name %]" name="Aform" method="post" class="validated">
72
    <form action="[% script_name %]" name="Aform" method="post" class="validated">
72
        <input type="hidden" name="op" value="add_validate" />
73
        <input type="hidden" name="op" value="add_validate" />
Lines 76-120 Link Here
76
            <ol>
77
            <ol>
77
                [% IF ( heading_modify_tag_p ) %]
78
                [% IF ( heading_modify_tag_p ) %]
78
                    <li>
79
                    <li>
79
                        <span class="label">Tag: </span>
80
                        <span class="label">[% t('Tag:') %] </span>
80
                        <input type="hidden" name="tagfield" value="[% searchfield %]" />
81
                        <input type="hidden" name="tagfield" value="[% searchfield %]" />
81
                        [% searchfield %]
82
                        [% searchfield %]
82
                    </li>
83
                    </li>
83
                [% ELSE %]
84
                [% ELSE %]
84
                    <li>
85
                    <li>
85
                        <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
86
                        <label for="tagfield" class="required">[% t('Tag:') %] </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
86
                        <span class="required">Required</span>
87
                        <span class="required">[% t('Required') %]</span>
87
                    </li>
88
                    </li>
88
                [% END %]
89
                [% END %]
89
90
90
        <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
91
        <li><label for="liblibrarian">[% t('Text for librarians:') %] </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
91
        <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
92
        <li><label for="libopac">[% t('Text for opac:') %] </label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
92
        <li><label for="repeatable">Repeatable: </label>
93
        <li><label for="repeatable">[% t('Repeatable:') %] </label>
93
            [% IF ( repeatable ) %]
94
            [% IF ( repeatable ) %]
94
                <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
95
                <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
95
            [% ELSE %]
96
            [% ELSE %]
96
                <input type="checkbox" name="repeatable" id="repeatable" value="1" />
97
                <input type="checkbox" name="repeatable" id="repeatable" value="1" />
97
            [% END %]
98
            [% END %]
98
        </li>
99
        </li>
99
        <li><label for="mandatory">Mandatory: </label>
100
        <li><label for="mandatory">[% t('Mandatory:') %] </label>
100
            [% IF ( mandatory ) %]
101
            [% IF ( mandatory ) %]
101
                <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
102
                <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
102
            [% ELSE %]
103
            [% ELSE %]
103
                <input type="checkbox" name="mandatory" id="mandatory" value="1" />
104
                <input type="checkbox" name="mandatory" id="mandatory" value="1" />
104
            [% END %]
105
            [% END %]
105
        </li>
106
        </li>
106
        <li><label for="authorised_value">Authorized value: </label>
107
        <li><label for="authorised_value">[% t('Authorized value:') %] </label>
107
            <select name="authorised_value" id="authorised_value" size="1">
108
            <select name="authorised_value" id="authorised_value" size="1">
108
                <option value=""></option>
109
                <option value=""></option>
109
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
110
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
110
            </select>
111
            </select>
111
            (if you select a value here, the indicators will be limited to the authorized value list)
112
            [% t('(if you select a value here, the indicators will be limited to the authorized value list)') %]
112
        </li>
113
        </li>
113
        </ol>
114
        </ol>
114
        </fieldset>
115
        </fieldset>
115
        <fieldset class="action">
116
        <fieldset class="action">
116
            <input type="submit" value="Submit" />
117
            <input type="submit" value="Submit" />
117
            <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]" class="cancel">Cancel</a>
118
            <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]" class="cancel">[% t('Cancel') %]</a>
118
        </fieldset>
119
        </fieldset>
119
    </form>
120
    </form>
120
[% END %]
121
[% END %]
Lines 122-146 Link Here
122
123
123
[% IF ( delete_confirm ) %]
124
[% IF ( delete_confirm ) %]
124
    <div class="dialog alert">
125
    <div class="dialog alert">
125
        <h3>Confirm deletion</h3>
126
        <h3>[% t('Confirm deletion') %]</h3>
126
        <form action="[% script_name %]" method="post">
127
        <form action="[% script_name %]" method="post">
127
            <table>
128
            <table>
128
                <tr><th scope="row">Tag: </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
129
                <tr><th scope="row">[% t('Tag:') %] </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
129
            </table>
130
            </table>
130
            <input type="hidden" name="op" value="delete_confirmed" />
131
            <input type="hidden" name="op" value="delete_confirmed" />
131
            <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
132
            <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
132
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
133
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
133
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
134
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
134
        </form>
135
        </form>
135
        <form action="[% script_name %]" method="get">
136
        <form action="[% script_name %]" method="get">
136
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
137
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
137
        </form>
138
        </form>
138
    </div>
139
    </div>
139
[% END %]
140
[% END %]
140
141
141
[% IF ( delete_confirmed ) %]
142
[% IF ( delete_confirmed ) %]
142
143
143
  <div class="dialog message">  <h3>Data deleted</h3>
144
  <div class="dialog message">  <h3>[% t('Data deleted') %]</h3>
144
    <form action="[% script_name %]" method="post">
145
    <form action="[% script_name %]" method="post">
145
    <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
146
    <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
146
    <input type="hidden" name="searchfield" value="[% searchfield %]" />
147
    <input type="hidden" name="searchfield" value="[% searchfield %]" />
Lines 152-158 Link Here
152
    <form action="[% script_name %]" method="post">
153
    <form action="[% script_name %]" method="post">
153
        <input type="hidden" name="op" value="authtype_create_confirm" />
154
        <input type="hidden" name="op" value="authtype_create_confirm" />
154
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
155
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
155
        Create authority framework for [% authtypecode %] using
156
        [% t('Create authority framework for') %] [% authtypecode %] [% t('using') %]
156
        <select name="existingauthtypecode">
157
        <select name="existingauthtypecode">
157
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
158
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
158
            [% IF existingauthtypeloo.value == "" %]
159
            [% IF existingauthtypeloo.value == "" %]
Lines 170-179 Link Here
170
[% IF ( else ) %]
171
[% IF ( else ) %]
171
172
172
<div id="toolbar" class="btn-toolbar">
173
<div id="toolbar" class="btn-toolbar">
173
    <div class="btn-group"><a class="btn btn-default btn-sm" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&amp;authtypecode=[% authtypecode %]"><i class="fa fa-plus"></i> New tag</a></div>
174
    <div class="btn-group"><a class="btn btn-default btn-sm" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]"><i class="fa fa-plus"></i> [% t('New tag') %]</a></div>
174
</div>
175
</div>
175
176
176
<h2>Select an authority framework</h2>
177
<h2>[% t('Select an authority framework') %]</h2>
177
<form action="[% script_name %]" method="post">
178
<form action="[% script_name %]" method="post">
178
    <select name="authtypecode">
179
    <select name="authtypecode">
179
    [% FOREACH authority_type IN authority_types%]
180
    [% FOREACH authority_type IN authority_types%]
Lines 192-203 Link Here
192
<table id="table_authtagstructure">
193
<table id="table_authtagstructure">
193
    <thead>
194
    <thead>
194
        <tr>
195
        <tr>
195
            <th>Tag</th>
196
            <th>[% t('Tag') %]</th>
196
            <th>Lib</th>
197
            <th>[% t('Lib') %]</th>
197
            <th>Repeatable</th>
198
            <th>[% t('Repeatable') %]</th>
198
            <th>Mandatory</th>
199
            <th>[% t('Mandatory') %]</th>
199
            <th>Authorized<br />value</th>
200
            <th>[% t('Authorized') %]<br />[% t('value') %]</th>
200
            <th>&nbsp;</th>
201
            <th> </th>
201
        </tr>
202
        </tr>
202
    </thead>
203
    </thead>
203
    <tbody>
204
    <tbody>
Lines 205-221 Link Here
205
        <tr>
206
        <tr>
206
            <td><b>[% loo.tagfield %]</b></td>
207
            <td><b>[% loo.tagfield %]</b></td>
207
            <td>[% loo.liblibrarian %]</td>
208
            <td>[% loo.liblibrarian %]</td>
208
            <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
209
            <td>[% IF ( loo.repeatable ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
209
            <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
210
            <td>[% IF ( loo.mandatory ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
210
            <td>[% loo.authorised_value %]</td>
211
            <td>[% loo.authorised_value %]</td>
211
            <td>
212
            <td>
212
                <div class="dropdown">
213
                <div class="dropdown">
213
                    <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
214
                    <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
214
                        Actions <b class="caret"></b></a>
215
                        [% t('Actions') %] <b class="caret"></b></a>
215
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield %]">
216
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield %]">
216
                        <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
217
                        <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> [% t('Subfields') %]</a></li>
217
                        <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
218
                        <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
218
                        <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
219
                        <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
219
                    </ul>
220
                    </ul>
220
                </div>
221
                </div>
221
            </td>
222
            </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-70 / +71 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Authorized values
5
<title>[% t('Koha › Administration › Authorized values') %]
5
[% IF op == 'add_form' %]
6
[% IF op == 'add_form' %]
6
  [% IF ( action_modify ) %] &rsaquo; Modify authorized value[% END %]
7
  [% IF ( action_modify ) %] [% t('› Modify authorized value') %][% END %]
7
  [% IF ( action_add_value ) %] &rsaquo;  New authorized value[% END %]
8
  [% IF ( action_add_value ) %] ›  [% t('New authorized value') %][% END %]
8
  [% IF ( action_add_category ) %] &rsaquo; New category[% END %]
9
  [% IF ( action_add_category ) %] [% t('› New category') %][% END %]
9
[% END %]
10
[% END %]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 23-32 Link Here
23
<body id="admin_authorised_values" class="admin">
24
<body id="admin_authorised_values" class="admin">
24
[% INCLUDE 'header.inc' %]
25
[% INCLUDE 'header.inc' %]
25
[% INCLUDE 'prefs-admin-search.inc' %]
26
[% INCLUDE 'prefs-admin-search.inc' %]
26
<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 op == 'add_form' %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo; [% IF ( action_modify ) %]Modify authorized value[% END %]
27
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/authorised_values.pl">[% t('Authorized values') %]</a> › [% IF ( action_modify ) %][% t('Modify authorized value') %][% END %]
27
	   [% IF ( action_add_value ) %]New authorized value[% END %]
28
	   [% IF ( action_add_value ) %][% t('New authorized value') %][% END %]
28
	   [% IF ( action_add_category ) %]New category[% END %][% END %]
29
	   [% IF ( action_add_category ) %][% t('New category') %][% END %][% END %]
29
[% IF op == 'list' %]Authorized values[% END %]</div>
30
[% IF op == 'list' %][% t('Authorized values') %][% END %]</div>
30
31
31
<div id="doc3" class="yui-t2">
32
<div id="doc3" class="yui-t2">
32
   
33
   
Lines 36-79 Link Here
36
37
37
[% IF op == 'add_form' %]
38
[% IF op == 'add_form' %]
38
	<h1>
39
	<h1>
39
	   [% IF ( action_modify ) %]Modify authorized value[% END %]
40
	   [% IF ( action_modify ) %][% t('Modify authorized value') %][% END %]
40
	   [% IF ( action_add_value ) %]New authorized value[% END %]
41
	   [% IF ( action_add_value ) %][% t('New authorized value') %][% END %]
41
	   [% IF ( action_add_category ) %]New category[% END %]
42
	   [% IF ( action_add_category ) %][% t('New category') %][% END %]
42
	</h1>
43
	</h1>
43
44
44
    [% IF ( action_modify ) %]<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>[% END %]
45
    [% IF ( action_modify ) %]<div class="note"><i class="fa fa-exclamation"></i> <strong>[% t('NOTE:') %]</strong> [% t('If you change an authorized value code, existing records using it won\'t be updated. Changes to value descriptions will show immediately.') %]</div>[% END %]
45
46
46
 <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post" class="validated">
47
 <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post" class="validated">
47
        <fieldset class="rows"><ol>
48
        <fieldset class="rows"><ol>
48
        [% IF action_add_category %]
49
        [% IF action_add_category %]
49
            <li>
50
            <li>
50
                <label for="category" class="required">Category: </label>
51
                <label for="category" class="required">[% t('Category:') %] </label>
51
                <input type="text" name="category"  id="category" size="32" maxlength="32" class="focus required" />
52
                <input type="text" name="category" id="category" size="32" maxlength="32" class="focus required" />
52
                <span class="required">Required</span>
53
                <span class="required">[% t('Required') %]</span>
53
                <input type="hidden" name="op" value="add_category" />
54
                <input type="hidden" name="op" value="add_category" />
54
            </li>
55
            </li>
55
        [% ELSE %]
56
        [% ELSE %]
56
            <li>
57
            <li>
57
                <span class="label">Category</span>
58
                <span class="label">[% t('Category') %]</span>
58
                <input type="hidden" name="op" value="add" />
59
                <input type="hidden" name="op" value="add" />
59
                <input type="hidden" name="category" value="[% category | html %]" /> [% category | html %]
60
                <input type="hidden" name="category" value="[% category | html %]" /> [% category | html %]
60
            </li>
61
            </li>
61
        <li>
62
        <li>
62
            <label for="authorised_value">Authorized value: </label>
63
            <label for="authorised_value">[% t('Authorized value:') %] </label>
63
            [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
64
            [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
64
            <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value | html %]" maxlength="80" class="focus" />
65
            <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value | html %]" maxlength="80" class="focus" />
65
        </li>
66
        </li>
66
        <li>
67
        <li>
67
            <label for="lib">Description: </label>
68
            <label for="lib">[% t('Description:') %] </label>
68
            <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
69
            <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
69
        </li>
70
        </li>
70
	<li>
71
	<li>
71
            <label for="lib_opac">Description (OPAC): </label>
72
            <label for="lib_opac">[% t('Description (OPAC):') %] </label>
72
            <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
73
            <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
73
        </li>
74
        </li>
74
        <li><label for="branches">Libraries limitation: </label>
75
        <li><label for="branches">[% t('Libraries limitation:') %] </label>
75
            <select id="branches" name="branches" multiple size="10">
76
            <select id="branches" name="branches" multiple="" size="10">
76
                <option value="">All libraries</option>
77
                <option value="">[% t('All libraries') %]</option>
77
                [% FOREACH branch IN branches_loop %]
78
                [% FOREACH branch IN branches_loop %]
78
                  [% IF ( branch.selected ) %]
79
                  [% IF ( branch.selected ) %]
79
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
80
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
Lines 82-101 Link Here
82
                  [% END %]
83
                  [% END %]
83
                [% END %]
84
                [% END %]
84
            </select>
85
            </select>
85
            <span>Select 'All libraries' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.</span>
86
            <span>[% t('Select \'All libraries\' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.') %]</span>
86
        </li>
87
        </li>
87
88
88
		</ol>
89
		</ol>
89
        <div id="icons" class="toptabs" style="clear:both">
90
        <div id="icons" class="toptabs" style="clear:both">
90
        <h5 style="margin-left:10px;">Choose an icon:</h5>
91
        <h5 style="margin-left:10px;">[% t('Choose an icon:') %]</h5>
91
			<ul>
92
			<ul>
92
                  <li><a href="#none">None</a></li>
93
                  <li><a href="#none">[% t('None') %]</a></li>
93
				  [% FOREACH imageset IN imagesets %]
94
				  [% FOREACH imageset IN imagesets %]
94
                        [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
95
                        [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
95
				  [% END %]
96
				  [% END %]
96
			</ul>
97
			</ul>
97
  <div id="none"><ul>
98
  <div id="none"><ul>
98
  <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
99
  <li><label for="noimage">[% t('No image:') %] </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
99
  </ul>
100
  </ul>
100
  <br class="clear" /></div>
101
  <br class="clear" /></div>
101
  [% FOREACH imageset IN imagesets %]
102
  [% FOREACH imageset IN imagesets %]
Lines 123-129 Link Here
123
        [% END %]
124
        [% END %]
124
        </fieldset>
125
        </fieldset>
125
       <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
126
       <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
126
        <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category | url %]">Cancel</a></fieldset>
127
        <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category | url %]">[% t('Cancel') %]</a></fieldset>
127
    </form>
128
    </form>
128
[% END %]
129
[% END %]
129
130
Lines 131-168 Link Here
131
[% IF op == 'list' %]
132
[% IF op == 'list' %]
132
133
133
<div id="toolbar" class="btn-toolbar">
134
<div id="toolbar" class="btn-toolbar">
134
    <a id="addauth" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=[% category | url %]"><i class="fa fa-plus"> </i> New authorized value for [% category |html %]</a>
135
    <a id="addauth" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category | url %]"><i class="fa fa-plus"> </i> [% t('New authorized value for') %] [% category |html %]</a>
135
    <a id="addcat" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> New category</a>
136
    <a id="addcat" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> [% t('New category') %]</a>
136
</div>
137
</div>
137
138
138
<h1>Authorized values</h1>
139
<h1>[% t('Authorized values') %]</h1>
139
<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>
140
<div class="note"><i class="fa fa-exclamation"></i> <strong>[% t('NOTE:') %]</strong> [% t('If you change an authorized value code, existing records using it won\'t be updated. Changes to value descriptions will show immediately.') %]</div>
140
141
141
[% FOR m IN messages %]
142
[% FOR m IN messages %]
142
    <div class="dialog [% m.type %]">
143
    <div class="dialog [% m.type %]">
143
        [% SWITCH m.code %]
144
        [% SWITCH m.code %]
144
        [% CASE 'error_on_update' %]
145
        [% CASE 'error_on_update' %]
145
            An error occurred when updating this authorized value. Perhaps the value already exists.
146
            [% t('An error occurred when updating this authorized value. Perhaps the value already exists.') %]
146
        [% CASE 'error_on_insert' %]
147
        [% CASE 'error_on_insert' %]
147
            An error occurred when inserting this authorized value. Perhaps the value or the category already exists.
148
            [% t('An error occurred when inserting this authorized value. Perhaps the value or the category already exists.') %]
148
        [% CASE 'error_on_insert_cat' %]
149
        [% CASE 'error_on_insert_cat' %]
149
            An error occurred when inserting this authorized value category. Perhaps the category name already exists.
150
            [% t('An error occurred when inserting this authorized value category. Perhaps the category name already exists.') %]
150
        [% CASE 'error_on_delete' %]
151
        [% CASE 'error_on_delete' %]
151
            An error occurred when deleting this authorized value. Check the logs.
152
            [% t('An error occurred when deleting this authorized value. Check the logs.') %]
152
        [% CASE 'success_on_update' %]
153
        [% CASE 'success_on_update' %]
153
            Authorized value updated successfully.
154
            [% t('Authorized value updated successfully.') %]
154
        [% CASE 'success_on_insert' %]
155
        [% CASE 'success_on_insert' %]
155
            Authorized value added successfully.
156
            [% t('Authorized value added successfully.') %]
156
        [% CASE 'success_on_insert_cat' %]
157
        [% CASE 'success_on_insert_cat' %]
157
            Authorized value category added successfully.
158
            [% t('Authorized value category added successfully.') %]
158
        [% CASE 'success_on_delete' %]
159
        [% CASE 'success_on_delete' %]
159
            Authorized value deleted successfully.
160
            [% t('Authorized value deleted successfully.') %]
160
        [% CASE 'already_exists' %]
161
        [% CASE 'already_exists' %]
161
            This authorized value already exists.
162
            [% t('This authorized value already exists.') %]
162
        [% CASE 'cat_already_exists' %]
163
        [% CASE 'cat_already_exists' %]
163
            This authorized value category already exists.
164
            [% t('This authorized value category already exists.') %]
164
        [% CASE 'invalid_category_name' %]
165
        [% CASE 'invalid_category_name' %]
165
            The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid.
166
            [% t('The authorized value category \'branches\', \'itemtypes\' and \'cn_source\' are used internally by Koha and are not valid.') %]
166
        [% CASE %]
167
        [% CASE %]
167
            [% m.code %]
168
            [% m.code %]
168
        [% END %]
169
        [% END %]
Lines 170-176 Link Here
170
[% END %]
171
[% END %]
171
172
172
<form action="/cgi-bin/koha/admin/authorised_values.pl" method="post" id="category">
173
<form action="/cgi-bin/koha/admin/authorised_values.pl" method="post" id="category">
173
  <label for="searchfield">Show category: </label>
174
  <label for="searchfield">[% t('Show category:') %] </label>
174
  <select name="searchfield" id="searchfield" size="1">
175
  <select name="searchfield" id="searchfield" size="1">
175
  [% FOR c IN categories %]
176
  [% FOR c IN categories %]
176
    [% IF c == searchfield %]
177
    [% IF c == searchfield %]
Lines 182-235 Link Here
182
  <input type="submit" value="Submit" />
183
  <input type="submit" value="Submit" />
183
</form>
184
</form>
184
[% IF ( category == 'Bsort1' ) %]
185
[% IF ( category == 'Bsort1' ) %]
185
    <p>An authorized value attached to patrons, that can be used for stats purposes</p>
186
    <p>[% t('An authorized value attached to patrons, that can be used for stats purposes') %]</p>
186
[% END %]
187
[% END %]
187
[% IF ( category == 'Bsort2' ) %]
188
[% IF ( category == 'Bsort2' ) %]
188
    <p>An authorized value attached to patrons, that can be used for stats purposes</p>
189
    <p>[% t('An authorized value attached to patrons, that can be used for stats purposes') %]</p>
189
[% END %]
190
[% END %]
190
[% IF ( category == 'Asort1' ) %]
191
[% IF ( category == 'Asort1' ) %]
191
    <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
192
    <p>[% t('An authorized value attached to acquisitions, that can be used for stats purposes') %]</p>
192
[% END %]
193
[% END %]
193
[% IF ( category == 'Asort2' ) %]
194
[% IF ( category == 'Asort2' ) %]
194
    <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
195
    <p>[% t('An authorized value attached to acquisitions, that can be used for stats purposes') %]</p>
195
[% END %]
196
[% END %]
196
[% IF ( category == 'SUGGEST' ) %]
197
[% IF ( category == 'SUGGEST' ) %]
197
    <p>Reasons to reject or accept patron suggestions</p>
198
    <p>[% t('Reasons to reject or accept patron suggestions') %]</p>
198
[% END %]
199
[% END %]
199
[% IF ( category == 'DAMAGED' ) %]
200
[% IF ( category == 'DAMAGED' ) %]
200
    <p>Statuses to describe a damaged item</p>
201
    <p>[% t('Statuses to describe a damaged item') %]</p>
201
[% END %]
202
[% END %]
202
[% IF ( category == 'LOST' ) %]
203
[% IF ( category == 'LOST' ) %]
203
   <p>Statuses to describe a lost item</p>
204
   <p>[% t('Statuses to describe a lost item') %]</p>
204
[% END %]
205
[% END %]
205
[% IF ( category == 'MANUAL_INV' ) %]
206
[% IF ( category == 'MANUAL_INV' ) %]
206
    <p>Additional values for manual invoice types</p>
207
    <p>[% t('Additional values for manual invoice types') %]</p>
207
[% END %]
208
[% END %]
208
[% IF ( category == 'BOR_NOTES' ) %]
209
[% IF ( category == 'BOR_NOTES' ) %]
209
    <p>Values for custom patron notes</p>
210
    <p>[% t('Values for custom patron notes') %]</p>
210
[% END %]
211
[% END %]
211
[% IF ( category == 'LOC' ) %]
212
[% IF ( category == 'LOC' ) %]
212
    <p>Values for shelving locations</p>
213
    <p>[% t('Values for shelving locations') %]</p>
213
[% END %]
214
[% END %]
214
[% IF ( category == 'CCODE' ) %]
215
[% IF ( category == 'CCODE' ) %]
215
    <p>Values for collection codes</p>
216
    <p>[% t('Values for collection codes') %]</p>
216
 [% END %]
217
 [% END %]
217
 [% IF ( category == 'NOT_LOAN' ) %]
218
 [% IF ( category == 'NOT_LOAN' ) %]
218
    <p>Statuses to describe why an item is not for loan</p>
219
    <p>[% t('Statuses to describe why an item is not for loan') %]</p>
219
 [% END %]
220
 [% END %]
220
<h3>Authorized values for category [% category |html %]:</h3>
221
<h3>[% t('Authorized values for category') %] [% category |html %]:</h3>
221
222
222
[% IF ( loop ) %]<div id="pagertable_authorized_values">
223
[% IF ( loop ) %]<div id="pagertable_authorized_values">
223
</div>[% END %]
224
</div>[% END %]
224
225
225
[% IF ( loop ) %]<table id="table_authorized_values">
226
[% IF ( loop ) %]<table id="table_authorized_values">
226
<thead><tr>
227
<thead><tr>
227
	<th>Authorized value</th>
228
	<th>[% t('Authorized value') %]</th>
228
	<th>Description</th>
229
	<th>[% t('Description') %]</th>
229
	<th>Description (OPAC)</th>
230
	<th>[% t('Description (OPAC)') %]</th>
230
	<th>Icon</th>
231
	<th>[% t('Icon') %]</th>
231
    <th>Branches limitations</th>
232
    <th>[% t('Branches limitations') %]</th>
232
    <th>Actions</th>
233
    <th>[% t('Actions') %]</th>
233
	</tr>
234
	</tr>
234
</thead><tbody>
235
</thead><tbody>
235
[% FOREACH loo IN loop %]
236
[% FOREACH loo IN loop %]
Lines 241-247 Link Here
241
	<td>[% loo.authorised_value | html %]</td>
242
	<td>[% loo.authorised_value | html %]</td>
242
    <td>[% loo.lib |html %]</td>
243
    <td>[% loo.lib |html %]</td>
243
    <td>[% loo.lib_opac |html %]</td>
244
    <td>[% loo.lib_opac |html %]</td>
244
	<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %]&nbsp;[% END %]</td>
245
	<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt="" />[% ELSE %] [% END %]</td>
245
    <td>
246
    <td>
246
        [% IF loo.branches.size > 0 %]
247
        [% IF loo.branches.size > 0 %]
247
            [% branches_str = "" %]
248
            [% branches_str = "" %]
Lines 250-275 Link Here
250
            [% END %]
251
            [% END %]
251
            <span href="#" title="[% branches_str %]">
252
            <span href="#" title="[% branches_str %]">
252
                [% IF loo.branches.size > 1 %]
253
                [% IF loo.branches.size > 1 %]
253
                    [% loo.branches.size %] branches limitations
254
                    [% loo.branches.size %] [% t('branches limitations') %]
254
                [% ELSE %]
255
                [% ELSE %]
255
                    [% loo.branches.size %] branch limitation
256
                    [% loo.branches.size %] [% t('branch limitation') %]
256
                [% END %]
257
                [% END %]
257
        [% ELSE %]
258
        [% ELSE %]
258
            No limitation
259
            [% t('No limitation') %]
259
        [% END %]
260
        [% END %]
260
    </td>
261
    </td>
261
    <td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;id=[% loo.id %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
262
    <td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% loo.id %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
262
    <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&amp;searchfield=[% searchfield | url %]&amp;id=[% loo.id %]"><i class="fa fa-trash"></i> Delete</a></td>
263
    <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield | url %]&id=[% loo.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
263
</tr>
264
</tr>
264
[% END %]
265
[% END %]
265
</tbody></table>[% ELSE %]
266
</tbody></table>[% ELSE %]
266
<div class="dialog message">There are no authorized values defined for [% category |html %]</div>
267
<div class="dialog message">[% t('There are no authorized values defined for') %] [% category |html %]</div>
267
[% END %]
268
[% END %]
268
269
269
[% IF ( isprevpage ) %]
270
[% IF ( isprevpage ) %]
270
<form class="inline" action="/cgi-bin/koha/admin/authorised_values.pl" method="post">
271
<form class="inline" action="/cgi-bin/koha/admin/authorised_values.pl" method="post">
271
<input type="hidden" name="searchfield" value="[% searchfield | html %]" />
272
<input type="hidden" name="searchfield" value="[% searchfield | html %]" />
272
	<input type="submit" value="&lt;&lt; Previous" /></form>
273
	<input type="submit" value="<< Previous" /></form>
273
[% END %] 
274
[% END %] 
274
275
275
[% END %]
276
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-43 / +44 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Authority types
5
<title>[% t('Koha › Administration › Authority types') %]
5
[% IF op == 'add_form' %]
6
[% IF op == 'add_form' %]
6
&rsaquo; [% IF authority_type.authtypecode.defined %]Modify authority type[% ELSE %]New authority type[% END %]
7
› [% IF authority_type.authtypecode.defined %][% t('Modify authority type') %][% ELSE %][% t('New authority type') %][% END %]
7
[% ELSIF op == 'delete_confirm' %]
8
[% ELSIF op == 'delete_confirm' %]
8
&rsaquo; Confirm deletion of authority type
9
[% t('› Confirm deletion of authority type') %]
9
[% END %]
10
[% END %]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 17-29 Link Here
17
[% INCLUDE 'prefs-admin-search.inc' %]
18
[% INCLUDE 'prefs-admin-search.inc' %]
18
19
19
<div id="breadcrumbs">
20
<div id="breadcrumbs">
20
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
21
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
22
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
22
&rsaquo; <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
23
› <a href="/cgi-bin/koha/admin/authtypes.pl">[% t('Authority types') %]</a>
23
[% IF op == 'add_form' %]
24
[% IF op == 'add_form' %]
24
&rsaquo; [% IF authority_type.authtypecode.defined %]Modify[% ELSE %]New[% END %] Authority type
25
› [% IF authority_type.authtypecode.defined %][% t('Modify') %][% ELSE %][% t('New') %][% END %] [% t('Authority type') %]
25
[% ELSIF op == 'delete_confirm' %]
26
[% ELSIF op == 'delete_confirm' %]
26
&rsaquo; Confirm deletion of authority type
27
[% t('› Confirm deletion of authority type') %]
27
[% END %]
28
[% END %]
28
</div>
29
</div>
29
30
Lines 36-52 Link Here
36
    <div class="dialog [% m.type %]">
37
    <div class="dialog [% m.type %]">
37
        [% SWITCH m.code %]
38
        [% SWITCH m.code %]
38
        [% CASE 'error_on_update' %]
39
        [% CASE 'error_on_update' %]
39
            An error occurred when updating this authority type. Perhaps it already exists.
40
            [% t('An error occurred when updating this authority type. Perhaps it already exists.') %]
40
        [% CASE 'error_on_insert' %]
41
        [% CASE 'error_on_insert' %]
41
            An error occurred when adding this authority type. The authority type code might already exist.
42
            [% t('An error occurred when adding this authority type. The authority type code might already exist.') %]
42
        [% CASE 'error_on_delete' %]
43
        [% CASE 'error_on_delete' %]
43
            An error occurred when deleting this authority type. Check the logs.
44
            [% t('An error occurred when deleting this authority type. Check the logs.') %]
44
        [% CASE 'success_on_update' %]
45
        [% CASE 'success_on_update' %]
45
            Authority type updated successfully.
46
            [% t('Authority type updated successfully.') %]
46
        [% CASE 'success_on_insert' %]
47
        [% CASE 'success_on_insert' %]
47
            Authority type added successfully.
48
            [% t('Authority type added successfully.') %]
48
        [% CASE 'success_on_delete' %]
49
        [% CASE 'success_on_delete' %]
49
            Authority type deleted successfully.
50
            [% t('Authority type deleted successfully.') %]
50
        [% CASE %]
51
        [% CASE %]
51
            [% m.code %]
52
            [% m.code %]
52
        [% END %]
53
        [% END %]
Lines 60-95 Link Here
60
        <fieldset class="rows">
61
        <fieldset class="rows">
61
            <legend>
62
            <legend>
62
                [% IF authority_type.authtypecode.defined %]
63
                [% IF authority_type.authtypecode.defined %]
63
                    Modify authority type
64
                    [% t('Modify authority type') %]
64
                [% ELSE %]
65
                [% ELSE %]
65
                    New authority type
66
                    [% t('New authority type') %]
66
                [% END %]
67
                [% END %]
67
            </legend>
68
            </legend>
68
            <ol>
69
            <ol>
69
                <li>
70
                <li>
70
                    [% IF authority_type.authtypecode.defined %]
71
                    [% IF authority_type.authtypecode.defined %]
71
                            <span class="label">Authority type</span>
72
                            <span class="label">[% t('Authority type') %]</span>
72
                            <input type="hidden" name="op" value="add_validate" />
73
                            <input type="hidden" name="op" value="add_validate" />
73
                            <input type="hidden" name="checked" value="0" />
74
                            <input type="hidden" name="checked" value="0" />
74
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />[% authority_type.authtypecode %]
75
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />[% authority_type.authtypecode %]
75
                    [% ELSE %]
76
                    [% ELSE %]
76
                            <label for="authtypecode" class="required">Authority type: </label>
77
                            <label for="authtypecode" class="required">[% t('Authority type:') %] </label>
77
                            <input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="10" maxlength="10" />
78
                            <input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="10" maxlength="10" />
78
                            <span class="required">Required</span>
79
                            <span class="required">[% t('Required') %]</span>
79
                    [% END %]
80
                    [% END %]
80
                </li>
81
                </li>
81
                <li>
82
                <li>
82
                    <label for="authtypetext" class="required">Description: </label>
83
                    <label for="authtypetext" class="required">[% t('Description:') %] </label>
83
                    <input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authority_type.authtypetext |html %]" class="required" required="required" />
84
                    <input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authority_type.authtypetext |html %]" class="required" required="required" />
84
                    <span class="required">Required</span>
85
                    <span class="required">[% t('Required') %]</span>
85
                </li>
86
                </li>
86
                <li>
87
                <li>
87
                    <label for="summary">Summary: </label>
88
                    <label for="summary">[% t('Summary:') %] </label>
88
                    <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary %]</textarea>
89
                    <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary %]</textarea>
89
                </li>
90
                </li>
90
                <li>
91
                <li>
91
                    <p class="tip">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</p>
92
                    <p class="tip">[% t('Note: for \'Authority field to copy\', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record') %]</p>
92
                    <label for="auth_tag_to_report">Authority field to copy: </label>
93
                    <label for="auth_tag_to_report">[% t('Authority field to copy:') %] </label>
93
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
94
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
94
                    <input type="hidden" name="op" value="add_validate" />
95
                    <input type="hidden" name="op" value="add_validate" />
95
                    [% IF authority_type.authtypecode.defined %]
96
                    [% IF authority_type.authtypecode.defined %]
Lines 100-106 Link Here
100
        </fieldset>
101
        </fieldset>
101
        <fieldset class="action">
102
        <fieldset class="action">
102
            <input type="submit" value="Submit" />
103
            <input type="submit" value="Submit" />
103
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Cancel</a>
104
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">[% t('Cancel') %]</a>
104
        </fieldset>
105
        </fieldset>
105
    </form>
106
    </form>
106
[% END %]
107
[% END %]
Lines 108-125 Link Here
108
[% IF op == 'delete_confirm' %]
109
[% IF op == 'delete_confirm' %]
109
    <div class="dialog alert">
110
    <div class="dialog alert">
110
        [% IF authorities_using_it %]
111
        [% IF authorities_using_it %]
111
            <h3>This authority type cannot be deleted</h3>
112
            <h3>[% t('This authority type cannot be deleted') %]</h3>
112
            <p>This record is used <strong>[% authorities_using_it %]</strong> times</p>
113
            <p>[% t('This record is used') %] <strong>[% authorities_using_it %]</strong> [% t('times') %]</p>
113
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Back to the list</a>
114
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">[% t('Back to the list') %]</a>
114
        [% ELSE %]
115
        [% ELSE %]
115
            <h3>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext %]' ([% authority_type.authtypecode %])</span></h3>
116
            <h3>[% t('Confirm deletion of authority structure definition for') %] <span class="ex">'[% authority_type.authtypetext %]' ([% authority_type.authtypecode %])</span></h3>
116
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
117
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
117
                <input type="hidden" name="op" value="delete_confirmed" />
118
                <input type="hidden" name="op" value="delete_confirmed" />
118
                <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />
119
                <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />
119
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
120
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
120
            </form>
121
            </form>
121
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="get">
122
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="get">
122
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
123
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
123
            </form>
124
            </form>
124
        [% END %]
125
        [% END %]
125
    </div>
126
    </div>
Lines 127-145 Link Here
127
128
128
[% IF op == 'list' %]
129
[% IF op == 'list' %]
129
    <div id="toolbar" class="btn-toolbar">
130
    <div id="toolbar" class="btn-toolbar">
130
        <a id="authtype" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/authtypes.pl?op=add_form"><i class="fa fa-plus"></i> New authority type</a>
131
        <a id="authtype" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/authtypes.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New authority type') %]</a>
131
    </div>
132
    </div>
132
133
133
    <h1>Authority types</h1>
134
    <h1>[% t('Authority types') %]</h1>
134
    <p>Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins</p>
135
    <p>[% t('Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins') %]</p>
135
    <table id="authtypes">
136
    <table id="authtypes">
136
        <thead>
137
        <thead>
137
        <tr>
138
        <tr>
138
            <th>Code</th>
139
            <th>[% t('Code') %]</th>
139
            <th>Description</th>
140
            <th>[% t('Description') %]</th>
140
            <th>Summary</th>
141
            <th>[% t('Summary') %]</th>
141
            <th>Auth field copied</th>
142
            <th>[% t('Auth field copied') %]</th>
142
            <th>&nbsp;</th>
143
            <th> </th>
143
        </tr>
144
        </tr>
144
        </thead>
145
        </thead>
145
        <tbody>
146
        <tbody>
Lines 152-162 Link Here
152
                <td>
153
                <td>
153
                  <div class="dropdown">
154
                  <div class="dropdown">
154
                    <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode %]" role="button" data-toggle="dropdown" href="#">
155
                    <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode %]" role="button" data-toggle="dropdown" href="#">
155
                      Actions <b class="caret"></b></a>
156
                      [% t('Actions') %] <b class="caret"></b></a>
156
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode %]">
157
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode %]">
157
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
158
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode %]" class="button parameters"><i class="fa fa-eye"></i> [% t('MARC structure') %]</a></li>
158
                      <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-pencil"></i> Edit</a></li>
159
                      <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
159
                      [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&amp;authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %]
160
                      [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>[% END %]
160
                    </ul>
161
                    </ul>
161
                  </div>
162
                  </div>
162
                </td>
163
                </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-67 / +68 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; MARC frameworks
5
<title>[% t('Koha › Administration › MARC frameworks') %]
5
[% IF op == 'add_form' %]
6
[% IF op == 'add_form' %]
6
&rsaquo; [% IF framework %]Modify framework text[% ELSE %]Add framework[% END %]
7
› [% IF framework %][% t('Modify framework text') %][% ELSE %][% t('Add framework') %][% END %]
7
[% ELSIF op == 'delete_confirm' %]
8
[% ELSIF op == 'delete_confirm' %]
8
&rsaquo; Delete framework for [% framework.frameworktext |html %] ([% framework.frameworkcode %])?
9
[% t('› Delete framework for') %] [% framework.frameworktext |html %] ([% framework.frameworkcode %])?
9
[% END %]
10
[% END %]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 17-29 Link Here
17
[% INCLUDE 'prefs-admin-search.inc' %]
18
[% INCLUDE 'prefs-admin-search.inc' %]
18
19
19
<div id="breadcrumbs">
20
<div id="breadcrumbs">
20
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
21
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
22
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
22
&rsaquo; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
23
› <a href="/cgi-bin/koha/admin/biblio_framework.pl">[% t('MARC frameworks') %]</a>
23
[% IF op == 'add_form' %]
24
[% IF op == 'add_form' %]
24
&rsaquo; [% IF framework %]Modify framework text[% ELSE %]Add framework[% END %]
25
› [% IF framework %][% t('Modify framework text') %][% ELSE %][% t('Add framework') %][% END %]
25
[% ELSIF op == 'delete_confirm' %]
26
[% ELSIF op == 'delete_confirm' %]
26
&rsaquo; Delete framework for [% framework.frameworktext |html %] ([% framework.frameworkcode %])?
27
[% t('› Delete framework for') %] [% framework.frameworktext |html %] ([% framework.frameworkcode %])?
27
[% END %]
28
[% END %]
28
</div>
29
</div>
29
30
Lines 36-54 Link Here
36
    <div class="dialog [% m.type %]">
37
    <div class="dialog [% m.type %]">
37
        [% SWITCH m.code %]
38
        [% SWITCH m.code %]
38
        [% CASE 'error_on_update' %]
39
        [% CASE 'error_on_update' %]
39
            An error occurred when updating this framework. Perhaps it already exists.
40
            [% t('An error occurred when updating this framework. Perhaps it already exists.') %]
40
        [% CASE 'error_on_insert' %]
41
        [% CASE 'error_on_insert' %]
41
            An error occurred when adding this framework. The framework might already exist.
42
            [% t('An error occurred when adding this framework. The framework might already exist.') %]
42
        [% CASE 'error_on_delete' %]
43
        [% CASE 'error_on_delete' %]
43
            An error occurred when deleting this framework. Check the logs.
44
            [% t('An error occurred when deleting this framework. Check the logs.') %]
44
        [% CASE 'success_on_update' %]
45
        [% CASE 'success_on_update' %]
45
            Framework updated successfully.
46
            [% t('Framework updated successfully.') %]
46
        [% CASE 'success_on_insert' %]
47
        [% CASE 'success_on_insert' %]
47
            Framework added successfully.
48
            [% t('Framework added successfully.') %]
48
        [% CASE 'success_on_delete' %]
49
        [% CASE 'success_on_delete' %]
49
            Framework deleted successfully.
50
            [% t('Framework deleted successfully.') %]
50
        [% CASE 'already_exists' %]
51
        [% CASE 'already_exists' %]
51
            This framework code already exists.
52
            [% t('This framework code already exists.') %]
52
        [% CASE %]
53
        [% CASE %]
53
            [% m.code %]
54
            [% m.code %]
54
        [% END %]
55
        [% END %]
Lines 59-91 Link Here
59
60
60
[% IF op == 'list'%]
61
[% IF op == 'list'%]
61
    <div id="toolbar" class="btn-toolbar">
62
    <div id="toolbar" class="btn-toolbar">
62
        <a class="btn btn-default btn-sm" id="newframework" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form"><i class="fa fa-plus"></i> New framework</a>
63
        <a class="btn btn-default btn-sm" id="newframework" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New framework') %]</a>
63
    </div>
64
    </div>
64
[% END %]
65
[% END %]
65
66
66
[% IF op == 'add_form' %]
67
[% IF op == 'add_form' %]
67
    <h1>[% IF framework %]Modify framework text[% ELSE %]Add framework[% END %]</h1>
68
    <h1>[% IF framework %][% t('Modify framework text') %][% ELSE %][% t('Add framework') %][% END %]</h1>
68
    <form action="/cgi-bin/koha/admin/biblio_framework.pl" name="Aform" method="post" class="validated">
69
    <form action="/cgi-bin/koha/admin/biblio_framework.pl" name="Aform" method="post" class="validated">
69
        <input type="hidden" name="op" value="add_validate" />
70
        <input type="hidden" name="op" value="add_validate" />
70
        <fieldset class="rows">
71
        <fieldset class="rows">
71
            <ol>
72
            <ol>
72
                [% IF framework %]
73
                [% IF framework %]
73
                    <li>
74
                    <li>
74
                        <span class="label">Framework code: </span>
75
                        <span class="label">[% t('Framework code:') %] </span>
75
                        <input type="hidden" id="frameworkcode" name="frameworkcode" value="[% framework.frameworkcode %]" />[% framework.frameworkcode %]
76
                        <input type="hidden" id="frameworkcode" name="frameworkcode" value="[% framework.frameworkcode %]" />[% framework.frameworkcode %]
76
                        <input type="hidden" name="is_a_modif" value="1" />
77
                        <input type="hidden" name="is_a_modif" value="1" />
77
                    </li>
78
                    </li>
78
                [% ELSE %]
79
                [% ELSE %]
79
                    <li>
80
                    <li>
80
                        <label for="frameworkcode" class="required">Framework code: </label>
81
                        <label for="frameworkcode" class="required">[% t('Framework code:') %] </label>
81
                        <input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" required="required" class="required" />
82
                        <input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" required="required" class="required" />
82
                        <span class="required">Required</span>
83
                        <span class="required">[% t('Required') %]</span>
83
                    </li>
84
                    </li>
84
                [% END %]
85
                [% END %]
85
                <li>
86
                <li>
86
                    <label for="description" class="required">Description: </label>
87
                    <label for="description" class="required">[% t('Description:') %] </label>
87
                    <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="[% framework.frameworktext |html %]" required="required" class="required" />
88
                    <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="[% framework.frameworktext |html %]" required="required" class="required" />
88
                    <span class="required">Required</span>
89
                    <span class="required">[% t('Required') %]</span>
89
                </li>
90
                </li>
90
            </ol>
91
            </ol>
91
        </fieldset>
92
        </fieldset>
Lines 98-149 Link Here
98
[% IF op == 'delete_confirm' %]
99
[% IF op == 'delete_confirm' %]
99
    <div class="dialog alert">
100
    <div class="dialog alert">
100
        [% IF biblios_use_this_framework %]
101
        [% IF biblios_use_this_framework %]
101
            <h3>This framework cannot be deleted</h3>
102
            <h3>[% t('This framework cannot be deleted') %]</h3>
102
            <p><strong><span class="ex">[% framework.frameworktext |html %] ([% framework.frameworkcode %])</span></strong></p>
103
            <p><strong><span class="ex">[% framework.frameworktext |html %] ([% framework.frameworkcode %])</span></strong></p>
103
            <p>The framework is used [% biblios_use_this_framework %] times.</p>
104
            <p>[% t('The framework is used') %] [% biblios_use_this_framework %] [% t('times.') %]</p>
104
            <form action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
105
            <form action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
105
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> Return to frameworks</button>
106
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> [% t('Return to frameworks') %]</button>
106
            </form>
107
            </form>
107
        [% ELSE %]
108
        [% ELSE %]
108
            <h3>Delete framework for [% framework.frameworktext |html %] ([% framework.frameworkcode %])?</h3>
109
            <h3>[% t('Delete framework for') %] [% framework.frameworktext |html %] ([% framework.frameworkcode %])?</h3>
109
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="post">
110
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="post">
110
                <input type="hidden" name="op" value="delete_confirmed" />
111
                <input type="hidden" name="op" value="delete_confirmed" />
111
                <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
112
                <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
112
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this framework</button>
113
                <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this framework') %]</button>
113
            </form>
114
            </form>
114
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
115
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="get">
115
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
116
                <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
116
            </form>
117
            </form>
117
        [% END %]
118
        [% END %]
118
    </div>
119
    </div>
119
[% END %]
120
[% END %]
120
121
121
[% IF op == 'list' %]
122
[% IF op == 'list' %]
122
<h1>MARC frameworks</h1>
123
<h1>[% t('MARC frameworks') %]</h1>
123
<p>Framework name, then go to MARC biblio to set MARC editor parameters</p>
124
<p>[% t('Framework name, then go to MARC biblio to set MARC editor parameters') %]</p>
124
<table id="table_biblio_frameworks">
125
<table id="table_biblio_frameworks">
125
    <thead>
126
    <thead>
126
    <tr>
127
    <tr>
127
        <th>Code</th>
128
        <th>[% t('Code') %]</th>
128
        <th>Description</th>
129
        <th>[% t('Description') %]</th>
129
        <th>&nbsp;</th>
130
        <th> </th>
130
    </tr>
131
    </tr>
131
    </thead>
132
    </thead>
132
    <tbody>
133
    <tbody>
133
    <tr>
134
    <tr>
134
        <td>&nbsp;</td>
135
        <td> </td>
135
        <td>Default framework</td>
136
        <td>[% t('Default framework') %]</td>
136
        <td>
137
        <td>
137
          <div class="dropdown">
138
          <div class="dropdown">
138
            <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode %]" role="button" data-toggle="dropdown" href="#">
139
            <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode %]" role="button" data-toggle="dropdown" href="#">
139
              Actions <b class="caret"></b>
140
              [% t('Actions') %] <b class="caret"></b>
140
            </a>
141
            </a>
141
            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="frameworkactions[% loo.frameworkcode %]">
142
            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="frameworkactions[% loo.frameworkcode %]">
142
              <li><a href="marctagstructure.pl?frameworkcode="><i class="fa fa-eye"></i> MARC structure</a></li>
143
              <li><a href="marctagstructure.pl?frameworkcode="><i class="fa fa-eye"></i> [% t('MARC structure') %]</a></li>
143
              <!-- Trigger modal -->
144
              <!-- Trigger modal -->
144
              <li><a href="#" data-toggle="modal" data-target="#exportModal_default" title="Export framework structure (fields, subfields) to a spreadsheet file (.csv, .xml, .ods)"><i class="fa fa-upload"></i> Export</a></li>
145
              <li><a href="#" data-toggle="modal" data-target="#exportModal_default" title="[% t('Export framework structure (fields, subfields) to a spreadsheet file (.csv, .xml, .ods)') %]"><i class="fa fa-upload"></i> [% t('Export') %]</a></li>
145
              <!-- Trigger modal -->
146
              <!-- Trigger modal -->
146
              <li><a href="#" data-toggle="modal" data-target="#importModal_[% framework.frameworkcode %][% frameworks.count %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv, .xml, .ods)"><i class="fa fa-download"></i> Import</a></li>
147
              <li><a href="#" data-toggle="modal" data-target="#importModal_[% framework.frameworkcode %][% frameworks.count %]" title="[% t('Import framework structure (fields, subfields) from a spreadsheet file (.csv, .xml, .ods)') %]"><i class="fa fa-download"></i> [% t('Import') %]</a></li>
147
            </ul>
148
            </ul>
148
            <!-- Modal to export default framework -->
149
            <!-- Modal to export default framework -->
149
            <div class="modal" id="exportModal_default" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_default" aria-hidden="true">
150
            <div class="modal" id="exportModal_default" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_default" aria-hidden="true">
Lines 151-170 Link Here
151
              <div class="modal-content">
152
              <div class="modal-content">
152
              <div class="modal-header">
153
              <div class="modal-header">
153
                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
154
                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
154
                <h3 id="exportLabelexportModal_default">Export default framework</h3>
155
                <h3 id="exportLabelexportModal_default">[% t('Export default framework') %]</h3>
155
              </div>
156
              </div>
156
              <form action="import_export_framework.pl" name="form_defaul" method="get" target="_blank"  class="form_export">
157
              <form action="import_export_framework.pl" name="form_defaul" method="get" target="_blank" class="form_export">
157
                <div class="modal-body">
158
                <div class="modal-body">
158
                  <fieldset>
159
                  <fieldset>
159
                    <input type="hidden" name="frameworkcode" value="" />
160
                    <input type="hidden" name="frameworkcode" value="" />
160
                    <p><label for="csv_type_export_default"><input type="radio" name="type_export_default" value="csv" id="csv_type_export_default" checked="checked" /> Export to CSV spreadsheet</label></p>
161
                    <p><label for="csv_type_export_default"><input type="radio" name="type_export_default" value="csv" id="csv_type_export_default" checked="checked" /> [% t('Export to CSV spreadsheet') %]</label></p>
161
                    <p><label for="xml_type_export_default"><input type="radio" name="type_export_default" value="excel" id="xml_type_export_default" /> Export to Excel with XML format, compatible with OpenOffice/LibreOffice as well</label></p>
162
                    <p><label for="xml_type_export_default"><input type="radio" name="type_export_default" value="excel" id="xml_type_export_default" /> [% t('Export to Excel with XML format, compatible with OpenOffice/LibreOffice as well') %]</label></p>
162
                    <p><label for="ods_type_export_default"><input type="radio" name="type_export_default" value="ods" id="ods_type_export_default" /> Export to OpenDocument spreadsheet format</label></p>
163
                    <p><label for="ods_type_export_default"><input type="radio" name="type_export_default" value="ods" id="ods_type_export_default" /> [% t('Export to OpenDocument spreadsheet format') %]</label></p>
163
                  </fieldset>
164
                  </fieldset>
164
                </div>
165
                </div>
165
                <div class="modal-footer">
166
                <div class="modal-footer">
166
                  <button type="submit" class="btn btn-default">Export</button>
167
                  <button type="submit" class="btn btn-default">[% t('Export') %]</button>
167
                  <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
168
                  <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
168
                </div>
169
                </div>
169
              </form>
170
              </form>
170
              </div>
171
              </div>
Lines 177-194 Link Here
177
              <div class="modal-content">
178
              <div class="modal-content">
178
              <div class="modal-header">
179
              <div class="modal-header">
179
                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
180
                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
180
                <h3 id="importLabelexportModal_[% framework.frameworkcode %][% frameworks.count %]">Import default framework structure (fields and subfields) from a spreadsheet file (.csv, .xml, .ods)</h>
181
                <h3 id="importLabelexportModal_[% framework.frameworkcode %][% frameworks.count %]">[% t('Import default framework structure (fields and subfields) from a spreadsheet file (.csv, .xml, .ods)') %]</h>
181
              </div>
182
              </div>
182
              <form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_default" id="form_i_default" method="post" enctype="multipart/form-data" class="form_import">
183
              <form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_default" id="form_i_default" method="post" enctype="multipart/form-data" class="form_import">
183
                <div class="modal-body">
184
                <div class="modal-body">
184
                  <input type="hidden" name="frameworkcode" value="default" />
185
                  <input type="hidden" name="frameworkcode" value="default" />
185
                  <input type="hidden" name="action" value="import" />
186
                  <input type="hidden" name="action" value="import" />
186
                  <p><label for="file_import_default">Upload file:</label> <input type="file" name="file_import_default" id="file_import_default" class="input_import" /></p>
187
                  <p><label for="file_import_default">[% t('Upload file:') %]</label> <input type="file" name="file_import_default" id="file_import_default" class="input_import" /></p>
187
                    <div id="importing_default" style="display:none" class="importing"><img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
188
                    <div id="importing_default" style="display:none" class="importing"><img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
188
                </div>
189
                </div>
189
                <div class="modal-footer">
190
                <div class="modal-footer">
190
                  <button type="submit" class="btn btn-default">Import</button>
191
                  <button type="submit" class="btn btn-default">[% t('Import') %]</button>
191
                  <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
192
                  <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
192
                </div>
193
                </div>
193
              </form>
194
              </form>
194
              </div>
195
              </div>
Lines 205-220 Link Here
205
            <td>
206
            <td>
206
              <div class="dropdown">
207
              <div class="dropdown">
207
                <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode %]" role="button" data-toggle="dropdown" href="#">
208
                <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode %]" role="button" data-toggle="dropdown" href="#">
208
                  Actions <b class="caret"></b>
209
                  [% t('Actions') %] <b class="caret"></b>
209
                </a>
210
                </a>
210
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="frameworkactions[% loo.frameworkcode %]">
211
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="frameworkactions[% loo.frameworkcode %]">
211
                  <li><a href="marctagstructure.pl?frameworkcode=[% loo.frameworkcode %]"><i class="fa fa-eye"></i> MARC structure</a></li>
212
                  <li><a href="marctagstructure.pl?frameworkcode=[% loo.frameworkcode %]"><i class="fa fa-eye"></i> [% t('MARC structure') %]</a></li>
212
                  <li><a href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form&amp;frameworkcode=[% loo.frameworkcode |html %]"><i class="fa fa-pencil"></i> Edit</a></li>
213
                  <li><a href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form&frameworkcode=[% loo.frameworkcode |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
213
                  <li><a href="/cgi-bin/koha/admin/biblio_framework.pl?op=delete_confirm&amp;frameworkcode=[% loo.frameworkcode |html %]"><i class="fa fa-trash"></i> Delete</a></li>
214
                  <li><a href="/cgi-bin/koha/admin/biblio_framework.pl?op=delete_confirm&frameworkcode=[% loo.frameworkcode |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
214
                  <!-- Trigger modal -->
215
                  <!-- Trigger modal -->
215
                  <li><a href="#" data-toggle="modal" data-target="#exportModal_[% loo.frameworkcode %][% loop.count %]" title="Export framework structure (fields, subfields) to a spreadsheet file (.csv, .xml, .ods)"><i class="fa fa-upload"></i> Export</a></li>
216
                  <li><a href="#" data-toggle="modal" data-target="#exportModal_[% loo.frameworkcode %][% loop.count %]" title="[% t('Export framework structure (fields, subfields) to a spreadsheet file (.csv, .xml, .ods)') %]"><i class="fa fa-upload"></i> [% t('Export') %]</a></li>
216
                  <!-- Trigger modal -->
217
                  <!-- Trigger modal -->
217
                  <li><a href="#" data-toggle="modal" data-target="#importModal_[% loo.frameworkcode %][% loop.count %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv, .xml, .ods)"><i class="fa fa-download"></i> Import</a></li>
218
                  <li><a href="#" data-toggle="modal" data-target="#importModal_[% loo.frameworkcode %][% loop.count %]" title="[% t('Import framework structure (fields, subfields) from a spreadsheet file (.csv, .xml, .ods)') %]"><i class="fa fa-download"></i> [% t('Import') %]</a></li>
218
                </ul>
219
                </ul>
219
                <!-- Modal to export other framework -->
220
                <!-- Modal to export other framework -->
220
                <div class="modal" id="exportModal_[% loo.frameworkcode %][% loop.count %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% loo.frameworkcode %][% loop.count %]" aria-hidden="true">
221
                <div class="modal" id="exportModal_[% loo.frameworkcode %][% loop.count %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% loo.frameworkcode %][% loop.count %]" aria-hidden="true">
Lines 222-241 Link Here
222
                  <div class="modal-content">
223
                  <div class="modal-content">
223
                  <div class="modal-header">
224
                  <div class="modal-header">
224
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
225
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
225
                    <h3 id="exportLabelexportModal_[% loo.frameworkcode %][% loop.count %]">Export [% loo.frameworktext |html %] framework</h3>
226
                    <h3 id="exportLabelexportModal_[% loo.frameworkcode %][% loop.count %]">[% t('Export') %] [% loo.frameworktext |html %] [% t('framework') %]</h3>
226
                  </div>
227
                  </div>
227
                  <form action="import_export_framework.pl" name="form_[% loo.frameworkcode %]" method="get" target="_blank"  class="form_export">
228
                  <form action="import_export_framework.pl" name="form_[% loo.frameworkcode %]" method="get" target="_blank" class="form_export">
228
                    <div class="modal-body">
229
                    <div class="modal-body">
229
                      <fieldset>
230
                      <fieldset>
230
                        <input type="hidden" name="frameworkcode" value="[% loo.frameworkcode %]" />
231
                        <input type="hidden" name="frameworkcode" value="[% loo.frameworkcode %]" />
231
                        <p><label for="csv_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="csv" id="csv_type_export_[% loo.frameworkcode %][% loop.count %]" checked="checked" /> Export to CSV spreadsheet</label></p>
232
                        <p><label for="csv_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="csv" id="csv_type_export_[% loo.frameworkcode %][% loop.count %]" checked="checked" /> [% t('Export to CSV spreadsheet') %]</label></p>
232
                        <p><label for="xml_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="excel" id="xml_type_export_[% loo.frameworkcode %][% loop.count %]" /> Export to Excel with XML format, compatible with OpenOffice/LibreOffice as well</label></p>
233
                        <p><label for="xml_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="excel" id="xml_type_export_[% loo.frameworkcode %][% loop.count %]" /> [% t('Export to Excel with XML format, compatible with OpenOffice/LibreOffice as well') %]</label></p>
233
                        <p><label for="ods_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="ods" id="ods_type_export_[% loo.frameworkcode %][% loop.count %]" /> Export to OpenDocument spreadsheet format</label></p>
234
                        <p><label for="ods_type_export_[% loo.frameworkcode %][% loop.count %]"><input type="radio" name="type_export_[% loo.frameworkcode %]" value="ods" id="ods_type_export_[% loo.frameworkcode %][% loop.count %]" /> [% t('Export to OpenDocument spreadsheet format') %]</label></p>
234
                      </fieldset>
235
                      </fieldset>
235
                    </div>
236
                    </div>
236
                    <div class="modal-footer">
237
                    <div class="modal-footer">
237
                      <button type="submit" class="btn btn-default">Export</button>
238
                      <button type="submit" class="btn btn-default">[% t('Export') %]</button>
238
                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
239
                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
239
                    </div>
240
                    </div>
240
                  </form>
241
                  </form>
241
                  </div>
242
                  </div>
Lines 248-265 Link Here
248
                  <div class="modal-content">
249
                  <div class="modal-content">
249
                  <div class="modal-header">
250
                  <div class="modal-header">
250
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
251
                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
251
                    <h3 id="importLabelexportModal_[% loo.frameworkcode %][% loop.count %]">Import [% loo.frameworkcode %] framework structure (fields and subfields) from a spreadsheet file (.csv, .xml, .ods)</h3>
252
                    <h3 id="importLabelexportModal_[% loo.frameworkcode %][% loop.count %]">[% t('Import') %] [% loo.frameworkcode %] [% t('framework structure (fields and subfields) from a spreadsheet file (.csv, .xml, .ods)') %]</h3>
252
                  </div>
253
                  </div>
253
                  <form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_[% loo.frameworkcode %]" id="form_i_[% loo.frameworkcode %]" method="post" enctype="multipart/form-data" class="form_import">
254
                  <form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_[% loo.frameworkcode %]" id="form_i_[% loo.frameworkcode %]" method="post" enctype="multipart/form-data" class="form_import">
254
                    <div class="modal-body">
255
                    <div class="modal-body">
255
                      <input type="hidden" name="frameworkcode" value="[% loo.frameworkcode %]" />
256
                      <input type="hidden" name="frameworkcode" value="[% loo.frameworkcode %]" />
256
                      <input type="hidden" name="action" value="import" />
257
                      <input type="hidden" name="action" value="import" />
257
                      <p><label for="file_import_[% loo.frameworkcode %]">Upload file:</label> <input type="file" name="file_import_[% loo.frameworkcode %]" id="file_import_[% loo.frameworkcode %]" class="input_import" /></p>
258
                      <p><label for="file_import_[% loo.frameworkcode %]">[% t('Upload file:') %]</label> <input type="file" name="file_import_[% loo.frameworkcode %]" id="file_import_[% loo.frameworkcode %]" class="input_import" /></p>
258
                      <div id="importing_[% loo.frameworkcode %]" style="display:none" class="importing"><img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
259
                      <div id="importing_[% loo.frameworkcode %]" style="display:none" class="importing"><img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div>
259
                    </div>
260
                    </div>
260
                    <div class="modal-footer">
261
                    <div class="modal-footer">
261
                      <button type="submit" class="btn btn-default">Import</button>
262
                      <button type="submit" class="btn btn-default">[% t('Import') %]</button>
262
                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
263
                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
263
                    </div>
264
                    </div>
264
                  </form>
265
                  </form>
265
                  </div>
266
                  </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt (-11 / +12 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Library checkin and transfer policy</title>
6
<title>[% t('Koha › Administration › Library checkin and transfer policy') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
<style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
9
<style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'prefs-admin-search.inc' %]
14
[% INCLUDE 'prefs-admin-search.inc' %]
14
15
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; Set library checkin and transfer policy</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Set library checkin and transfer policy') %]</div>
16
17
17
<div id="doc3" class="yui-t1">
18
<div id="doc3" class="yui-t1">
18
19
Lines 20-35 Link Here
20
     <div id="yui-main">
21
     <div id="yui-main">
21
    <div class="yui-b">
22
    <div class="yui-b">
22
23
23
<h1>Library [% branchcode %] - [% Branches.GetName( branchcode ) %] Checkin and transfer policy</h1>
24
<h1>[% t('Library') %] [% branchcode %] - [% Branches.GetName( branchcode ) %] [% t('Checkin and transfer policy') %]</h1>
24
    <form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
25
    <form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
25
        <label for="branchselect">Select a library :</label>
26
        <label for="branchselect">[% t('Select a library :') %]</label>
26
        <select name="branchcode" id="branchselect">
27
        <select name="branchcode" id="branchselect">
27
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1 ) %]
28
            [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1 ) %]
28
        </select>
29
        </select>
29
    </form>
30
    </form>
30
31
31
<p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
32
<p class="help">[% t('Check the boxes for the libraries you accept to checkin items from.') %]</p>
32
<fieldset>[% IF ( limitType == 'ccode' ) %]<strong>For all collection codes: </strong>[% ELSE %]<strong>For all item types: </strong>[% END %]<a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll" href="#"><i class="fa fa-remove"></i> Clear all</a></fieldset>
33
<fieldset>[% IF ( limitType == 'ccode' ) %]<strong>[% t('For all collection codes:') %] </strong>[% ELSE %]<strong>[% t('For all item types:') %] </strong>[% END %]<a id="CheckAll" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> | <a id="UncheckAll" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></fieldset>
33
34
34
35
35
  <div id="transferlimit_tabs" class="toptabs">
36
  <div id="transferlimit_tabs" class="toptabs">
Lines 41-54 Link Here
41
42
42
	[% FOREACH codes_loo IN codes_loop %]
43
	[% FOREACH codes_loo IN codes_loop %]
43
	<div id="[% codes_loo.code %]set">
44
	<div id="[% codes_loo.code %]set">
44
		<h4>Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]</h4>
45
		<h4>[% t('Policy for') %] [% codes_loo.limit_phrase %]: [% codes_loo.code %]</h4>
45
    <p><a id="CheckAll[% codes_loo.code %]table" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% codes_loo.code %]table" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p>
46
    <p><a id="CheckAll[% codes_loo.code %]table" class="checkall" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a> | <a id="UncheckAll[% codes_loo.code %]table" class="uncheckall" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></p>
46
	
47
	
47
		<table id="[% codes_loo.code %]table" class="sorted">
48
		<table id="[% codes_loo.code %]table" class="sorted">
48
			<thead>
49
			<thead>
49
				<tr>
50
				<tr>
50
				    <th>Library</th>
51
				    <th>[% t('Library') %]</th>
51
				    <th>Allow transfer?</th>
52
				    <th>[% t('Allow transfer?') %]</th>
52
				</tr>
53
				</tr>
53
			</thead>
54
			</thead>
54
55
Lines 74-80 Link Here
74
		    <input type="hidden" name="updateLimits" value="1" />
75
		    <input type="hidden" name="updateLimits" value="1" />
75
		    <input type="hidden" name="branchcode" value="[% branchcode %]" />
76
		    <input type="hidden" name="branchcode" value="[% branchcode %]" />
76
		    <input type="submit" value="Save" /> 
77
		    <input type="submit" value="Save" /> 
77
		    <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
78
		    <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">[% t('Cancel') %]</a>
78
		</fieldset>
79
		</fieldset>
79
		</form>
80
		</form>
80
		</div>
81
		</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-68 / +69 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Libraries
5
<title>[% t('Koha › Administration › Libraries') %]
5
[% IF op == 'add_form' %]
6
[% IF op == 'add_form' %]
6
    &rsaquo;[% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %]
7
    ›[% IF library %][% t('Modify library') %][% ELSE %][% t('New library') %] [% library.branchcode | html %][% END %]
7
[% ELSIF op == 'delete_confirm' %]
8
[% ELSIF op == 'delete_confirm' %]
8
    &rsaquo; Confirm deletion of library '[% library.branchcode | html %]'
9
    [% t('› Confirm deletion of library \'') %][% library.branchcode | html %]'
9
[% END %]
10
[% END %]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 17-29 Link Here
17
[% INCLUDE 'prefs-admin-search.inc' %]
18
[% INCLUDE 'prefs-admin-search.inc' %]
18
19
19
<div id="breadcrumbs">
20
<div id="breadcrumbs">
20
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
21
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
22
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
22
&rsaquo; <a href="/cgi-bin/koha/admin/branches.pl">Libraries</a>
23
› <a href="/cgi-bin/koha/admin/branches.pl">[% t('Libraries') %]</a>
23
[% IF op == 'add_form'  %]
24
[% IF op == 'add_form'  %]
24
&rsaquo; [% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %]
25
› [% IF library %][% t('Modify library') %][% ELSE %][% t('New library') %] [% library.branchcode | html %][% END %]
25
[% ELSIF op == 'delete_confirm' %]
26
[% ELSIF op == 'delete_confirm' %]
26
&rsaquo; Confirm deletion of library '[% library.branchcode | html %]'
27
[% t('› Confirm deletion of library \'') %][% library.branchcode | html %]'
27
[% END %]
28
[% END %]
28
</div>
29
</div>
29
30
Lines 37-76 Link Here
37
    <div class="dialog [% m.type %]">
38
    <div class="dialog [% m.type %]">
38
        [% SWITCH m.code %]
39
        [% SWITCH m.code %]
39
        [% CASE 'error_on_update' %]
40
        [% CASE 'error_on_update' %]
40
            An error occurred when updating this library. Perhaps it already exists.
41
            [% t('An error occurred when updating this library. Perhaps it already exists.') %]
41
        [% CASE 'error_on_insert' %]
42
        [% CASE 'error_on_insert' %]
42
            An error occurred when adding this library. The branchcode might already exist.
43
            [% t('An error occurred when adding this library. The branchcode might already exist.') %]
43
        [% CASE 'error_on_delete' %]
44
        [% CASE 'error_on_delete' %]
44
            An error occurred when deleting this library. Check the logs.
45
            [% t('An error occurred when deleting this library. Check the logs.') %]
45
        [% CASE 'success_on_update' %]
46
        [% CASE 'success_on_update' %]
46
            Library updated successfully.
47
            [% t('Library updated successfully.') %]
47
        [% CASE 'success_on_insert' %]
48
        [% CASE 'success_on_insert' %]
48
            Library added successfully.
49
            [% t('Library added successfully.') %]
49
        [% CASE 'success_on_delete' %]
50
        [% CASE 'success_on_delete' %]
50
            Library deleted successfully.
51
            [% t('Library deleted successfully.') %]
51
        [% CASE 'cannot_delete_library' %]
52
        [% CASE 'cannot_delete_library' %]
52
            This library cannot be deleted. Patrons or items are still using it
53
            [% t('This library cannot be deleted. Patrons or items are still using it') %]
53
            [% IF m.data.patrons_count and m.data.items_count %]
54
            [% IF m.data.patrons_count and m.data.items_count %]
54
                ([% m.data.patrons_count %] patrons and [% m.data.items_count %] items).
55
                ([% m.data.patrons_count %] [% t('patrons and') %] [% m.data.items_count %] [% t('items).') %]
55
            [% ELSIF m.data.patrons_count %]
56
            [% ELSIF m.data.patrons_count %]
56
                ([% m.data.patrons_count %] patrons).
57
                ([% m.data.patrons_count %] [% t('patrons).') %]
57
            [% ELSIF m.data.items_count %]
58
            [% ELSIF m.data.items_count %]
58
                ([% m.data.items_count %] items).
59
                ([% m.data.items_count %] [% t('items).') %]
59
            [% END %]
60
            [% END %]
60
        [% CASE 'error_on_update_category' %]
61
        [% CASE 'error_on_update_category' %]
61
            An error occurred when updating this library category. Perhaps it already exists.
62
            [% t('An error occurred when updating this library category. Perhaps it already exists.') %]
62
        [% CASE 'error_on_insert_category' %]
63
        [% CASE 'error_on_insert_category' %]
63
            An error occurred when adding this library category. The categorycode might already exist.
64
            [% t('An error occurred when adding this library category. The categorycode might already exist.') %]
64
        [% CASE 'error_on_delete_category' %]
65
        [% CASE 'error_on_delete_category' %]
65
            An error occurred when deleting this library category. Check the logs.
66
            [% t('An error occurred when deleting this library category. Check the logs.') %]
66
        [% CASE 'success_on_update_category' %]
67
        [% CASE 'success_on_update_category' %]
67
            Library category updated successfully.
68
            [% t('Library category updated successfully.') %]
68
        [% CASE 'success_on_insert_category' %]
69
        [% CASE 'success_on_insert_category' %]
69
            Library category added successfully.
70
            [% t('Library category added successfully.') %]
70
        [% CASE 'success_on_delete_category' %]
71
        [% CASE 'success_on_delete_category' %]
71
            Library category deleted successfully.
72
            [% t('Library category deleted successfully.') %]
72
        [% CASE 'cannot_delete_category' %]
73
        [% CASE 'cannot_delete_category' %]
73
            This library category cannot be deleted. [% m.data.libraries_count %] libraries are still using it.
74
            [% t('This library category cannot be deleted.') %] [% m.data.libraries_count %] [% t('libraries are still using it.') %]
74
        [% CASE %]
75
        [% CASE %]
75
            [% m.code %]
76
            [% m.code %]
76
        [% END %]
77
        [% END %]
Lines 79-90 Link Here
79
80
80
[% IF op == 'list' %]
81
[% IF op == 'list' %]
81
    <div id="toolbar" class="btn-toolbar">
82
    <div id="toolbar" class="btn-toolbar">
82
        <a class="btn btn-default btn-sm" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a>
83
        <a class="btn btn-default btn-sm" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New library') %]</a>
83
    </div>
84
    </div>
84
[% END %]
85
[% END %]
85
86
86
[% IF op == 'add_form' %]
87
[% IF op == 'add_form' %]
87
    <h3>[% IF library %]Modify library[% ELSE %]New library[% END %]</h3>
88
    <h3>[% IF library %][% t('Modify library') %][% ELSE %][% t('New library') %][% END %]</h3>
88
    <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
89
    <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
89
        <fieldset class="rows">
90
        <fieldset class="rows">
90
            <input type="hidden" name="op" value="add_validate" />
91
            <input type="hidden" name="op" value="add_validate" />
Lines 94-117 Link Here
94
            <ol>
95
            <ol>
95
                <li>
96
                <li>
96
                    [% IF library %]
97
                    [% IF library %]
97
                        <span class="label">Library code: </span>
98
                        <span class="label">[% t('Library code:') %] </span>
98
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
99
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
99
                        [% library.branchcode | html %]
100
                        [% library.branchcode | html %]
100
                    [% ELSE %]
101
                    [% ELSE %]
101
                        <label for="branchcode" class="required">Library code: </label>
102
                        <label for="branchcode" class="required">[% t('Library code:') %] </label>
102
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
103
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
103
                        <span class="required">Required</span>
104
                        <span class="required">[% t('Required') %]</span>
104
                    [% END %]
105
                    [% END %]
105
                </li>
106
                </li>
106
                <li>
107
                <li>
107
                    <label for="branchname" class="required">Name: </label>
108
                    <label for="branchname" class="required">[% t('Name:') %] </label>
108
                    <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname |html %]" class="required" required="required" />
109
                    <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname |html %]" class="required" required="required" />
109
                    <span class="required">Required</span>
110
                    <span class="required">[% t('Required') %]</span>
110
                </li>
111
                </li>
111
            </ol>
112
            </ol>
112
        </fieldset>
113
        </fieldset>
113
        [% IF categories %]
114
        [% IF categories %]
114
            <fieldset class="rows"><legend>Group(s):</legend>
115
            <fieldset class="rows"><legend>[% t('Group(s):') %]</legend>
115
                <ol>
116
                <ol>
116
                    [% FOREACH category IN categories %]
117
                    [% FOREACH category IN categories %]
117
                        <li>
118
                        <li>
Lines 129-156 Link Here
129
        [% END %]
130
        [% END %]
130
        <fieldset class="rows">
131
        <fieldset class="rows">
131
            <ol>
132
            <ol>
132
                <li><label for="branchaddress1">Address line 1: </label><input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 |html %]" /></li>
133
                <li><label for="branchaddress1">[% t('Address line 1:') %] </label><input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 |html %]" /></li>
133
                <li><label for="branchaddress2">Address line 2: </label><input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 |html %]" /></li>
134
                <li><label for="branchaddress2">[% t('Address line 2:') %] </label><input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 |html %]" /></li>
134
                <li><label for="branchaddress3">Address line 3: </label><input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 |html %]" /></li>
135
                <li><label for="branchaddress3">[% t('Address line 3:') %] </label><input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 |html %]" /></li>
135
                <li><label for="branchcity">City: </label><input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity |html %]" /></li>
136
                <li><label for="branchcity">[% t('City:') %] </label><input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity |html %]" /></li>
136
                <li><label for="branchstate">State: </label><input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate |html %]" /></li>
137
                <li><label for="branchstate">[% t('State:') %] </label><input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate |html %]" /></li>
137
                <li><label for="branchzip">ZIP/Postal code: </label><input type="text" name="branchzip" id="branchzip"  size="25" maxlength="25" value="[% library.branchzip |html %]" /></li>
138
                <li><label for="branchzip">[% t('ZIP/Postal code:') %] </label><input type="text" name="branchzip" id="branchzip" size="25" maxlength="25" value="[% library.branchzip |html %]" /></li>
138
                <li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry |html %]" /></li>
139
                <li><label for="branchcountry">[% t('Country:') %] </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry |html %]" /></li>
139
                <li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone |html %]" /></li>
140
                <li><label for="branchphone">[% t('Phone:') %] </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone |html %]" /></li>
140
                <li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax |html %]" /></li>
141
                <li><label for="branchfax">[% t('Fax:') %] </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax |html %]" /></li>
141
                <li><label for="branchemail">Email: </label><input type="text" name="branchemail" id="branchemail" class="email"  size="80" value="[% library.branchemail |html %]" /></li>
142
                <li><label for="branchemail">[% t('Email:') %] </label><input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail |html %]" /></li>
142
                <li><label for="branchreplyto">Reply-To: </label> <input type="text" name="branchreplyto" id="branchreplyto" class="email"  size="80" value="[% library.branchreplyto |html %]" /><br /><span class="hint">Default: ReplyToDefault system preference</span></li>
143
                <li><label for="branchreplyto">[% t('Reply-To:') %] </label> <input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto |html %]" /><br /><span class="hint">[% t('Default: ReplyToDefault system preference') %]</span></li>
143
                <li><label for="branchreturnpath">Return-Path: </label> <input type="text" name="branchreturnpath" id="branchreturnpath" class="email"  size="80" value="[% library.branchreturnpath |html %]" /><br /><span class="hint">Default: ReturnpathDefault system preference</span></li>
144
                <li><label for="branchreturnpath">[% t('Return-Path:') %] </label> <input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath |html %]" /><br /><span class="hint">[% t('Default: ReturnpathDefault system preference') %]</span></li>
144
                <li><label for="branchurl">URL: </label><input type="text" name="branchurl" id="branchurl"  size="80" value="[% library.branchurl |html %]" class="url" /></li>
145
                <li><label for="branchurl">[% t('URL:') %] </label><input type="text" name="branchurl" id="branchurl" size="80" value="[% library.branchurl |html %]" class="url" /></li>
145
                <li><label for="opac_info">OPAC info: </label><textarea name="opac_info" id="opac_info">[% library.opac_info |html %]</textarea></li>
146
                <li><label for="opac_info">[% t('OPAC info:') %] </label><textarea name="opac_info" id="opac_info">[% library.opac_info |html %]</textarea></li>
146
                <li><label for="branchip">IP: </label><input type="text" name="branchip" id="branchip"  size="15" maxlength="15" value="[% library.branchip |html %]" /> <span class="hint">Can be entered as a single IP, or a subnet such as 192.168.1.*</span></li>
147
                <li><label for="branchip">[% t('IP:') %] </label><input type="text" name="branchip" id="branchip" size="15" maxlength="15" value="[% library.branchip |html %]" /> <span class="hint">[% t('Can be entered as a single IP, or a subnet such as 192.168.1.*') %]</span></li>
147
                <li><label for="marcorgccode">MARC organization code</label> <input type="text" name="marcorgcode" id="marcorgcode" size="16" value="[% library.marcorgcode |html %]" /> <span class="hint">If not filled in defaults to system preference MARCOrgCode. You can obtain your code from <a href="http://www.loc.gov/marc/organizations/orgshome.html" target="_blank">Library of Congress</a>.</span>
148
                <li><label for="marcorgccode">[% t('MARC organization code') %]</label> <input type="text" name="marcorgcode" id="marcorgcode" size="16" value="[% library.marcorgcode |html %]" /> <span class="hint">[% t('If not filled in defaults to system preference MARCOrgCode. You can obtain your code from') %] <a href="http://www.loc.gov/marc/organizations/orgshome.html" target="_blank">[% t('Library of Congress') %]</a>.</span>
148
                <li><label for="branchnotes">Notes: </label><input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes |html %]" /></li>
149
                <li><label for="branchnotes">[% t('Notes:') %] </label><input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes |html %]" /></li>
149
            </ol>
150
            </ol>
150
        </fieldset>
151
        </fieldset>
151
        <fieldset class="action">
152
        <fieldset class="action">
152
            <input type="submit" value="Submit" />
153
            <input type="submit" value="Submit" />
153
            <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a>
154
            <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">[% t('Cancel') %]</a>
154
        </fieldset>
155
        </fieldset>
155
    </form>
156
    </form>
156
[% END %]
157
[% END %]
Lines 158-187 Link Here
158
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
159
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
159
    <div class="dialog alert">
160
    <div class="dialog alert">
160
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
161
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
161
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode | html %])?</h3>
162
            <h3>[% t('Are you sure you want to delete') %] [% library.branchname |html %] ([% library.branchcode | html %])?</h3>
162
            <input type="hidden" name="op" value="delete_confirmed" />
163
            <input type="hidden" name="op" value="delete_confirmed" />
163
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
164
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
164
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
165
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
165
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
166
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
166
        </form>
167
        </form>
167
        <form action="/cgi-bin/koha/admin/branches.pl" method="get">
168
        <form action="/cgi-bin/koha/admin/branches.pl" method="get">
168
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
169
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
169
        </form>
170
        </form>
170
    </div>
171
    </div>
171
[% END %]
172
[% END %]
172
173
173
[% IF op == 'list' %]
174
[% IF op == 'list' %]
174
    <h3>Libraries</h3>
175
    <h3>[% t('Libraries') %]</h3>
175
    [% IF libraries.count %]
176
    [% IF libraries.count %]
176
        <table id="branchest">
177
        <table id="branchest">
177
            <thead>
178
            <thead>
178
                <tr>
179
                <tr>
179
                    <th>Name</th>
180
                    <th>[% t('Name') %]</th>
180
                    <th>Code</th>
181
                    <th>[% t('Code') %]</th>
181
                    <th>Address</th>
182
                    <th>[% t('Address') %]</th>
182
                    <th>MARC organization code</th>
183
                    <th>[% t('MARC organization code') %]</th>
183
                    <th>IP</th>
184
                    <th>[% t('IP') %]</th>
184
                    <th>Actions</th>
185
                    <th>[% t('Actions') %]</th>
185
                </tr>
186
                </tr>
186
            </thead>
187
            </thead>
187
            <tbody>
188
            <tbody>
Lines 204-229 Link Here
204
                            [% IF library.branchcountry %]
205
                            [% IF library.branchcountry %]
205
                                <br />[% library.branchcountry |html %][% END %]
206
                                <br />[% library.branchcountry |html %][% END %]
206
                            [% IF library.branchphone %]
207
                            [% IF library.branchphone %]
207
                                <br />Ph: [% library.branchphone |html %][% END %]
208
                                <br />[% t('Ph:') %] [% library.branchphone |html %][% END %]
208
                            [% IF library.branchfax %]
209
                            [% IF library.branchfax %]
209
                                <br />Fax: [% library.branchfax |html %][% END %]
210
                                <br />[% t('Fax:') %] [% library.branchfax |html %][% END %]
210
                            [% IF library.branchemail %]
211
                            [% IF library.branchemail %]
211
                                <br /><a href="mailto:[% library.branchemail %]">[% library.branchemail |html %]</a>[% END %]
212
                                <br /><a href="mailto:[% library.branchemail %]">[% library.branchemail |html %]</a>[% END %]
212
                            [% IF library.branchurl %]
213
                            [% IF library.branchurl %]
213
                                <br /><a href="[% library.branchurl %]">[% library.branchurl |html %]</a>[% END %]
214
                                <br /><a href="[% library.branchurl %]">[% library.branchurl |html %]</a>[% END %]
214
                            [% IF library.opac_info %]
215
                            [% IF library.opac_info %]
215
                                <br />OPAC Info: <div>[% library.opac_info %]</div>[% END %]
216
                                <br />[% t('OPAC Info:') %] <div>[% library.opac_info %]</div>[% END %]
216
                            [% IF library.branchnotes %]
217
                            [% IF library.branchnotes %]
217
                                <br />Notes: [% library.branchnotes |html %][% END %]
218
                                <br />[% t('Notes:') %] [% library.branchnotes |html %][% END %]
218
                        </td>
219
                        </td>
219
                        <td>[% library.marcorgcode %]</td>
220
                        <td>[% library.marcorgcode %]</td>
220
                        <td>[% library.branchip %]</td>
221
                        <td>[% library.branchip %]</td>
221
                        <td class="actions">
222
                        <td class="actions">
222
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;branchcode=[% library.branchcode |uri %]"><i class="fa fa-pencil"></i> Edit</a>
223
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode |uri %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
223
                            <form action="/cgi-bin/koha/admin/branches.pl" method="post">
224
                            <form action="/cgi-bin/koha/admin/branches.pl" method="post">
224
                                <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
225
                                <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
225
                                <input type="hidden" name="op" value="delete_confirm" />
226
                                <input type="hidden" name="op" value="delete_confirm" />
226
                                <button type="submit" id="delete_library_[% library.branchcode | html %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
227
                                <button type="submit" id="delete_library_[% library.branchcode | html %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
227
                            </form>
228
                            </form>
228
                        </td>
229
                        </td>
229
                    </tr>
230
                    </tr>
Lines 231-237 Link Here
231
            </tbody>
232
            </tbody>
232
        </table>
233
        </table>
233
    [% ELSE %]
234
    [% ELSE %]
234
        <div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div>
235
        <div class="dialog message">[% t('There are no libraries defined.') %] <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">[% t('Start defining libraries') %]</a>.</div>
235
    [% END %]
236
    [% END %]
236
[% END %]
237
[% END %]
237
238
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-162 / +163 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Administration &rsaquo; Patron categories &rsaquo; [% IF op == 'add_form' %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %]
8
<title>[% t('Koha › Administration › Patron categories ›') %] [% IF op == 'add_form' %][% IF ( categorycode ) %][% t('Modify category \'') %][% categorycode |html %]'[% ELSE %][% t('New category') %][% END %][% END %]
8
[% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
9
[% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %][% t('Cannot delete: category') %] [% categorycode |html %] [% t('in use') %][% ELSE %][% t('Confirm deletion of category \'') %][% categorycode |html %]'[% END %][% END %]
9
</title>
10
</title>
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
Lines 16-25 Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'patrons-admin-search.inc' %]
18
[% INCLUDE 'patrons-admin-search.inc' %]
18
19
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; [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> &rsaquo; [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %]
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categories.pl">[% t('Patron categories') %]</a> › [% IF ( categorycode ) %][% t('Modify category \'') %][% categorycode |html %]'[% ELSE %][% t('New category') %][% END %][% END %]
20
[% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> &rsaquo; [% IF ( patrons_in_category > 0 ) %]Cannot delete: Category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
21
[% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/categories.pl">[% t('Patron categories') %]</a> › [% IF ( patrons_in_category > 0 ) %][% t('Cannot delete: Category') %] [% categorycode |html %] [% t('in use') %][% ELSE %][% t('Confirm deletion of category \'') %][% categorycode |html %]'[% END %][% END %]
21
[% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> &rsaquo; Category deleted[% END %]
22
[% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categories.pl">[% t('Patron categories') %]</a> [% t('› Category deleted') %][% END %]
22
[% IF op == 'list' %]Patron categories[% END %]</div>
23
[% IF op == 'list' %][% t('Patron categories') %][% END %]</div>
23
24
24
<div id="doc3" class="yui-t2">
25
<div id="doc3" class="yui-t2">
25
   <div id="bd">
26
   <div id="bd">
Lines 30-48 Link Here
30
    <div class="dialog [% m.type %]">
31
    <div class="dialog [% m.type %]">
31
        [% SWITCH m.code %]
32
        [% SWITCH m.code %]
32
        [% CASE 'error_on_update' %]
33
        [% CASE 'error_on_update' %]
33
            An error occurred when updating this patron category. Perhaps it already exists.
34
            [% t('An error occurred when updating this patron category. Perhaps it already exists.') %]
34
        [% CASE 'error_on_insert' %]
35
        [% CASE 'error_on_insert' %]
35
            An error occurred when inserting this patron category. The patron category might already exist.
36
            [% t('An error occurred when inserting this patron category. The patron category might already exist.') %]
36
        [% CASE 'error_on_delete' %]
37
        [% CASE 'error_on_delete' %]
37
            An error occurred when deleting this patron category. Check the logs.
38
            [% t('An error occurred when deleting this patron category. Check the logs.') %]
38
        [% CASE 'success_on_update' %]
39
        [% CASE 'success_on_update' %]
39
            Patron category updated successfully.
40
            [% t('Patron category updated successfully.') %]
40
        [% CASE 'success_on_insert' %]
41
        [% CASE 'success_on_insert' %]
41
            Patron category inserted successfully.
42
            [% t('Patron category inserted successfully.') %]
42
        [% CASE 'success_on_delete' %]
43
        [% CASE 'success_on_delete' %]
43
            Patron category deleted successfully.
44
            [% t('Patron category deleted successfully.') %]
44
        [% CASE 'already_exists' %]
45
        [% CASE 'already_exists' %]
45
            This patron category already exists.
46
            [% t('This patron category already exists.') %]
46
        [% CASE %]
47
        [% CASE %]
47
            [% m.code %]
48
            [% m.code %]
48
        [% END %]
49
        [% END %]
Lines 54-158 Link Here
54
        <input type="hidden" name="op" value="add_validate" />
55
        <input type="hidden" name="op" value="add_validate" />
55
        <input type="hidden" name="checked" value="0" />
56
        <input type="hidden" name="checked" value="0" />
56
        [% IF category %]
57
        [% IF category %]
57
            <h1>Modify category [% categorycode |html %]</h1>
58
            <h1>[% t('Modify category') %] [% categorycode |html %]</h1>
58
        [% ELSE %]
59
        [% ELSE %]
59
            <h1>New category</h1>
60
            <h1>[% t('New category') %]</h1>
60
        [% END %]
61
        [% END %]
61
        <fieldset class="rows">
62
        <fieldset class="rows">
62
            <ol>
63
            <ol>
63
                [% IF category %]
64
                [% IF category %]
64
                    <li>
65
                    <li>
65
                        <span class="label">Category code: </span>[% categorycode |html %]
66
                        <span class="label">[% t('Category code:') %] </span>[% categorycode |html %]
66
                        <input type="hidden" name="categorycode" value="[% category.categorycode |html %]" /><input type="hidden" name="is_a_modif" value="1" />
67
                        <input type="hidden" name="categorycode" value="[% category.categorycode |html %]" /><input type="hidden" name="is_a_modif" value="1" />
67
                    </li>
68
                    </li>
68
                [% ELSE %]
69
                [% ELSE %]
69
                    <li>
70
                    <li>
70
                        <label for="categorycode" class="required">Category code: </label>
71
                        <label for="categorycode" class="required">[% t('Category code:') %] </label>
71
                        <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" />
72
                        <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" />
72
                        <span class="required">Required</span>
73
                        <span class="required">[% t('Required') %]</span>
73
                    </li>
74
                    </li>
74
                [% END %]
75
                [% END %]
75
                <li>
76
                <li>
76
                    <label for="description" class="required">Description: </label>
77
                    <label for="description" class="required">[% t('Description:') %] </label>
77
                    <input type="text" name="description" id="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html %]" />
78
                    <input type="text" name="description" id="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html %]" />
78
                    <span class="required">Required</span>
79
                    <span class="required">[% t('Required') %]</span>
79
                </li>
80
                </li>
80
                <li>
81
                <li>
81
                    <span class="label">Enrollment period: </span>
82
                    <span class="label">[% t('Enrollment period:') %] </span>
82
                    <fieldset>
83
                    <fieldset>
83
                        <legend>Choose one</legend>
84
                        <legend>[% t('Choose one') %]</legend>
84
                        <ol>
85
                        <ol>
85
                            <li>
86
                            <li>
86
                                <label for="enrolmentperiod" style="width:6em;">In months: </label>
87
                                <label for="enrolmentperiod" style="width:6em;">[% t('In months:') %] </label>
87
                                [% IF category.enrolmentperiod %]
88
                                [% IF category.enrolmentperiod %]
88
                                    <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% category.enrolmentperiod %]" /> months
89
                                    <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% category.enrolmentperiod %]" /> [% t('months') %]
89
                               [% ELSE %]
90
                               [% ELSE %]
90
                                    <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="" /> months
91
                                    <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="" /> [% t('months') %]
91
                               [% END %]
92
                               [% END %]
92
                            </li>
93
                            </li>
93
                            <li>
94
                            <li>
94
                                <label for="enrolmentperioddate" style="width:6em;">Until date: </label>
95
                                <label for="enrolmentperioddate" style="width:6em;">[% t('Until date:') %] </label>
95
                                <input type="text" class="enrollmentperiod datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
96
                                <input type="text" class="enrollmentperiod datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
96
                            </li>
97
                            </li>
97
                        </ol>
98
                        </ol>
98
                    </fieldset>
99
                    </fieldset>
99
                </li>
100
                </li>
100
                <li>
101
                <li>
101
                    <label for="dateofbirthrequired">Age required: </label>
102
                    <label for="dateofbirthrequired">[% t('Age required:') %] </label>
102
                    <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="[% category.dateofbirthrequired %]" size="3" maxlength="3" /> years
103
                    <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="[% category.dateofbirthrequired %]" size="3" maxlength="3" /> [% t('years') %]
103
                </li>
104
                </li>
104
                <li>
105
                <li>
105
                    <label for="upperagelimit">Upperage limit: </label>
106
                    <label for="upperagelimit">[% t('Upperage limit:') %] </label>
106
                    <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="[% category.upperagelimit %]" /> years
107
                    <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="[% category.upperagelimit %]" /> [% t('years') %]
107
                </li>
108
                </li>
108
                <li>
109
                <li>
109
                    <label for="enrolmentfee">Enrollment fee: </label>
110
                    <label for="enrolmentfee">[% t('Enrollment fee:') %] </label>
110
                    <input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="[% category.enrolmentfee | $Price on_editing => 1 %]" />
111
                    <input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="[% category.enrolmentfee | $Price on_editing => 1 %]" />
111
                </li>
112
                </li>
112
                <li>
113
                <li>
113
                    <label for="overduenoticerequired">Overdue notice required: </label>
114
                    <label for="overduenoticerequired">[% t('Overdue notice required:') %] </label>
114
                    <select name="overduenoticerequired" id="overduenoticerequired">
115
                    <select name="overduenoticerequired" id="overduenoticerequired">
115
                        [% IF category.overduenoticerequired %]
116
                        [% IF category.overduenoticerequired %]
116
                            <option value="0">No</option>
117
                            <option value="0">[% t('No') %]</option>
117
                            <option value="1" selected="selected">Yes</option>
118
                            <option value="1" selected="selected">[% t('Yes') %]</option>
118
                        [% ELSE %]
119
                        [% ELSE %]
119
                            <option value="0" selected="selected">No</option>
120
                            <option value="0" selected="selected">[% t('No') %]</option>
120
                            <option value="1">Yes</option>
121
                            <option value="1">[% t('Yes') %]</option>
121
                        [% END %]
122
                        [% END %]
122
                    </select>
123
                    </select>
123
                </li>
124
                </li>
124
                <li>
125
                <li>
125
                    <label for="hidelostitems">Lost items in staff client: </label>
126
                    <label for="hidelostitems">[% t('Lost items in staff client:') %] </label>
126
                    <select name="hidelostitems" id="hidelostitems">
127
                    <select name="hidelostitems" id="hidelostitems">
127
                        [% IF category.hidelostitems %]
128
                        [% IF category.hidelostitems %]
128
                            <option value="0">Shown</option>
129
                            <option value="0">[% t('Shown') %]</option>
129
                            <option value="1" selected="selected">Hidden by default</option>
130
                            <option value="1" selected="selected">[% t('Hidden by default') %]</option>
130
                        [% ELSE %]
131
                        [% ELSE %]
131
                            <option value="0" selected="selected">Shown</option>
132
                            <option value="0" selected="selected">[% t('Shown') %]</option>
132
                            <option value="1">Hidden by default</option>
133
                            <option value="1">[% t('Hidden by default') %]</option>
133
                        [% END %]
134
                        [% END %]
134
                    </select>
135
                    </select>
135
                </li>
136
                </li>
136
                <li>
137
                <li>
137
                    <label for="reservefee">Hold fee: </label>
138
                    <label for="reservefee">[% t('Hold fee:') %] </label>
138
                    <input type="text" name="reservefee" id="reservefee" size="6" value="[% category.reservefee | $Price on_editing => 1 %]" />
139
                    <input type="text" name="reservefee" id="reservefee" size="6" value="[% category.reservefee | $Price on_editing => 1 %]" />
139
                </li>
140
                </li>
140
                <li>
141
                <li>
141
                    <label for="category_type" class="required">Category type: </label>
142
                    <label for="category_type" class="required">[% t('Category type:') %] </label>
142
                    <select name="category_type" id="category_type">
143
                    <select name="category_type" id="category_type">
143
                        [% UNLESS category %]<option value="" selected="selected">Select a category type</option>[% ELSE %]<option value="">Select a category type</option>[% END %]
144
                        [% UNLESS category %]<option value="" selected="selected">[% t('Select a category type') %]</option>[% ELSE %]<option value="">[% t('Select a category type') %]</option>[% END %]
144
                        [% IF category and category.category_type == 'A' %]<option value="A" selected="selected">Adult</option>[% ELSE %]<option value="A">Adult</option>[% END %]
145
                        [% IF category and category.category_type == 'A' %]<option value="A" selected="selected">[% t('Adult') %]</option>[% ELSE %]<option value="A">[% t('Adult') %]</option>[% END %]
145
                        [% IF category and category.category_type == 'C' %]<option value="C" selected="selected">Child</option>[% ELSE %]<option value="C">Child</option>[% END %]
146
                        [% IF category and category.category_type == 'C' %]<option value="C" selected="selected">[% t('Child') %]</option>[% ELSE %]<option value="C">[% t('Child') %]</option>[% END %]
146
                        [% IF category and category.category_type == 'S' %]<option value="S" selected="selected">Staff</option>[% ELSE %]<option value="S">Staff</option>[% END %]
147
                        [% IF category and category.category_type == 'S' %]<option value="S" selected="selected">[% t('Staff') %]</option>[% ELSE %]<option value="S">[% t('Staff') %]</option>[% END %]
147
                        [% IF category and category.category_type == 'I' %]<option value="I" selected="selected">Organization</option>[% ELSE %]<option value="I">Organization</option>[% END %]
148
                        [% IF category and category.category_type == 'I' %]<option value="I" selected="selected">[% t('Organization') %]</option>[% ELSE %]<option value="I">[% t('Organization') %]</option>[% END %]
148
                        [% IF category and category.category_type == 'P' %]<option value="P" selected="selected">Professional</option>[% ELSE %]<option value="P">Professional</option>[% END %]
149
                        [% IF category and category.category_type == 'P' %]<option value="P" selected="selected">[% t('Professional') %]</option>[% ELSE %]<option value="P">[% t('Professional') %]</option>[% END %]
149
                        [% IF category and category.category_type == 'X' %]<option value="X" selected="selected">Statistical</option>[% ELSE %]<option value="X">Statistical</option>[% END %]
150
                        [% IF category and category.category_type == 'X' %]<option value="X" selected="selected">[% t('Statistical') %]</option>[% ELSE %]<option value="X">[% t('Statistical') %]</option>[% END %]
150
                    </select>
151
                    </select>
151
                    <span class="required">Required</span>
152
                    <span class="required">[% t('Required') %]</span>
152
                </li>
153
                </li>
153
                <li><label for="branches">Branches limitation: </label>
154
                <li><label for="branches">[% t('Branches limitation:') %] </label>
154
                    <select id="branches" name="branches" multiple size="10">
155
                    <select id="branches" name="branches" multiple="" size="10">
155
                        <option value="">All branches</option>
156
                        <option value="">[% t('All branches') %]</option>
156
                        [% FOREACH branch IN branches_loop %]
157
                        [% FOREACH branch IN branches_loop %]
157
                          [% IF branch.selected %]
158
                          [% IF branch.selected %]
158
                            <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
159
                            <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
Lines 161-249 Link Here
161
                          [% END %]
162
                          [% END %]
162
                        [% END %]
163
                        [% END %]
163
                    </select>
164
                    </select>
164
                    <span>Select <i>All branches</i> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
165
                    <span>[% t('Select') %] <i>[% t('All branches') %]</i> [% t('if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.') %]
165
                    </span>
166
                    </span>
166
                </li>
167
                </li>
167
                <li><label for="block_expired">Block expired patrons:</label>
168
                <li><label for="block_expired">[% t('Block expired patrons:') %]</label>
168
                    <select name="BlockExpiredPatronOpacActions" id="block_expired">
169
                    <select name="BlockExpiredPatronOpacActions" id="block_expired">
169
                        [% IF not category or category.BlockExpiredPatronOpacActions == -1%]
170
                        [% IF not category or category.BlockExpiredPatronOpacActions == -1%]
170
                            <option value="-1" selected="selected"> Follow system preference BlockExpiredPatronOpacActions </option>
171
                            <option value="-1" selected="selected"> [% t('Follow system preference BlockExpiredPatronOpacActions') %] </option>
171
                        [% ELSE %]
172
                        [% ELSE %]
172
                            <option value="-1"> Follow system preference BlockExpiredPatronOpacActions </option>
173
                            <option value="-1"> [% t('Follow system preference BlockExpiredPatronOpacActions') %] </option>
173
                        [% END %]
174
                        [% END %]
174
175
175
                        [% IF category and category.BlockExpiredPatronOpacActions == 1 %]
176
                        [% IF category and category.BlockExpiredPatronOpacActions == 1 %]
176
                            <option value="1" selected="selected"> Block </option>
177
                            <option value="1" selected="selected"> [% t('Block') %] </option>
177
                        [% ELSE %]
178
                        [% ELSE %]
178
                            <option value="1"> Block </option>
179
                            <option value="1"> [% t('Block') %] </option>
179
                        [% END %]
180
                        [% END %]
180
181
181
                        [% IF category and category.BlockExpiredPatronOpacActions == 0 %]
182
                        [% IF category and category.BlockExpiredPatronOpacActions == 0 %]
182
                            <option value="0" selected="selected"> Don't block </option>
183
                            <option value="0" selected="selected"> [% t('Don\'t block') %] </option>
183
                        [% ELSE %]
184
                        [% ELSE %]
184
                            <option value="0"> Don't block </option>
185
                            <option value="0"> [% t('Don\'t block') %] </option>
185
                        [% END %]
186
                        [% END %]
186
                    </select>
187
                    </select>
187
                    <span>
188
                    <span>
188
                        Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired.
189
                        [% t('Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired.') %]
189
                    </span>
190
                    </span>
190
                </li>
191
                </li>
191
                [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' )  %]
192
                [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' )  %]
192
                  <li><label for="checkprevcheckout">Check for previous checkouts: </label>
193
                  <li><label for="checkprevcheckout">[% t('Check for previous checkouts:') %] </label>
193
                      <select name="checkprevcheckout" id="checkprevcheckout">
194
                      <select name="checkprevcheckout" id="checkprevcheckout">
194
                          [% IF category.checkprevcheckout == 'yes' %]
195
                          [% IF category.checkprevcheckout == 'yes' %]
195
                          <option value="yes" selected="selected">Yes and try to override system preferences</option>
196
                          <option value="yes" selected="selected">[% t('Yes and try to override system preferences') %]</option>
196
                          <option value="no">No and try to override system preferences</option>
197
                          <option value="no">[% t('No and try to override system preferences') %]</option>
197
                          <option value="inherit">Inherit from system preferences</option>
198
                          <option value="inherit">[% t('Inherit from system preferences') %]</option>
198
                          [% ELSIF category.checkprevcheckout == 'no' %]
199
                          [% ELSIF category.checkprevcheckout == 'no' %]
199
                          <option value="yes">Yes and try to override system preferences</option>
200
                          <option value="yes">[% t('Yes and try to override system preferences') %]</option>
200
                          <option value="no" selected="selected">No and try to override system preferences</option>
201
                          <option value="no" selected="selected">[% t('No and try to override system preferences') %]</option>
201
                          <option value="inherit">Inherit from system preferences</option>
202
                          <option value="inherit">[% t('Inherit from system preferences') %]</option>
202
                          [% ELSE %]
203
                          [% ELSE %]
203
                          <option value="yes">Yes and try to override system preferences</option>
204
                          <option value="yes">[% t('Yes and try to override system preferences') %]</option>
204
                          <option value="no">No and try to override system preferences</option>
205
                          <option value="no">[% t('No and try to override system preferences') %]</option>
205
                          <option value="inherit" selected="selected">Inherit from system preferences</option>
206
                          <option value="inherit" selected="selected">[% t('Inherit from system preferences') %]</option>
206
                          [% END %]
207
                          [% END %]
207
                      </select>
208
                      </select>
208
                      <span>
209
                      <span>
209
                          Choose whether patrons of this category by default are reminded if they try to borrow an item they borrowed before.
210
                          [% t('Choose whether patrons of this category by default are reminded if they try to borrow an item they borrowed before.') %]
210
                      </span>
211
                      </span>
211
                  </li>
212
                  </li>
212
                [% END %]
213
                [% END %]
213
                <li>
214
                <li>
214
                    <label for="default_privacy">Default privacy: </label>
215
                    <label for="default_privacy">[% t('Default privacy:') %] </label>
215
                    <select id="default_privacy" name="default_privacy">
216
                    <select id="default_privacy" name="default_privacy">
216
                        [% SET default_privacy = 'default' %]
217
                        [% SET default_privacy = 'default' %]
217
                        [% IF category %][% SET default_privacy = category.default_privacy %][% END %]
218
                        [% IF category %][% SET default_privacy = category.default_privacy %][% END %]
218
                        [% SWITCH default_privacy %]
219
                        [% SWITCH default_privacy %]
219
                        [% CASE 'forever' %]
220
                        [% CASE 'forever' %]
220
                            <option value="default">Default</option>
221
                            <option value="default">[% t('Default') %]</option>
221
                            <option value="never">Never</option>
222
                            <option value="never">[% t('Never') %]</option>
222
                            <option value="forever" selected="selected">Forever</option>
223
                            <option value="forever" selected="selected">[% t('Forever') %]</option>
223
                        [% CASE 'never' %]
224
                        [% CASE 'never' %]
224
                            <option value="default">Default</option>
225
                            <option value="default">[% t('Default') %]</option>
225
                            <option value="never" selected="selected">Never</option>
226
                            <option value="never" selected="selected">[% t('Never') %]</option>
226
                            <option value="forever">Forever</option>
227
                            <option value="forever">[% t('Forever') %]</option>
227
                        [% CASE %]
228
                        [% CASE %]
228
                            <option value="default" selected="selected">Default</option>
229
                            <option value="default" selected="selected">[% t('Default') %]</option>
229
                            <option value="never">Never</option>
230
                            <option value="never">[% t('Never') %]</option>
230
                            <option value="forever">Forever</option>
231
                            <option value="forever">[% t('Forever') %]</option>
231
                        [% END %]
232
                        [% END %]
232
                    </select>
233
                    </select>
233
                    <span>Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob <i>batch_anonymise.pl</i> which should be set up by your system administrator.</span>
234
                    <span>[% t('Controls how long a patrons checkout history is kept for new patrons of this category. &#34;Never&#34; anonymizes checkouts on return, and &#34;Forever&#34; keeps a patron\'s checkout history indefinitely. When set to &#34;Default&#34;, the amount of history kept is controlled by the cronjob') %] <i>[% t('batch_anonymise.pl') %]</i> [% t('which should be set up by your system administrator.') %]</span>
234
                </li>
235
                </li>
235
            </ol>
236
            </ol>
236
        </fieldset>
237
        </fieldset>
237
238
238
        [% IF ( EnhancedMessagingPreferences ) %]
239
        [% IF ( EnhancedMessagingPreferences ) %]
239
            <fieldset class="rows">
240
            <fieldset class="rows">
240
                <h4>Default messaging preferences for this patron category</h4>
241
                <h4>[% t('Default messaging preferences for this patron category') %]</h4>
241
                [% INCLUDE 'messaging-preference-form.inc' %]
242
                [% INCLUDE 'messaging-preference-form.inc' %]
242
            </fieldset>
243
            </fieldset>
243
        [% END %]
244
        [% END %]
244
        <fieldset class="action">
245
        <fieldset class="action">
245
            <input type="submit" value="Save" />
246
            <input type="submit" value="Save" />
246
            <a href="/cgi-bin/koha/admin/categories.pl" class="cancel">Cancel</a>
247
            <a href="/cgi-bin/koha/admin/categories.pl" class="cancel">[% t('Cancel') %]</a>
247
        </fieldset>
248
        </fieldset>
248
    </form>
249
    </form>
249
[% END %]
250
[% END %]
Lines 253-313 Link Here
253
        <fieldset>
254
        <fieldset>
254
            <legend>
255
            <legend>
255
                [% IF patrons_in_category > 0 %]
256
                [% IF patrons_in_category > 0 %]
256
                    Category [% categorycode |html %] is in use.  Deletion not possible!
257
                    [% t('Category') %] [% categorycode |html %] [% t('is in use.') %]  [% t('Deletion not possible!') %]
257
                [% ELSE %]
258
                [% ELSE %]
258
                    Confirm deletion of category [% categorycode |html %]
259
                    [% t('Confirm deletion of category') %] [% categorycode |html %]
259
                [% END %]
260
                [% END %]
260
            </legend>
261
            </legend>
261
262
262
            [% IF patrons_in_category > 0  %]
263
            [% IF patrons_in_category > 0  %]
263
                <div class="dialog alert">
264
                <div class="dialog alert">
264
                    <strong>This category is used [% patrons_in_category %] times</strong>. Deletion not possible
265
                    <strong>[% t('This category is used') %] [% patrons_in_category %] [% t('times') %]</strong>[% t('. Deletion not possible') %]
265
                </div>
266
                </div>
266
            [% END %]
267
            [% END %]
267
            <table>
268
            <table>
268
                <tr><th scope="row">Category code: </th><td>[% category.categorycode |html %]</td></tr>
269
                <tr><th scope="row">[% t('Category code:') %] </th><td>[% category.categorycode |html %]</td></tr>
269
                <tr><th scope="row">Description: </th><td>[% category.description |html %]</td></tr>
270
                <tr><th scope="row">[% t('Description:') %] </th><td>[% category.description |html %]</td></tr>
270
                <tr><th scope="row">Enrollment period: </th>
271
                <tr><th scope="row">[% t('Enrollment period:') %] </th>
271
                    <td>
272
                    <td>
272
                        [% IF category.enrolmentperiod %]
273
                        [% IF category.enrolmentperiod %]
273
                            [% category.enrolmentperiod %] months
274
                            [% category.enrolmentperiod %] [% t('months') %]
274
                        [% ELSE %]
275
                        [% ELSE %]
275
                            until [% category.enrolmentperioddate | $KohaDates %]
276
                            [% t('until') %] [% category.enrolmentperioddate | $KohaDates %]
276
                        [% END %]
277
                        [% END %]
277
                    </td>
278
                    </td>
278
                </tr>
279
                </tr>
279
                <tr><th scope="row">Age required: </th><td>[% category.dateofbirthrequired %] years</td></tr>
280
                <tr><th scope="row">[% t('Age required:') %] </th><td>[% category.dateofbirthrequired %] [% t('years') %]</td></tr>
280
                <tr><th scope="row">Upperage limit: </th><td>[% category.upperagelimit %] years</td></tr>
281
                <tr><th scope="row">[% t('Upperage limit:') %] </th><td>[% category.upperagelimit %] [% t('years') %]</td></tr>
281
                <tr><th scope="row">Enrollment fee: </th><td>[% category.enrolmentfee | $Price %]</td></tr>
282
                <tr><th scope="row">[% t('Enrollment fee:') %] </th><td>[% category.enrolmentfee | $Price %]</td></tr>
282
                <tr><th scope="row">Receives overdue notices: </th><td>[% IF category. overduenoticerequired %]Yes[% ELSE %]No[% END %]</td></tr>
283
                <tr><th scope="row">[% t('Receives overdue notices:') %] </th><td>[% IF category. overduenoticerequired %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td></tr>
283
                <tr><th scope="row">Lost items in staff client</th><td>[% IF category.hidelostitems %]Hidden by default[% ELSE %]Shown[% END %]</td></tr>
284
                <tr><th scope="row">[% t('Lost items in staff client') %]</th><td>[% IF category.hidelostitems %][% t('Hidden by default') %][% ELSE %][% t('Shown') %][% END %]</td></tr>
284
                <tr><th scope="row">Hold fee: </th><td>[% category.reservefee | $Price %]</td></tr>
285
                <tr><th scope="row">[% t('Hold fee:') %] </th><td>[% category.reservefee | $Price %]</td></tr>
285
286
286
                [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
287
                [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
287
                  <tr>
288
                  <tr>
288
                      <th scope="row">Check previous checkouts: </th>
289
                      <th scope="row">[% t('Check previous checkouts:') %] </th>
289
                      <td>
290
                      <td>
290
                          [% SWITCH category.checkprevcheckout %]
291
                          [% SWITCH category.checkprevcheckout %]
291
                          [% CASE 'yes' %]
292
                          [% CASE 'yes' %]
292
                              Yes
293
                              [% t('Yes') %]
293
                          [% CASE 'no' %]
294
                          [% CASE 'no' %]
294
                              No
295
                              [% t('No') %]
295
                          [% CASE 'inherit' %]
296
                          [% CASE 'inherit' %]
296
                              Inherit
297
                              [% t('Inherit') %]
297
                          [% END %]
298
                          [% END %]
298
                      </td>
299
                      </td>
299
                  </tr>
300
                  </tr>
300
                [% END %]
301
                [% END %]
301
                <tr>
302
                <tr>
302
                    <th scope="row">Default privacy: </th>
303
                    <th scope="row">[% t('Default privacy:') %] </th>
303
                    <td>
304
                    <td>
304
                        [% SWITCH category.default_privacy %]
305
                        [% SWITCH category.default_privacy %]
305
                        [% CASE 'default' %]
306
                        [% CASE 'default' %]
306
                            Default
307
                            [% t('Default') %]
307
                        [% CASE 'never' %]
308
                        [% CASE 'never' %]
308
                            Never
309
                            [% t('Never') %]
309
                        [% CASE 'forever' %]
310
                        [% CASE 'forever' %]
310
                            Forever
311
                            [% t('Forever') %]
311
                        [% END %]
312
                        [% END %]
312
                    </td>
313
                    </td>
313
                </tr>
314
                </tr>
Lines 319-325 Link Here
319
                    <input type="hidden" name="op" value="delete_confirmed" />
320
                    <input type="hidden" name="op" value="delete_confirmed" />
320
                    <input type="hidden" name="categorycode" value="[% categorycode |html %]" />
321
                    <input type="hidden" name="categorycode" value="[% categorycode |html %]" />
321
                    <input type="submit" value="Delete this category" />
322
                    <input type="submit" value="Delete this category" />
322
                    <a class="cancel" href="/cgi-bin/koha/admin/categories.pl">Cancel</a>
323
                    <a class="cancel" href="/cgi-bin/koha/admin/categories.pl">[% t('Cancel') %]</a>
323
                [% END %]
324
                [% END %]
324
            </fieldset>
325
            </fieldset>
325
        </fieldset>
326
        </fieldset>
Lines 329-364 Link Here
329
[% IF op == 'list' %]
330
[% IF op == 'list' %]
330
331
331
    <div id="toolbar" class="btn-toolbar">
332
    <div id="toolbar" class="btn-toolbar">
332
        <a class="btn btn-default btn-sm" id="newcategory" href="/cgi-bin/koha/admin/categories.pl?op=add_form"><i class="fa fa-plus"></i> New category</a>
333
        <a class="btn btn-default btn-sm" id="newcategory" href="/cgi-bin/koha/admin/categories.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New category') %]</a>
333
    </div>
334
    </div>
334
335
335
    <h2>Patron categories</h2>
336
    <h2>[% t('Patron categories') %]</h2>
336
    [% IF searchfield %]
337
    [% IF searchfield %]
337
        You Searched for [% searchfield |html %]</span>
338
        [% t('You Searched for') %] [% searchfield |html %]</span>
338
    [% END %]
339
    [% END %]
339
    [% IF categories%]
340
    [% IF categories%]
340
        <table id="table_categorie">
341
        <table id="table_categorie">
341
            <thead>
342
            <thead>
342
                <tr>
343
                <tr>
343
                    <th scope="col">Code</th>
344
                    <th scope="col">[% t('Code') %]</th>
344
                    <th scope="col">Category name</th>
345
                    <th scope="col">[% t('Category name') %]</th>
345
                    <th scope="col">Type</th>
346
                    <th scope="col">[% t('Type') %]</th>
346
                    <th scope="col">Enrollment period</th>
347
                    <th scope="col">[% t('Enrollment period') %]</th>
347
                    <th scope="col">Age required</th>
348
                    <th scope="col">[% t('Age required') %]</th>
348
                    <th scope="col">Upper age limit</th>
349
                    <th scope="col">[% t('Upper age limit') %]</th>
349
                    <th scope="col">Enrollment fee</th>
350
                    <th scope="col">[% t('Enrollment fee') %]</th>
350
                    <th scope="col">Overdue</th>
351
                    <th scope="col">[% t('Overdue') %]</th>
351
                    <th scope="col">Lost items</th>
352
                    <th scope="col">[% t('Lost items') %]</th>
352
                    <th scope="col">Hold fee</th>
353
                    <th scope="col">[% t('Hold fee') %]</th>
353
                    [% IF ( EnhancedMessagingPreferences ) %]
354
                    [% IF ( EnhancedMessagingPreferences ) %]
354
                    <th scope="col">Messaging</th>
355
                    <th scope="col">[% t('Messaging') %]</th>
355
                    [% END %]
356
                    [% END %]
356
                    <th scope="col">Branches limitations</th>
357
                    <th scope="col">[% t('Branches limitations') %]</th>
357
                    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
358
                    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
358
                    <th scope="col">Check previous checkout?</th>
359
                    <th scope="col">[% t('Check previous checkout?') %]</th>
359
                    [% END %]
360
                    [% END %]
360
                    <th scope="col">Default privacy</th>
361
                    <th scope="col">[% t('Default privacy') %]</th>
361
                    <th scope="col">Actions</th>
362
                    <th scope="col">[% t('Actions') %]</th>
362
                </tr>
363
                </tr>
363
            </thead>
364
            </thead>
364
            <tbody>
365
            <tbody>
Lines 366-397 Link Here
366
                    <tr>
367
                    <tr>
367
                        <td>[% category.categorycode |html %]</td>
368
                        <td>[% category.categorycode |html %]</td>
368
                        <td>
369
                        <td>
369
                            <a href="/cgi-bin/koha/admin/categories.pl?op=add_form&amp;categorycode=[% category.categorycode |uri %]">[% category.description |html %]</a>
370
                            <a href="/cgi-bin/koha/admin/categories.pl?op=add_form&categorycode=[% category.categorycode |uri %]">[% category.description |html %]</a>
370
                        </td>
371
                        </td>
371
                        <td>
372
                        <td>
372
                            [% SWITCH category.category_type %]
373
                            [% SWITCH category.category_type %]
373
                                [% CASE 'A' %]Adult
374
                                [% CASE 'A' %][% t('Adult') %]
374
                                [% CASE 'C' %]Child
375
                                [% CASE 'C' %][% t('Child') %]
375
                                [% CASE 'P' %]Prof.
376
                                [% CASE 'P' %][% t('Prof.') %]
376
                                [% CASE 'I' %]Org.
377
                                [% CASE 'I' %][% t('Org.') %]
377
                                [% CASE 'S' %]Staff
378
                                [% CASE 'S' %][% t('Staff') %]
378
                                [% CASE 'X' %]Statistical
379
                                [% CASE 'X' %][% t('Statistical') %]
379
                            [% END %]
380
                            [% END %]
380
                        </td>
381
                        </td>
381
                        <td>
382
                        <td>
382
                            [% IF ( category.enrolmentperiod ) %]
383
                            [% IF ( category.enrolmentperiod ) %]
383
                                [% category.enrolmentperiod %] months
384
                                [% category.enrolmentperiod %] [% t('months') %]
384
                            [% ELSE %]
385
                            [% ELSE %]
385
                                until [% category.enrolmentperioddate | $KohaDates %]
386
                                [% t('until') %] [% category.enrolmentperioddate | $KohaDates %]
386
                            [% END %]
387
                            [% END %]
387
                        </td>
388
                        </td>
388
                        [% IF (category.dateofbirthrequired) %]
389
                        [% IF (category.dateofbirthrequired) %]
389
                            <td>[% category.dateofbirthrequired %] years</td>
390
                            <td>[% category.dateofbirthrequired %] [% t('years') %]</td>
390
                        [% ELSE %]
391
                        [% ELSE %]
391
                            <td>-</td>
392
                            <td>-</td>
392
                        [% END %]
393
                        [% END %]
393
                        [% IF (category.upperagelimit) %]
394
                        [% IF (category.upperagelimit) %]
394
                            <td>[% category.upperagelimit %] years</td>
395
                            <td>[% category.upperagelimit %] [% t('years') %]</td>
395
                        [% ELSE %]
396
                        [% ELSE %]
396
                            <td>-</td>
397
                            <td>-</td>
397
                        [% END %]
398
                        [% END %]
Lines 400-407 Link Here
400
                        [% ELSE %]
401
                        [% ELSE %]
401
                            <td>-</td>
402
                            <td>-</td>
402
                        [% END %]
403
                        [% END %]
403
                        <td>[% IF ( category.overduenoticerequired ) %]Yes[% ELSE %]No[% END %]</td>
404
                        <td>[% IF ( category.overduenoticerequired ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
404
                        <td>[% IF ( category.hidelostitems ) %]Hidden[% ELSE %]Shown[% END %]</td>
405
                        <td>[% IF ( category.hidelostitems ) %][% t('Hidden') %][% ELSE %][% t('Shown') %][% END %]</td>
405
                        [% IF (category.reservefee > 0) %]
406
                        [% IF (category.reservefee > 0) %]
406
                            <td>[% category.reservefee | $Price %]</td>
407
                            <td>[% category.reservefee | $Price %]</td>
407
                        [% ELSE %]
408
                        [% ELSE %]
Lines 414-433 Link Here
414
                                    [% FOREACH prefs IN default_messaging %]
415
                                    [% FOREACH prefs IN default_messaging %]
415
                                        [% FOREACH transport IN prefs.transports %]
416
                                        [% FOREACH transport IN prefs.transports %]
416
                                            [% IF ( transport.transport ) %]
417
                                            [% IF ( transport.transport ) %]
417
                                                [% IF ( prefs.Item_Due ) %]Item due
418
                                                [% IF ( prefs.Item_Due ) %][% t('Item due') %]
418
                                                [% ELSIF ( prefs.Advance_Notice ) %]Advance notice
419
                                                [% ELSIF ( prefs.Advance_Notice ) %][% t('Advance notice') %]
419
                                                [% ELSIF ( prefs.Upcoming_Events ) %]Upcoming events
420
                                                [% ELSIF ( prefs.Upcoming_Events ) %][% t('Upcoming events') %]
420
                                                [% ELSIF ( prefs.Hold_Filled ) %]Hold filled
421
                                                [% ELSIF ( prefs.Hold_Filled ) %][% t('Hold filled') %]
421
                                                [% ELSIF ( prefs.Item_Check_in ) %]Item check-in
422
                                                [% ELSIF ( prefs.Item_Check_in ) %][% t('Item check-in') %]
422
                                                [% ELSIF ( prefs.Item_Checkout ) %]Item checkout
423
                                                [% ELSIF ( prefs.Item_Checkout ) %][% t('Item checkout') %]
423
                                                [% ELSE %]Unknown
424
                                                [% ELSE %][% t('Unknown') %]
424
                                                [% END %]:
425
                                                [% END %]:
425
                                                <strong>[% transport.transport %]</strong><br />
426
                                                <strong>[% transport.transport %]</strong><br />
426
                                            [% ELSE %]None<br />[% END %]
427
                                            [% ELSE %][% t('None') %]<br />[% END %]
427
                                        [% END %]
428
                                        [% END %]
428
                                    [% END %]
429
                                    [% END %]
429
                                [% ELSE %]
430
                                [% ELSE %]
430
                                    None
431
                                    [% t('None') %]
431
                                [% END %]
432
                                [% END %]
432
                            </td>
433
                            </td>
433
                        [% END %]
434
                        [% END %]
Lines 440-486 Link Here
440
                                [% END %]
441
                                [% END %]
441
                                <span title="[% branches_str %]">
442
                                <span title="[% branches_str %]">
442
                                    [% IF branch_limitations.size > 1 %]
443
                                    [% IF branch_limitations.size > 1 %]
443
                                        [% branch_limitations.size %] branches limitations
444
                                        [% branch_limitations.size %] [% t('branches limitations') %]
444
                                    [% ELSE %]
445
                                    [% ELSE %]
445
                                        [% branch_limitations.size %] branch limitation
446
                                        [% branch_limitations.size %] [% t('branch limitation') %]
446
                                    [% END %]
447
                                    [% END %]
447
                                </span>
448
                                </span>
448
                            [% ELSE %]
449
                            [% ELSE %]
449
                                No limitation
450
                                [% t('No limitation') %]
450
                            [% END %]
451
                            [% END %]
451
                        </td>
452
                        </td>
452
                        [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
453
                        [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
453
                          <td>
454
                          <td>
454
                              [% SWITCH category.checkprevcheckout %]
455
                              [% SWITCH category.checkprevcheckout %]
455
                              [% CASE 'yes' %]
456
                              [% CASE 'yes' %]
456
                              Yes
457
                              [% t('Yes') %]
457
                              [% CASE 'no' %]
458
                              [% CASE 'no' %]
458
                              No
459
                              [% t('No') %]
459
                              [% CASE 'inherit' %]
460
                              [% CASE 'inherit' %]
460
                              Inherit
461
                              [% t('Inherit') %]
461
                              [% END %]
462
                              [% END %]
462
                          </td>
463
                          </td>
463
                        [% END %]
464
                        [% END %]
464
                        <td>
465
                        <td>
465
                            [% SWITCH category.default_privacy %]
466
                            [% SWITCH category.default_privacy %]
466
                            [% CASE 'default' %]
467
                            [% CASE 'default' %]
467
                                Default
468
                                [% t('Default') %]
468
                            [% CASE 'never' %]
469
                            [% CASE 'never' %]
469
                                Never
470
                                [% t('Never') %]
470
                            [% CASE 'forever' %]
471
                            [% CASE 'forever' %]
471
                                Forever
472
                                [% t('Forever') %]
472
                            [% END %]
473
                            [% END %]
473
                        </td>
474
                        </td>
474
                        <td class="actions">
475
                        <td class="actions">
475
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/categories.pl?op=add_form&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-pencil"></i> Edit</a>
476
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/categories.pl?op=add_form&categorycode=[% category.categorycode |uri %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
476
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/categories.pl?op=delete_confirm&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-trash"></i> Delete</a>
477
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/categories.pl?op=delete_confirm&categorycode=[% category.categorycode |uri %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
477
                        </td>
478
                        </td>
478
                    </tr>
479
                    </tr>
479
                [% END %]
480
                [% END %]
480
            </tbody>
481
            </tbody>
481
        </table>
482
        </table>
482
    [% ELSE %]
483
    [% ELSE %]
483
        <div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categories.pl?op=add_form">Create a new category</a>.</div>
484
        <div class="dialog alert">[% t('No categories have been defined.') %] <a href="/cgi-bin/koha/admin/categories.pl?op=add_form">[% t('Create a new category') %]</a>.</div>
484
    [% END %]
485
    [% END %]
485
[% END %]
486
[% END %]
486
487
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt (-89 / +90 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; MARC check
5
<title>[% t('Koha › Administration › MARC check') %]
5
[% IF ( total ) %] :[% total %] errors found[% ELSE %] : Configuration OK![% END %]</title>
6
[% IF ( total ) %] :[% total %] [% t('errors found') %][% ELSE %] [% t(': Configuration OK!') %][% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="admin_checkmarc" class="admin">
9
<body id="admin_checkmarc" class="admin">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
12
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; MARC check
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› MARC check') %]
13
[% IF ( total ) %]: [% total %] errors found[% ELSE %] : Configuration OK![% END %]</div>
14
[% IF ( total ) %]: [% total %] [% t('errors found') %][% ELSE %] [% t(': Configuration OK!') %][% END %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
   
17
   
Lines 18-172 Link Here
18
	<div id="yui-main">
19
	<div id="yui-main">
19
	<div class="yui-b">
20
	<div class="yui-b">
20
21
21
<h1>MARC bibliographic framework test</h1>
22
<h1>[% t('MARC bibliographic framework test') %]</h1>
22
<table>
23
<table>
23
    <tr>
24
    <tr>
24
        <th>Test</th>
25
        <th>[% t('Test') %]</th>
25
        <th>Result</th>
26
        <th>[% t('Result') %]</th>
26
    </tr>
27
    </tr>
27
<!-- -->
28
<!-- -->
28
[% IF ( itemnum ) %]
29
[% IF ( itemnum ) %]
29
    <tr>
30
    <tr>
30
        <td>itemnum</td>
31
        <td>[% t('itemnum') %]</td>
31
        <td><ul><li>The field itemnum MUST be mapped </li>
32
        <td><ul><li>[% t('The field itemnum MUST be mapped') %] </li>
32
            <li>The corresponding subfield MUST be in with -1 (ignore) tab</li></ul></td>
33
            <li>[% t('The corresponding subfield MUST be in with -1 (ignore) tab') %]</li></ul></td>
33
    </tr>
34
    </tr>
34
[% ELSE %]
35
[% ELSE %]
35
    <tr>
36
    <tr>
36
        <td>OK</td>
37
        <td>[% t('OK') %]</td>
37
        <td>itemnum : the field itemnumber is mapped to a field in tab -1</td>
38
        <td>[% t('itemnum : the field itemnumber is mapped to a field in tab -1') %]</td>
38
    </tr>
39
    </tr>
39
[% END %]
40
[% END %]
40
<!-- -->
41
<!-- -->
41
[% IF ( itemfields ) %]
42
[% IF ( itemfields ) %]
42
    <tr>
43
    <tr>
43
        <td>item fields</td>
44
        <td>[% t('item fields') %]</td>
44
        <td>ALL items fields MUST :<br />
45
        <td>[% t('ALL items fields MUST :') %]<br />
45
            <ul><li>be mapped to the same tag,</li>
46
            <ul><li>[% t('be mapped to the same tag,') %]</li>
46
            <li>and they must all be in the 10 (items) tab</li></ul></td>
47
            <li>[% t('and they must all be in the 10 (items) tab') %]</li></ul></td>
47
    </tr>
48
    </tr>
48
[% ELSE %]
49
[% ELSE %]
49
    <tr>
50
    <tr>
50
        <td>OK</td>
51
        <td>[% t('OK') %]</td>
51
        <td>All item fields are in the same tag and in item tab</td>
52
        <td>[% t('All item fields are in the same tag and in item tab') %]</td>
52
    </tr>
53
    </tr>
53
[% END %]
54
[% END %]
54
<!-- -->
55
<!-- -->
55
    [% IF ( itemtags ) %]
56
    [% IF ( itemtags ) %]
56
        <tr>
57
        <tr>
57
            <td>Item tag</td>
58
            <td>[% t('Item tag') %]</td>
58
            <td>There is more than 1 MARC tag related to items tab (10) : [% itemtags %]</td>
59
            <td>[% t('There is more than 1 MARC tag related to items tab (10) :') %] [% itemtags %]</td>
59
        </tr>
60
        </tr>
60
    [% ELSE %]
61
    [% ELSE %]
61
        <tr>
62
        <tr>
62
            <td>OK</td>
63
            <td>[% t('OK') %]</td>
63
            <td>Only 1 MARC tag mapped to items</td>
64
            <td>[% t('Only 1 MARC tag mapped to items') %]</td>
64
        </tr>
65
        </tr>
65
    [% END %]
66
    [% END %]
66
    <!--  -->
67
    <!--  -->
67
[% IF ( itemtype ) %]
68
[% IF ( itemtype ) %]
68
    <tr>
69
    <tr>
69
        <td>itemtype NOT mapped</td>
70
        <td>[% t('itemtype NOT mapped') %]</td>
70
        <td>the biblioitems.itemtype field MUST :<br />
71
        <td>[% t('the biblioitems.itemtype field MUST :') %]<br />
71
            <ul><li>be mapped to a MARC subfield, </li>
72
            <ul><li>[% t('be mapped to a MARC subfield,') %] </li>
72
            <li>the corresponding subfield MUST have "Authorized value" set to "itemtype"</li></ul></td>
73
            <li>[% t('the corresponding subfield MUST have &#34;Authorized value&#34; set to &#34;itemtype&#34;') %]</li></ul></td>
73
    </tr>
74
    </tr>
74
[% ELSE %]
75
[% ELSE %]
75
    <tr>
76
    <tr>
76
        <td>OK</td>
77
        <td>[% t('OK') %]</td>
77
        <td>biblioitems.itemtype defined</td>
78
        <td>[% t('biblioitems.itemtype defined') %]</td>
78
    </tr>
79
    </tr>
79
[% END %]
80
[% END %]
80
<!-- -->
81
<!-- -->
81
[% IF ( branch ) %]
82
[% IF ( branch ) %]
82
    <tr>
83
    <tr>
83
        <td>homebranch NOT mapped</td>
84
        <td>[% t('homebranch NOT mapped') %]</td>
84
        <td>the items.homebranch field MUST :<br />
85
        <td>[% t('the items.homebranch field MUST :') %]<br />
85
            <ul><li>be mapped to a MARC subfield,</li>
86
            <ul><li>[% t('be mapped to a MARC subfield,') %]</li>
86
            <li>the corresponding subfield MUST have "Authorized value" set to "branches"</li></ul></td>
87
            <li>[% t('the corresponding subfield MUST have &#34;Authorized value&#34; set to &#34;branches&#34;') %]</li></ul></td>
87
    </tr>
88
    </tr>
88
[% ELSE %]
89
[% ELSE %]
89
    <tr>
90
    <tr>
90
        <td>OK</td>
91
        <td>[% t('OK') %]</td>
91
        <td>homebranch defined</td>
92
        <td>[% t('homebranch defined') %]</td>
92
    </tr>
93
    </tr>
93
[% END %]
94
[% END %]
94
<!-- -->
95
<!-- -->
95
[% IF ( holdingbranch ) %]
96
[% IF ( holdingbranch ) %]
96
    <tr>
97
    <tr>
97
        <td>holdingbranch NOT mapped</td>
98
        <td>[% t('holdingbranch NOT mapped') %]</td>
98
        <td>the items.holdingbranch field MUST :<br />
99
        <td>[% t('the items.holdingbranch field MUST :') %]<br />
99
            <ul><li>be mapped to a MARC subfield, </li>
100
            <ul><li>[% t('be mapped to a MARC subfield,') %] </li>
100
            <li>the corresponding subfield MUST have "Authorized value" set to "branches"</li></ul></td>
101
            <li>[% t('the corresponding subfield MUST have &#34;Authorized value&#34; set to &#34;branches&#34;') %]</li></ul></td>
101
    </tr>
102
    </tr>
102
[% ELSE %]
103
[% ELSE %]
103
    <tr>
104
    <tr>
104
        <td>OK</td>
105
        <td>[% t('OK') %]</td>
105
        <td>holdingbranch defined</td>
106
        <td>[% t('holdingbranch defined') %]</td>
106
    </tr>
107
    </tr>
107
[% END %]
108
[% END %]
108
<!-- -->
109
<!-- -->
109
[% IF ( itemtypes_empty ) %]
110
[% IF ( itemtypes_empty ) %]
110
    <tr>
111
    <tr>
111
        <td>item type not defined</td>
112
        <td>[% t('item type not defined') %]</td>
112
        <td>at least 1 item type must be defined</td>
113
        <td>[% t('at least 1 item type must be defined') %]</td>
113
    </tr>
114
    </tr>
114
[% ELSE %]
115
[% ELSE %]
115
    <tr>
116
    <tr>
116
        <td>OK</td>
117
        <td>[% t('OK') %]</td>
117
        <td>at least 1 item type defined</td>
118
        <td>[% t('at least 1 item type defined') %]</td>
118
    </tr>
119
    </tr>
119
[% END %]
120
[% END %]
120
<!-- -->
121
<!-- -->
121
[% IF ( branches_empty ) %]
122
[% IF ( branches_empty ) %]
122
    <tr>
123
    <tr>
123
        <td>library not defined</td>
124
        <td>[% t('library not defined') %]</td>
124
        <td>at least 1 library must be defined</td>
125
        <td>[% t('at least 1 library must be defined') %]</td>
125
    </tr>
126
    </tr>
126
[% ELSE %] 
127
[% ELSE %] 
127
    <tr>
128
    <tr>
128
        <td>OK</td>             
129
        <td>[% t('OK') %]</td>             
129
        <td>at least 1 library defined</td>
130
        <td>[% t('at least 1 library defined') %]</td>
130
    </tr>                                       
131
    </tr>                                       
131
[% END %]
132
[% END %]
132
<!-- -->
133
<!-- -->
133
[% IF ( biblionumber ) %]
134
[% IF ( biblionumber ) %]
134
    <tr>
135
    <tr>
135
        <td>biblio and biblionumber</td>
136
        <td>[% t('biblio and biblionumber') %]</td>
136
        <td>The biblio.biblionumber and biblioitems.biblioitemnumber fields be mapped to a MARC subfield,</td>
137
        <td>[% t('The biblio.biblionumber and biblioitems.biblioitemnumber fields be mapped to a MARC subfield,') %]</td>
137
    </tr>
138
    </tr>
138
[% ELSE %]
139
[% ELSE %]
139
    <tr>
140
    <tr>
140
        <td>OK</td>
141
        <td>[% t('OK') %]</td>
141
        <td>biblionumber and biblioitemnumber mapped correctly</td>
142
        <td>[% t('biblionumber and biblioitemnumber mapped correctly') %]</td>
142
    </tr>
143
    </tr>
143
[% END %]
144
[% END %]
144
145
145
    [% IF ( frameworknull ) %]
146
    [% IF ( frameworknull ) %]
146
        <tr>
147
        <tr>
147
            <td>framework values</td>
148
            <td>[% t('framework values') %]</td>
148
            <td>there is a null value in a frameworkcode. Check the following tables<br />
149
            <td>[% t('there is a null value in a frameworkcode. Check the following tables') %]<br />
149
                <li>select * from marc_subfield_structure where frameworkcode is NULL</li>
150
                <li>[% t('select * from marc_subfield_structure where frameworkcode is NULL') %]</li>
150
                <li>select * from marc_tag_structure where frameworkcode is NULL</li>
151
                <li>[% t('select * from marc_tag_structure where frameworkcode is NULL') %]</li>
151
            </td>
152
            </td>
152
        </tr>
153
        </tr>
153
    [% ELSE %]
154
    [% ELSE %]
154
        <tr>
155
        <tr>
155
            <td>OK</td>
156
            <td>[% t('OK') %]</td>
156
            <td>no NULL value in frameworkcode</td>
157
            <td>[% t('no NULL value in frameworkcode') %]</td>
157
        </tr>
158
        </tr>
158
    [% END %]
159
    [% END %]
159
160
160
    [% IF ( inconsistent_tabs ) %]
161
    [% IF ( inconsistent_tabs ) %]
161
        <tr>
162
        <tr>
162
            <td style="vertical-align:top;">subfields not in same tabs</td>
163
            <td style="vertical-align:top;">[% t('subfields not in same tabs') %]</td>
163
            <td>Not all subfields for the following tags are in the same tab (or marked 'ignored').
164
            <td>[% t('Not all subfields for the following tags are in the same tab (or marked \'ignored\').') %]
164
                <table>
165
                <table>
165
                    <tr>
166
                    <tr>
166
                        <th>Code</th>
167
                        <th>[% t('Code') %]</th>
167
                        <th>Description</th>
168
                        <th>[% t('Description') %]</th>
168
                        <th>Tag</th>
169
                        <th>[% t('Tag') %]</th>
169
                        <th>Tabs in use</th>
170
                        <th>[% t('Tabs in use') %]</th>
170
                    </tr>
171
                    </tr>
171
                    [% FOREACH tab_inf IN tab_info %]
172
                    [% FOREACH tab_inf IN tab_info %]
172
                        <tr>
173
                        <tr>
Lines 174-180 Link Here
174
                            [% IF ( tab_inf.frameworkcode ) %]
175
                            [% IF ( tab_inf.frameworkcode ) %]
175
                                <td>[% tab_inf.frameworktext %]</td>
176
                                <td>[% tab_inf.frameworktext %]</td>
176
                            [% ELSE %]
177
                            [% ELSE %]
177
                                <td>Default framework</td>
178
                                <td>[% t('Default framework') %]</td>
178
                            [% END %]
179
                            [% END %]
179
                            <td>[% tab_inf.tagfield %]</td>
180
                            <td>[% tab_inf.tagfield %]</td>
180
                            <td>[% tab_inf.tabs %]</td>
181
                            <td>[% tab_inf.tabs %]</td>
Lines 185-206 Link Here
185
        </tr>
186
        </tr>
186
    [% ELSE %]
187
    [% ELSE %]
187
        <tr>
188
        <tr>
188
            <td>OK</td>
189
            <td>[% t('OK') %]</td>
189
            <td>all subfields for each tag are in the same tab (or ignored)</td>
190
            <td>[% t('all subfields for each tag are in the same tab (or ignored)') %]</td>
190
        </tr>
191
        </tr>
191
    [% END %]
192
    [% END %]
192
193
193
    [% IF ( invalid_authtypecodes ) %]
194
    [% IF ( invalid_authtypecodes ) %]
194
        <tr>
195
        <tr>
195
            <td style="vertical-align:top;">invalid authority types</td>
196
            <td style="vertical-align:top;">[% t('invalid authority types') %]</td>
196
            <td>Not all authority types referred to by the frameworks are defined.
197
            <td>[% t('Not all authority types referred to by the frameworks are defined.') %]
197
                <table>
198
                <table>
198
                    <tr>
199
                    <tr>
199
                        <th>Framework code</th>
200
                        <th>[% t('Framework code') %]</th>
200
                        <th>Framework description</th>
201
                        <th>[% t('Framework description') %]</th>
201
                        <th>Tag</th>
202
                        <th>[% t('Tag') %]</th>
202
                        <th>Subfield</th>
203
                        <th>[% t('Subfield') %]</th>
203
                        <th>Invalid authority type</th>
204
                        <th>[% t('Invalid authority type') %]</th>
204
                    </tr>
205
                    </tr>
205
                    [% FOREACH authtypecode_inf IN authtypecode_info %]
206
                    [% FOREACH authtypecode_inf IN authtypecode_info %]
206
                        <tr>
207
                        <tr>
Lines 208-214 Link Here
208
                            [% IF ( authtypecode_inf.frameworkcode ) %]
209
                            [% IF ( authtypecode_inf.frameworkcode ) %]
209
                                <td>[% authtypecode_inf.frameworktext %]</td>
210
                                <td>[% authtypecode_inf.frameworktext %]</td>
210
                            [% ELSE %]
211
                            [% ELSE %]
211
                                <td>Default framework</td>
212
                                <td>[% t('Default framework') %]</td>
212
                            [% END %]
213
                            [% END %]
213
                            <td>[% authtypecode_inf.tagfield %]</td>
214
                            <td>[% authtypecode_inf.tagfield %]</td>
214
                            <td>[% authtypecode_inf.tagsubfield %]</td>
215
                            <td>[% authtypecode_inf.tagsubfield %]</td>
Lines 220-240 Link Here
220
        </tr>
221
        </tr>
221
    [% ELSE %]
222
    [% ELSE %]
222
        <tr>
223
        <tr>
223
            <td>OK</td>
224
            <td>[% t('OK') %]</td>
224
            <td>all authority types used in the frameworks are defined</td>
225
            <td>[% t('all authority types used in the frameworks are defined') %]</td>
225
        </tr>
226
        </tr>
226
    [% END %]
227
    [% END %]
227
228
228
    [% IF ( permanent_location_mapped ) %]
229
    [% IF ( permanent_location_mapped ) %]
229
        <tr>
230
        <tr>
230
            <td style="vertical-align:top;">items.permanent_location mapped</td>
231
            <td style="vertical-align:top;">[% t('items.permanent_location mapped') %]</td>
231
            <td>The following mappings exist for items.permanent_location, and they shouldn't.
232
            <td>[% t('The following mappings exist for items.permanent_location, and they shouldn\'t.') %]
232
                <table>
233
                <table>
233
                    <tr>
234
                    <tr>
234
                        <th>Framework code</th>
235
                        <th>[% t('Framework code') %]</th>
235
                        <th>Framework description</th>
236
                        <th>[% t('Framework description') %]</th>
236
                        <th>Tag</th>
237
                        <th>[% t('Tag') %]</th>
237
                        <th>Subfield</th>
238
                        <th>[% t('Subfield') %]</th>
238
                    </tr>
239
                    </tr>
239
                    [% FOREACH mapped_perm_loc IN mapped_permanent_location %]
240
                    [% FOREACH mapped_perm_loc IN mapped_permanent_location %]
240
                        <tr>
241
                        <tr>
Lines 242-248 Link Here
242
                            [% IF ( mapped_perm_loc.frameworkcode ) %]
243
                            [% IF ( mapped_perm_loc.frameworkcode ) %]
243
                                <td>[% mapped_perm_loc.frameworktext %]</td>
244
                                <td>[% mapped_perm_loc.frameworktext %]</td>
244
                            [% ELSE %]
245
                            [% ELSE %]
245
                                <td>Default framework</td>
246
                                <td>[% t('Default framework') %]</td>
246
                            [% END %]
247
                            [% END %]
247
                            <td>[% mapped_perm_loc.tagfield %]</td>
248
                            <td>[% mapped_perm_loc.tagfield %]</td>
248
                            <td>[% mapped_perm_loc.tagsubfield %]</td>
249
                            <td>[% mapped_perm_loc.tagsubfield %]</td>
Lines 253-273 Link Here
253
        </tr>
254
        </tr>
254
    [% ELSE %]
255
    [% ELSE %]
255
        <tr>
256
        <tr>
256
            <td>OK</td>
257
            <td>[% t('OK') %]</td>
257
            <td>items.permanent_location is not mapped on the frameworks</td>
258
            <td>[% t('items.permanent_location is not mapped on the frameworks') %]</td>
258
        </tr>
259
        </tr>
259
    [% END %]
260
    [% END %]
260
261
261
<!-- -->
262
<!-- -->
262
[% IF ( total ) %]
263
[% IF ( total ) %]
263
    <tr>
264
    <tr>
264
        <td>TOTAL</td>
265
        <td>[% t('TOTAL') %]</td>
265
        <td>You have [% total %] error(s) in your MARC configuration. Please fix them before using Koha</td>
266
        <td>[% t('You have') %] [% total %] [% t('error(s) in your MARC configuration. Please fix them before using Koha') %]</td>
266
    </tr>
267
    </tr>
267
</table>
268
</table>
268
[% ELSE %]
269
[% ELSE %]
269
    </table>
270
    </table>
270
        <p><b>Configuration OK, you don't have errors in your MARC parameters table</b></p>
271
        <p><b>[% t('Configuration OK, you don\'t have errors in your MARC parameters table') %]</b></p>
271
[% END %]
272
[% END %]
272
273
273
274
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-43 / +44 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; [% IF op =='add_form' %]Cities &rsaquo; [% IF city.cityid %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF op == 'delete_confirm' %]Cities &rsaquo; Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
5
<title>[% t('Koha › Administration ›') %] [% IF op =='add_form' %][% t('Cities ›') %] [% IF city.cityid %] [% t('Modify city') %][% ELSE %] [% t('New city') %][% END %][% ELSE %][% IF op == 'delete_confirm' %][% t('Cities › Confirm deletion of city') %][% ELSE %] [% t('Cities') %][% END %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 11-23 Link Here
11
[% INCLUDE 'cities-admin-search.inc' %]
12
[% INCLUDE 'cities-admin-search.inc' %]
12
13
13
<div id="breadcrumbs">
14
<div id="breadcrumbs">
14
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
15
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
15
    &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
16
    › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
16
    &rsaquo; <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
17
    › <a href="/cgi-bin/koha/admin/cities.pl">[% t('Cities') %]</a>
17
    [% IF op == 'add_form' %]
18
    [% IF op == 'add_form' %]
18
    &rsaquo; [% IF city.cityid %]Modify[% ELSE %]New[% END %] City
19
    › [% IF city.cityid %][% t('Modify') %][% ELSE %][% t('New') %][% END %] [% t('City') %]
19
    [% ELSIF op == 'delete_confirm' %]
20
    [% ELSIF op == 'delete_confirm' %]
20
    &rsaquo; Confirm deletion of city
21
    [% t('› Confirm deletion of city') %]
21
    [% END %]
22
    [% END %]
22
</div>
23
</div>
23
24
Lines 31-49 Link Here
31
    <div class="dialog [% m.type %]">
32
    <div class="dialog [% m.type %]">
32
        [% SWITCH m.code %]
33
        [% SWITCH m.code %]
33
        [% CASE 'error_on_update' %]
34
        [% CASE 'error_on_update' %]
34
            An error occurred when updating this city. Perhaps it already exists.
35
            [% t('An error occurred when updating this city. Perhaps it already exists.') %]
35
        [% CASE 'error_on_insert' %]
36
        [% CASE 'error_on_insert' %]
36
            An error occurred when adding this city. The city id might already exist.
37
            [% t('An error occurred when adding this city. The city id might already exist.') %]
37
        [% CASE 'error_on_delete' %]
38
        [% CASE 'error_on_delete' %]
38
            An error occurred when deleting this city. Check the logs.
39
            [% t('An error occurred when deleting this city. Check the logs.') %]
39
        [% CASE 'success_on_update' %]
40
        [% CASE 'success_on_update' %]
40
            City updated successfully.
41
            [% t('City updated successfully.') %]
41
        [% CASE 'success_on_insert' %]
42
        [% CASE 'success_on_insert' %]
42
            City added successfully.
43
            [% t('City added successfully.') %]
43
        [% CASE 'success_on_delete' %]
44
        [% CASE 'success_on_delete' %]
44
            City deleted successfully.
45
            [% t('City deleted successfully.') %]
45
        [% CASE 'already_exists' %]
46
        [% CASE 'already_exists' %]
46
            This city already exists.
47
            [% t('This city already exists.') %]
47
        [% CASE %]
48
        [% CASE %]
48
            [% m.code %]
49
            [% m.code %]
49
        [% END %]
50
        [% END %]
Lines 52-60 Link Here
52
53
53
[% IF op == 'add_form' %]
54
[% IF op == 'add_form' %]
54
    [% IF city %]
55
    [% IF city %]
55
        <h1>Modify a city</h1>
56
        <h1>[% t('Modify a city') %]</h1>
56
    [% ELSE %]
57
    [% ELSE %]
57
        <h1>New city</h1>
58
        <h1>[% t('New city') %]</h1>
58
    [% END %]
59
    [% END %]
59
60
60
    <form action="/cgi-bin/koha/admin/cities.pl" name="Aform" method="post" class="validated">
61
    <form action="/cgi-bin/koha/admin/cities.pl" name="Aform" method="post" class="validated">
Lines 64-85 Link Here
64
        <fieldset class="rows">
65
        <fieldset class="rows">
65
            <ol>
66
            <ol>
66
                [% IF city %]
67
                [% IF city %]
67
                    <li><span class="label">City ID: </span>[% city.cityid %]</li>
68
                    <li><span class="label">[% t('City ID:') %] </span>[% city.cityid %]</li>
68
                [% END %]
69
                [% END %]
69
                <li>
70
                <li>
70
                    <label for="city_name" class="required">City: </label>
71
                    <label for="city_name" class="required">[% t('City:') %] </label>
71
                    <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city.city_name |html %]" required="required" class="required" /> <span class="required">Required</span>
72
                    <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city.city_name |html %]" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
72
                </li>
73
                </li>
73
                <li>
74
                <li>
74
                    <label for="city_state">State: </label>
75
                    <label for="city_state">[% t('State:') %] </label>
75
                    <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city.city_state |html %]" />
76
                    <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city.city_state |html %]" />
76
                </li>
77
                </li>
77
                <li>
78
                <li>
78
                    <label for="city_zipcode" class="required">ZIP/Postal code: </label>
79
                    <label for="city_zipcode" class="required">[% t('ZIP/Postal code:') %] </label>
79
                    <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city.city_zipcode %]" required="required" class="required" /> <span class="required">Required</span>
80
                    <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city.city_zipcode %]" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
80
                </li>
81
                </li>
81
                <li>
82
                <li>
82
                    <label for="city_country">Country: </label>
83
                    <label for="city_country">[% t('Country:') %] </label>
83
                    <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city.city_country |html %]" />
84
                    <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city.city_country |html %]" />
84
                </li>
85
                </li>
85
            </ol>
86
            </ol>
Lines 87-124 Link Here
87
88
88
        <fieldset class="action">
89
        <fieldset class="action">
89
            <input type="submit" value="Submit" />
90
            <input type="submit" value="Submit" />
90
            <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
91
            <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">[% t('Cancel') %]</a>
91
        </fieldset>
92
        </fieldset>
92
    </form>
93
    </form>
93
[% END %]
94
[% END %]
94
95
95
[% IF op == 'delete_confirm' %]
96
[% IF op == 'delete_confirm' %]
96
    <div class="dialog alert">
97
    <div class="dialog alert">
97
        <h3>Delete city "[% city.city_name %]?"</h3>
98
        <h3>[% t('Delete city &#34;') %][% city.city_name %]?"</h3>
98
        <table>
99
        <table>
99
            <tr><th>City id</th>
100
            <tr><th>[% t('City id') %]</th>
100
                <td>[% city.cityid %]</td>
101
                <td>[% city.cityid %]</td>
101
            </tr>
102
            </tr>
102
            <tr><th>City</th>
103
            <tr><th>[% t('City') %]</th>
103
                <td>[% city.city_name %]</td>
104
                <td>[% city.city_name %]</td>
104
            </tr>
105
            </tr>
105
            <tr><th>State</th>
106
            <tr><th>[% t('State') %]</th>
106
                <td>[% city.city_state %]</td>
107
                <td>[% city.city_state %]</td>
107
            </tr>
108
            </tr>
108
            <tr><th>ZIP/Postal code</th>
109
            <tr><th>[% t('ZIP/Postal code') %]</th>
109
                <td>[% city.city_zipcode %]</td>
110
                <td>[% city.city_zipcode %]</td>
110
            </tr>
111
            </tr>
111
            <tr><th>Country</th>
112
            <tr><th>[% t('Country') %]</th>
112
                <td>[% city.city_country %]</td>
113
                <td>[% city.city_country %]</td>
113
            </tr>
114
            </tr>
114
        </table>
115
        </table>
115
        <form action="/cgi-bin/koha/admin/cities.pl" method="post">
116
        <form action="/cgi-bin/koha/admin/cities.pl" method="post">
116
            <input type="hidden" name="op" value="delete_confirmed" />
117
            <input type="hidden" name="op" value="delete_confirmed" />
117
            <input type="hidden" name="cityid" value="[% city.cityid %]" />
118
            <input type="hidden" name="cityid" value="[% city.cityid %]" />
118
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
119
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
119
        </form>
120
        </form>
120
        <form action="/cgi-bin/koha/admin/cities.pl" method="get">
121
        <form action="/cgi-bin/koha/admin/cities.pl" method="get">
121
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
122
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
122
        </form>
123
        </form>
123
    </div>
124
    </div>
124
[% END %]
125
[% END %]
Lines 126-148 Link Here
126
[% IF op == 'list' %]
127
[% IF op == 'list' %]
127
128
128
    <div id="toolbar" class="btn-toolbar">
129
    <div id="toolbar" class="btn-toolbar">
129
        <a class="btn btn-default btn-sm" id="newcity" href="/cgi-bin/koha/admin/cities.pl?op=add_form"><i class="fa fa-plus"></i> New city</a>
130
        <a class="btn btn-default btn-sm" id="newcity" href="/cgi-bin/koha/admin/cities.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New city') %]</a>
130
    </div>
131
    </div>
131
132
132
    <h2>Cities</h2>
133
    <h2>[% t('Cities') %]</h2>
133
    [% IF searchfield %]
134
    [% IF searchfield %]
134
        Searching: [% searchfield |html %]
135
        [% t('Searching:') %] [% searchfield |html %]
135
    [% END %]
136
    [% END %]
136
137
137
    [% IF cities.count %]
138
    [% IF cities.count %]
138
        <table id="table_cities">
139
        <table id="table_cities">
139
            <thead>
140
            <thead>
140
                <th>City ID</th>
141
                <th>[% t('City ID') %]</th>
141
                <th>City</th>
142
                <th>[% t('City') %]</th>
142
                <th>State</th>
143
                <th>[% t('State') %]</th>
143
                <th>ZIP/Postal code</th>
144
                <th>[% t('ZIP/Postal code') %]</th>
144
                <th>Country</th>
145
                <th>[% t('Country') %]</th>
145
                <th>Actions</th>
146
                <th>[% t('Actions') %]</th>
146
            </thead>
147
            </thead>
147
            <tbody>
148
            <tbody>
148
                [% FOREACH city IN cities %]
149
                [% FOREACH city IN cities %]
Lines 153-160 Link Here
153
                    <td>[% city.city_zipcode %]</td>
154
                    <td>[% city.city_zipcode %]</td>
154
                    <td>[% city.city_country %]</td>
155
                    <td>[% city.city_country %]</td>
155
                    <td class="actions">
156
                    <td class="actions">
156
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/cities.pl?op=add_form&amp;cityid=[% city.cityid %]"><i class="fa fa-pencil"></i> Edit</a>
157
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/cities.pl?op=add_form&cityid=[% city.cityid %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
157
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&amp;cityid=[% city.cityid %]"><i class="fa fa-trash"></i> Delete</a>
158
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&cityid=[% city.cityid %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
158
                    </td>
159
                    </td>
159
                </tr>
160
                </tr>
160
                [% END %]
161
                [% END %]
Lines 162-168 Link Here
162
        </table>
163
        </table>
163
    [% ELSE %]
164
    [% ELSE %]
164
        <div class="dialog message">
165
        <div class="dialog message">
165
            There are no cities defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
166
            [% t('There are no cities defined.') %] <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">[% t('Create a new city') %]</a>.
166
        </div>
167
        </div>
167
    [% END %]
168
    [% END %]
168
[% END %]
169
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt (-75 / +76 lines)
Lines 1-21 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Classification sources
5
<title>[% t('Koha › Administration › Classification sources') %]
5
[% IF ( class_source_form ) %]
6
[% IF ( class_source_form ) %]
6
&rsaquo; 
7
7
    [% IF ( edit_class_source ) %]Modify classification source[% ELSE %]Add classification source[% END %]
8
    [% IF ( edit_class_source ) %][% t('Modify classification source') %][% ELSE %][% t('Add classification source') %][% END %]
8
[% END %]
9
[% END %]
9
[% IF ( sort_rule_form ) %]
10
[% IF ( sort_rule_form ) %]
10
&rsaquo;
11
11
    [% IF ( edit_sort_rule ) %]Modify filing rule[% ELSE %]Add filing rule[% END %]
12
    [% IF ( edit_sort_rule ) %][% t('Modify filing rule') %][% ELSE %][% t('Add filing rule') %][% END %]
12
[% END %]
13
[% END %]
13
[% IF ( delete_class_source_form ) %]
14
[% IF ( delete_class_source_form ) %]
14
  &rsaquo; Confirm deletion of classification source [% class_source %]
15
  [% t('› Confirm deletion of classification source') %] [% class_source %]
15
[% ELSIF ( delete_sort_rule_form ) %]
16
[% ELSIF ( delete_sort_rule_form ) %]
16
  &rsaquo; Confirm deletion of filing rule [% sort_rule %]
17
  [% t('› Confirm deletion of filing rule') %] [% sort_rule %]
17
[% ELSIF ( delete_sort_rule_impossible ) %]
18
[% ELSIF ( delete_sort_rule_impossible ) %]
18
  &rsaquo; Cannot delete filing rule [% sort_rule %]
19
  [% t('› Cannot delete filing rule') %] [% sort_rule %]
19
[% END %]
20
[% END %]
20
</title>
21
</title>
21
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
Lines 26-46 Link Here
26
[% INCLUDE 'prefs-admin-search.inc' %]
27
[% INCLUDE 'prefs-admin-search.inc' %]
27
28
28
<div id="breadcrumbs">
29
<div id="breadcrumbs">
29
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
30
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
30
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
31
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
31
&rsaquo; <a href="/cgi-bin/koha/admin/classsources.pl">Classification sources</a>
32
› <a href="/cgi-bin/koha/admin/classsources.pl">[% t('Classification sources') %]</a>
32
[% IF ( class_source_form ) %]
33
[% IF ( class_source_form ) %]
33
&rsaquo; [% IF ( edit_class_source ) %]Modify classification source[% ELSE %]Add classification source[% END %]
34
› [% IF ( edit_class_source ) %][% t('Modify classification source') %][% ELSE %][% t('Add classification source') %][% END %]
34
[% END %]
35
[% END %]
35
[% IF ( sort_rule_form ) %]
36
[% IF ( sort_rule_form ) %]
36
&rsaquo; [% IF ( edit_sort_rule ) %]Modify filing rule[% ELSE %]Add filing rule[% END %]
37
› [% IF ( edit_sort_rule ) %][% t('Modify filing rule') %][% ELSE %][% t('Add filing rule') %][% END %]
37
[% END %]
38
[% END %]
38
[% IF ( delete_class_source_form ) %]
39
[% IF ( delete_class_source_form ) %]
39
&rsaquo; Confirm deletion of classification source <span class="ex">'[% class_source %]'</span>
40
[% t('› Confirm deletion of classification source') %] <span class="ex">'[% class_source %]'</span>
40
[% ELSIF ( delete_sort_rule_form ) %]
41
[% ELSIF ( delete_sort_rule_form ) %]
41
&rsaquo; Confirm deletion of filing rule <span class="ex">'[% sort_rule %]'</span>
42
[% t('› Confirm deletion of filing rule') %] <span class="ex">'[% sort_rule %]'</span>
42
[% ELSIF ( delete_sort_rule_impossible ) %]
43
[% ELSIF ( delete_sort_rule_impossible ) %]
43
&rsaquo; Cannot delete filing rule <span class="ex">'[% sort_rule %]'</span>
44
[% t('› Cannot delete filing rule') %] <span class="ex">'[% sort_rule %]'</span>
44
[% END %]
45
[% END %]
45
</div>
46
</div>
46
47
Lines 51-59 Link Here
51
52
52
[% IF ( class_source_form ) %]
53
[% IF ( class_source_form ) %]
53
  [% IF ( edit_class_source ) %]
54
  [% IF ( edit_class_source ) %]
54
<h2>Modify classification source</h2>
55
<h2>[% t('Modify classification source') %]</h2>
55
  [% ELSE %]
56
  [% ELSE %]
56
<h2>Add classification source</h2>
57
<h2>[% t('Add classification source') %]</h2>
57
  [% END %]
58
  [% END %]
58
<form action="[% script_name %]" name="Aform" class="validated" method="post">
59
<form action="[% script_name %]" name="Aform" class="validated" method="post">
59
  <input type="hidden" name="op" value="[% confirm_op %]" />
60
  <input type="hidden" name="op" value="[% confirm_op %]" />
Lines 61-84 Link Here
61
    <ol>
62
    <ol>
62
      <li>
63
      <li>
63
          [% IF ( edit_class_source ) %]
64
          [% IF ( edit_class_source ) %]
64
		  <span class="label">Classification source code: </span>
65
		  <span class="label">[% t('Classification source code:') %] </span>
65
            <input type="hidden" name="class_source" value="[% class_source %]" />
66
            <input type="hidden" name="class_source" value="[% class_source %]" />
66
            [% class_source %]
67
            [% class_source %]
67
          [% ELSE %]
68
          [% ELSE %]
68
              <label class="required" for="class_source">Classification source code: </label>
69
              <label class="required" for="class_source">[% t('Classification source code:') %] </label>
69
              <input class="required" required="required" type="text" id="class_source" name="class_source"  size="10" maxlength="10" />
70
              <input class="required" required="required" type="text" id="class_source" name="class_source" size="10" maxlength="10" />
70
              <span class="required">Required</span>
71
              <span class="required">[% t('Required') %]</span>
71
          [% END %]
72
          [% END %]
72
       </li>
73
       </li>
73
       <li><label class="required" for="description">Description: </label>
74
       <li><label class="required" for="description">[% t('Description:') %] </label>
74
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% description |html %]" />
75
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% description |html %]" />
75
           <span class="required">Required</span>
76
           <span class="required">[% t('Required') %]</span>
76
       </li>
77
       </li>
77
       <li><label for="used">Source in use?</label>
78
       <li><label for="used">[% t('Source in use?') %]</label>
78
           [% IF ( used ) %]<input type="checkbox" id="used" name="used" value="used" checked="checked" />[% ELSE %]
79
           [% IF ( used ) %]<input type="checkbox" id="used" name="used" value="used" checked="checked" />[% ELSE %]
79
		  <input type="checkbox" id="used" name="used" value="used" />[% END %]
80
		  <input type="checkbox" id="used" name="used" value="used" />[% END %]
80
       </li>
81
       </li>
81
       <li><label class="required" for="sort_rule">Filing rule: </label>
82
       <li><label class="required" for="sort_rule">[% t('Filing rule:') %] </label>
82
           <select class="required" required="required" id="sort_rule" name="sort_rule">
83
           <select class="required" required="required" id="sort_rule" name="sort_rule">
83
           [% FOREACH rules_dropdow IN rules_dropdown %]
84
           [% FOREACH rules_dropdow IN rules_dropdown %]
84
             [% IF ( rules_dropdow.selected ) %]
85
             [% IF ( rules_dropdow.selected ) %]
Lines 88-109 Link Here
88
             [% END %]
89
             [% END %]
89
           [% END %]
90
           [% END %]
90
           </select>
91
           </select>
91
           <span class="required">Required</span>
92
           <span class="required">[% t('Required') %]</span>
92
       </li>    
93
       </li>    
93
    </ol>
94
    </ol>
94
  </fieldset>
95
  </fieldset>
95
  <fieldset class="action">
96
  <fieldset class="action">
96
    <input type="submit" value="Save" />
97
    <input type="submit" value="Save" />
97
    <a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
98
    <a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">[% t('Cancel') %]</a>
98
  </fieldset>
99
  </fieldset>
99
</form>
100
</form>
100
[% END %]
101
[% END %]
101
102
102
[% IF ( sort_rule_form ) %]
103
[% IF ( sort_rule_form ) %]
103
  [% IF ( edit_sort_rule ) %]
104
  [% IF ( edit_sort_rule ) %]
104
<h2>Modify filing rule</h2>
105
<h2>[% t('Modify filing rule') %]</h2>
105
  [% ELSE %]
106
  [% ELSE %]
106
<h2>Add filing rule</h2>
107
<h2>[% t('Add filing rule') %]</h2>
107
  [% END %]
108
  [% END %]
108
<form action="[% script_name %]" name="Aform" class="validated" method="post">
109
<form action="[% script_name %]" name="Aform" class="validated" method="post">
109
  <input type="hidden" name="op" value="[% confirm_op %]" />
110
  <input type="hidden" name="op" value="[% confirm_op %]" />
Lines 111-130 Link Here
111
    <ol>
112
    <ol>
112
      <li>
113
      <li>
113
          [% IF ( edit_sort_rule ) %]
114
          [% IF ( edit_sort_rule ) %]
114
		  <span class="label">Filing rule code: </span>
115
		  <span class="label">[% t('Filing rule code:') %] </span>
115
            <input type="hidden" name="sort_rule" value="[% sort_rule %]" />
116
            <input type="hidden" name="sort_rule" value="[% sort_rule %]" />
116
            [% sort_rule %]
117
            [% sort_rule %]
117
          [% ELSE %]
118
          [% ELSE %]
118
              <label for="sort_rule" class="required">Filing rule code: </label>
119
              <label for="sort_rule" class="required">[% t('Filing rule code:') %] </label>
119
              <input class="required" required="required" type="text" id="sort_rule" name="sort_rule"  size="10" maxlength="10" />
120
              <input class="required" required="required" type="text" id="sort_rule" name="sort_rule" size="10" maxlength="10" />
120
              <span class="required">Required</span>
121
              <span class="required">[% t('Required') %]</span>
121
          [% END %]
122
          [% END %]
122
       </li>
123
       </li>
123
       <li><label for="description" class="required">Description: </label>
124
       <li><label for="description" class="required">[% t('Description:') %] </label>
124
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% description |html %]" />
125
           <input class="required" required="required" type="text" id="description" name="description" size="50" maxlength="250" value="[% description |html %]" />
125
           <span class="required">Required</span>
126
           <span class="required">[% t('Required') %]</span>
126
       </li>
127
       </li>
127
       <li><label for="sort_routine" class="required">Filing routine: </label>
128
       <li><label for="sort_routine" class="required">[% t('Filing routine:') %] </label>
128
           <select class="required" required="required" id="sort_routine" name="sort_routine">
129
           <select class="required" required="required" id="sort_routine" name="sort_routine">
129
           [% FOREACH routines_dropdow IN routines_dropdown %]
130
           [% FOREACH routines_dropdow IN routines_dropdown %]
130
             [% IF ( routines_dropdow.selected ) %]
131
             [% IF ( routines_dropdow.selected ) %]
Lines 134-185 Link Here
134
             [% END %]
135
             [% END %]
135
           [% END %]
136
           [% END %]
136
           </select>
137
           </select>
137
           <span class="required">Required</span>
138
           <span class="required">[% t('Required') %]</span>
138
       </li>
139
       </li>
139
    </ol>
140
    </ol>
140
  </fieldset>
141
  </fieldset>
141
    <fieldset class="action">
142
    <fieldset class="action">
142
        <input type="submit" value="Save" />
143
        <input type="submit" value="Save" />
143
        <a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
144
        <a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">[% t('Cancel') %]</a>
144
    </fieldset>
145
    </fieldset>
145
</form>
146
</form>
146
[% END %]
147
[% END %]
147
148
148
[% IF ( delete_class_source_form ) %]
149
[% IF ( delete_class_source_form ) %]
149
    <div class="dialog alert">
150
    <div class="dialog alert">
150
        <h3>Confirm deletion of classification source <span class="ex">'[% class_source %]'</span>?</h3>
151
        <h3>[% t('Confirm deletion of classification source') %] <span class="ex">'[% class_source %]'</span>?</h3>
151
        <form action="[% script_name %]" name="Aform" method="post">
152
        <form action="[% script_name %]" name="Aform" method="post">
152
            <input type="hidden" name="op" value="[% confirm_op %]" />
153
            <input type="hidden" name="op" value="[% confirm_op %]" />
153
            <input type="hidden" name="class_source" value="[% class_source %]" />
154
            <input type="hidden" name="class_source" value="[% class_source %]" />
154
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete classification source</button>
155
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete classification source') %]</button>
155
        </form>
156
        </form>
156
        <form action="[% script_name %]" method="get">
157
        <form action="[% script_name %]" method="get">
157
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
158
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
158
        </form>
159
        </form>
159
    </div>
160
    </div>
160
[% END %]
161
[% END %]
161
162
162
[% IF ( delete_sort_rule_form ) %]
163
[% IF ( delete_sort_rule_form ) %]
163
    <div class="dialog alert">
164
    <div class="dialog alert">
164
        <h3>Confirm deletion of filing rule <span class="ex">'[% sort_rule %]'</span>?</h3>
165
        <h3>[% t('Confirm deletion of filing rule') %] <span class="ex">'[% sort_rule %]'</span>?</h3>
165
        <form action="[% script_name %]" name="Aform" method="post">
166
        <form action="[% script_name %]" name="Aform" method="post">
166
            <input type="hidden" name="op" value="[% confirm_op %]" />
167
            <input type="hidden" name="op" value="[% confirm_op %]" />
167
            <input type="hidden" name="sort_rule" value="[% sort_rule %]" />
168
            <input type="hidden" name="sort_rule" value="[% sort_rule %]" />
168
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete filing rule</button>
169
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete filing rule') %]</button>
169
        </form>
170
        </form>
170
        <form action="[% script_name %]" method="get">
171
        <form action="[% script_name %]" method="get">
171
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
172
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
172
        </form>
173
        </form>
173
    </div>
174
    </div>
174
[% END %]
175
[% END %]
175
176
176
[% IF ( delete_sort_rule_impossible ) %]
177
[% IF ( delete_sort_rule_impossible ) %]
177
<div class="dialog alert"><h3>Cannot delete filing rule <span class="ex">'[% sort_rule %]'</span></h3>
178
<div class="dialog alert"><h3>[% t('Cannot delete filing rule') %] <span class="ex">'[% sort_rule %]'</span></h3>
178
    <p>The filing rule [% sort_rule %] is used by at least one classification source.  Please
179
    <p>[% t('The filing rule') %] [% sort_rule %] [% t('is used by at least one classification source.') %]  [% t('Please') %]
179
    remove it from all classification source definitions before trying again.
180
    [% t('remove it from all classification source definitions before trying again.') %]
180
    </p>
181
    </p>
181
    <form action="[% script_name %]" method="get">
182
    <form action="[% script_name %]" method="get">
182
          <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
183
          <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('OK') %]</button>
183
    </form>
184
    </form>
184
</div>
185
</div>
185
[% END %]
186
[% END %]
Lines 187-250 Link Here
187
[% IF ( display_lists ) %]
188
[% IF ( display_lists ) %]
188
189
189
<div id="toolbar" class="btn-toolbar">
190
<div id="toolbar" class="btn-toolbar">
190
    <a class="btn btn-default btn-sm" id="newsource" href="[% script_name %]?op=add_source"><i class="fa fa-plus"></i> New classification source</a>
191
    <a class="btn btn-default btn-sm" id="newsource" href="[% script_name %]?op=add_source"><i class="fa fa-plus"></i> [% t('New classification source') %]</a>
191
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_sort_rule"><i class="fa fa-plus"></i> New filing rule</a>
192
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_sort_rule"><i class="fa fa-plus"></i> [% t('New filing rule') %]</a>
192
</div>
193
</div>
193
194
194
<h2>Classification sources</h2>
195
<h2>[% t('Classification sources') %]</h2>
195
[% IF ( added_source ) %]
196
[% IF ( added_source ) %]
196
<div class="dialog message">Added classification source [% added_source %]</div>
197
<div class="dialog message">[% t('Added classification source') %] [% added_source %]</div>
197
[% END %]
198
[% END %]
198
[% IF ( edited_source ) %]
199
[% IF ( edited_source ) %]
199
<div class="dialog message">Modified classification source [% edited_source %]</div>
200
<div class="dialog message">[% t('Modified classification source') %] [% edited_source %]</div>
200
[% END %]
201
[% END %]
201
[% IF ( deleted_source ) %]
202
[% IF ( deleted_source ) %]
202
<div class="dialog message">Deleted classification source [% deleted_source %]</div>
203
<div class="dialog message">[% t('Deleted classification source') %] [% deleted_source %]</div>
203
[% END %]
204
[% END %]
204
[% IF ( failed_add_source ) %]
205
[% IF ( failed_add_source ) %]
205
<div class="dialog message">Failed to add classification source [% failed_add_source %]. Perhaps the code already exists?</div>
206
<div class="dialog message">[% t('Failed to add classification source') %] [% failed_add_source %][% t('. Perhaps the code already exists?') %]</div>
206
[% END %]
207
[% END %]
207
<table>
208
<table>
208
  <tr>
209
  <tr>
209
    <th>Code</th>
210
    <th>[% t('Code') %]</th>
210
    <th>Description</th>
211
    <th>[% t('Description') %]</th>
211
    <th>In use</th>
212
    <th>[% t('In use') %]</th>
212
    <th>Filing rule</th>
213
    <th>[% t('Filing rule') %]</th>
213
    <th>Actions</th>
214
    <th>[% t('Actions') %]</th>
214
  </tr>
215
  </tr>
215
  [% FOREACH class_source IN class_sources %]
216
  [% FOREACH class_source IN class_sources %]
216
  <tr>
217
  <tr>
217
    <td>[% class_source.code %]</td>
218
    <td>[% class_source.code %]</td>
218
    <td>[% class_source.description |html %]</td>
219
    <td>[% class_source.description |html %]</td>
219
    <td>[% IF ( class_source.used ) %]Yes[% ELSE %]No[% END %]</td>
220
    <td>[% IF ( class_source.used ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
220
    <td>[% class_source.sortrule %]</td>
221
    <td>[% class_source.sortrule %]</td>
221
    <td class="actions">
222
    <td class="actions">
222
      <a class="btn btn-default btn-xs" href="[% class_source.script_name %]?op=edit_source&amp;class_source=[% class_source.code |html %]"><i class="fa fa-pencil"></i> Edit</a>
223
      <a class="btn btn-default btn-xs" href="[% class_source.script_name %]?op=edit_source&class_source=[% class_source.code |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
223
      <a class="btn btn-default btn-xs" href="[% class_source.script_name %]?op=delete_source&amp;class_source=[% class_source.code |html %]"><i class="fa fa-trash"></i> Delete</a>
224
      <a class="btn btn-default btn-xs" href="[% class_source.script_name %]?op=delete_source&class_source=[% class_source.code |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
224
    </td>
225
    </td>
225
  </tr>
226
  </tr>
226
  [% END %]
227
  [% END %]
227
</table>
228
</table>
228
229
229
<h2>Classification filing rules</h2>
230
<h2>[% t('Classification filing rules') %]</h2>
230
[% IF ( added_rule ) %]
231
[% IF ( added_rule ) %]
231
<div class="dialog message">Added filing rule [% added_rule %]</div>
232
<div class="dialog message">[% t('Added filing rule') %] [% added_rule %]</div>
232
[% END %]
233
[% END %]
233
[% IF ( edited_rule ) %]
234
[% IF ( edited_rule ) %]
234
<div class="dialog message">Modified filing rule [% edited_rule %]</div>
235
<div class="dialog message">[% t('Modified filing rule') %] [% edited_rule %]</div>
235
[% END %]
236
[% END %]
236
[% IF ( deleted_rule ) %]
237
[% IF ( deleted_rule ) %]
237
<div class="dialog message">Deleted filing rule [% deleted_rule %]</div>
238
<div class="dialog message">[% t('Deleted filing rule') %] [% deleted_rule %]</div>
238
[% END %]
239
[% END %]
239
[% IF ( failed_add_rule ) %]
240
[% IF ( failed_add_rule ) %]
240
<div class="dialog message">Failed to add filing rule [% failed_add_rule %]. Perhaps the code already exists?</div>
241
<div class="dialog message">[% t('Failed to add filing rule') %] [% failed_add_rule %][% t('. Perhaps the code already exists?') %]</div>
241
[% END %]
242
[% END %]
242
<table>
243
<table>
243
  <tr>
244
  <tr>
244
    <th>Code</th>
245
    <th>[% t('Code') %]</th>
245
    <th>Description</th>
246
    <th>[% t('Description') %]</th>
246
    <th>Sorting routine</th>
247
    <th>[% t('Sorting routine') %]</th>
247
    <th>Actions</th>
248
    <th>[% t('Actions') %]</th>
248
  </tr>
249
  </tr>
249
  [% FOREACH class_sort_rule IN class_sort_rules %]
250
  [% FOREACH class_sort_rule IN class_sort_rules %]
250
  <tr>
251
  <tr>
Lines 252-259 Link Here
252
    <td>[% class_sort_rule.description |html %]</td>
253
    <td>[% class_sort_rule.description |html %]</td>
253
    <td>[% class_sort_rule.sort_routine %]</td>
254
    <td>[% class_sort_rule.sort_routine %]</td>
254
    <td class="actions">
255
    <td class="actions">
255
      <a class="btn btn-default btn-xs" href="[% class_sort_rule.script_name %]?op=edit_sort_rule&amp;sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-pencil"></i> Edit</a>
256
      <a class="btn btn-default btn-xs" href="[% class_sort_rule.script_name %]?op=edit_sort_rule&sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
256
      <a class="btn btn-default btn-xs" href="[% class_sort_rule.script_name %]?op=delete_sort_rule&amp;sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-trash"></i> Delete</a>
257
      <a class="btn btn-default btn-xs" href="[% class_sort_rule.script_name %]?op=delete_sort_rule&sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
257
    </td>
258
    </td>
258
  </tr>
259
  </tr>
259
  [% END %]
260
  [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/clone-rules.tt (-15 / +16 lines)
Lines 1-43 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Circulation and fine rules &rsaquo; Clone circulation and fine rules</title>
6
<title>[% t('Koha › Administration › Circulation and fine rules › Clone circulation and fine rules') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="admin_clone-rules" class="admin">
9
<body id="admin_clone-rules" class="admin">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
12
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; <a href="/cgi-bin/koha/admin/smart-rules.pl">Circulation and fine rules</a> &rsaquo; Clone circulation and fine rules</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › <a href="/cgi-bin/koha/admin/smart-rules.pl">[% t('Circulation and fine rules') %]</a> [% t('› Clone circulation and fine rules') %]</div>
13
14
14
<div id="doc3" class="yui-t1">
15
<div id="doc3" class="yui-t1">
15
16
16
<div id="bd">
17
<div id="bd">
17
    <div id="yui-main">
18
    <div id="yui-main">
18
    <div class="yui-b">
19
    <div class="yui-b">
19
    <h2>Cloning circulation and fine rules
20
    <h2>[% t('Cloning circulation and fine rules') %]
20
        [% IF frombranch %] from "[% Branches.GetName( frombranch ) %]"[% END %]
21
        [% IF frombranch %] [% t('from &#34;') %][% Branches.GetName( frombranch ) %]"[% END %]
21
        [% IF tobranch %] to "[% Branches.GetName( tobranch ) %]"[% END %]
22
        [% IF tobranch %] [% t('to &#34;') %][% Branches.GetName( tobranch ) %]"[% END %]
22
    </h2>
23
    </h2>
23
24
24
    [% IF ( result ) %]
25
    [% IF ( result ) %]
25
	[% IF ( error ) %]
26
	[% IF ( error ) %]
26
        <div class="dialog alert">Cloning of circulation and fine rules failed!</div>
27
        <div class="dialog alert">[% t('Cloning of circulation and fine rules failed!') %]</div>
27
	[% ELSE %]
28
	[% ELSE %]
28
	    <div class="dialog message"><p>The rules have been cloned.</p></div>
29
	    <div class="dialog message"><p>[% t('The rules have been cloned.') %]</p></div>
29
	[% END %]
30
	[% END %]
30
    <a href="/cgi-bin/koha/admin/smart-rules.pl">Return to circulation and fine rules</a>
31
    <a href="/cgi-bin/koha/admin/smart-rules.pl">[% t('Return to circulation and fine rules') %]</a>
31
    [% ELSE %]
32
    [% ELSE %]
32
33
33
    <p class="help">Use carefully! If the destination library already has circulation and fine rules, they will be deleted without warning!</p>
34
    <p class="help">[% t('Use carefully! If the destination library already has circulation and fine rules, they will be deleted without warning!') %]</p>
34
    <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
35
    <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
35
        [% UNLESS ( frombranch ) %]
36
        [% UNLESS ( frombranch ) %]
36
            <fieldset>
37
            <fieldset>
37
                <legend>Please choose a library to clone rules from:</legend>
38
                <legend>[% t('Please choose a library to clone rules from:') %]</legend>
38
                <label for="frombranch">Source library:</label>
39
                <label for="frombranch">[% t('Source library:') %]</label>
39
                <select name="frombranch" id="frombranch">
40
                <select name="frombranch" id="frombranch">
40
                    <option value="">Default</option>
41
                    <option value="">[% t('Default') %]</option>
41
                    [% PROCESS options_for_libraries libraries => Branches.all() %]
42
                    [% PROCESS options_for_libraries libraries => Branches.all() %]
42
                </select>
43
                </select>
43
                [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
44
                [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
Lines 46-55 Link Here
46
47
47
        [% UNLESS ( tobranch ) %]
48
        [% UNLESS ( tobranch ) %]
48
            <fieldset>
49
            <fieldset>
49
            <legend>Please choose the library to clone the rules to:</legend>
50
            <legend>[% t('Please choose the library to clone the rules to:') %]</legend>
50
            <label for="tobranch">Destination library:</label>
51
            <label for="tobranch">[% t('Destination library:') %]</label>
51
            <select name="tobranch" id="tobranch">
52
            <select name="tobranch" id="tobranch">
52
                <option value="">Default</option>
53
                <option value="">[% t('Default') %]</option>
53
                [% PROCESS options_for_libraries libraries => Branches.all() %]
54
                [% PROCESS options_for_libraries libraries => Branches.all() %]
54
            </select>
55
            </select>
55
            [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]
56
            [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-28 / +29 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% SET panel_id = 0 %]
4
[% SET panel_id = 0 %]
Lines 15-32 Link Here
15
        [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
16
        [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
16
          [% FOR tablename IN tables.$pagename.keys.sort %]
17
          [% FOR tablename IN tables.$pagename.keys.sort %]
17
            [% IF pagename == 'additem' AND tablename == 'itemst' %]
18
            [% IF pagename == 'additem' AND tablename == 'itemst' %]
18
              <div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div>
19
              <div class="alert">[% t('Changes made below will only apply to item subfields that are mapped to the \'items\' table.') %] <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">[% t('Go to Koha to MARC mapping') %]</a></div>
19
            [% END %]
20
            [% END %]
20
            <table>
21
            <table>
21
              <caption>
22
              <caption>
22
                [% IF tablename == 'currencies-table' %]
23
                [% IF tablename == 'currencies-table' %]
23
                  Currency
24
                  [% t('Currency') %]
24
                [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
25
                [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
25
                  Items Editor
26
                  [% t('Items Editor') %]
26
                [% END %]
27
                [% END %]
27
                (id=[% tablename %])
28
                [% t('(id=') %][% tablename %])
28
              </caption>
29
              </caption>
29
              <thead><tr><th>Column name</th><th>Is hidden by default</th><th>Cannot be toggled</th></tr></thead>
30
              <thead><tr><th>[% t('Column name') %]</th><th>[% t('Is hidden by default') %]</th><th>[% t('Cannot be toggled') %]</th></tr></thead>
30
              <tbody>
31
              <tbody>
31
              [% FOR column IN tables.$pagename.$tablename %]
32
              [% FOR column IN tables.$pagename.$tablename %]
32
                [% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %]
33
                [% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %]
Lines 76-158 Link Here
76
          [% END %]
77
          [% END %]
77
          <input type="submit" value="Save" />
78
          <input type="submit" value="Save" />
78
        [% ELSE %]
79
        [% ELSE %]
79
          There is no table to configure for this module.
80
          [% t('There is no table to configure for this module.') %]
80
        [% END %]
81
        [% END %]
81
      [% END %]
82
      [% END %]
82
    [% ELSE %]
83
    [% ELSE %]
83
        There is no page using the table configuration in this module.
84
        [% t('There is no page using the table configuration in this module.') %]
84
    [% END %]
85
    [% END %]
85
  </form>
86
  </form>
86
</div>
87
</div>
87
[% END %]
88
[% END %]
88
89
89
[% INCLUDE 'doc-head-open.inc' %]
90
[% INCLUDE 'doc-head-open.inc' %]
90
<title>Koha &rsaquo; Administration &rsaquo; Columns settings</title>
91
<title>[% t('Koha › Administration › Columns settings') %]</title>
91
[% INCLUDE 'doc-head-close.inc' %]
92
[% INCLUDE 'doc-head-close.inc' %]
92
</head>
93
</head>
93
94
94
<body id="admin_tables" class="admin">
95
<body id="admin_tables" class="admin">
95
[% INCLUDE 'header.inc' %]
96
[% INCLUDE 'header.inc' %]
96
[% INCLUDE 'prefs-admin-search.inc' %]
97
[% INCLUDE 'prefs-admin-search.inc' %]
97
<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; Columns settings</div>
98
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Columns settings') %]</div>
98
99
99
<div id="doc3" class="yui-t2">
100
<div id="doc3" class="yui-t2">
100
  <div id="bd">
101
  <div id="bd">
101
    <div id="yui-main">
102
    <div id="yui-main">
102
      <div class="yui-b">
103
      <div class="yui-b">
103
        <h2>Columns settings</h2>
104
        <h2>[% t('Columns settings') %]</h2>
104
        <div id="modules">
105
        <div id="modules">
105
          <h3><a href="#acqui">Acquisition</a></h3>
106
          <h3><a href="#acqui">[% t('Acquisition') %]</a></h3>
106
          <div id="acqui">
107
          <div id="acqui">
107
            <h4>Acquisition tables</h4>
108
            <h4>[% t('Acquisition tables') %]</h4>
108
            [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
109
            [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
109
          </div>
110
          </div>
110
111
111
          <h3><a href="#admin">Administration</a></h3>
112
          <h3><a href="#admin">[% t('Administration') %]</a></h3>
112
          <div id="admin">
113
          <div id="admin">
113
            <h4>Administration tables</h4>
114
            <h4>[% t('Administration tables') %]</h4>
114
            [% PROCESS pagelist module=modules.admin modulename="admin" %]
115
            [% PROCESS pagelist module=modules.admin modulename="admin" %]
115
          </div>
116
          </div>
116
117
117
          <h3><a href="#authorities">Authorities</a></h3>
118
          <h3><a href="#authorities">[% t('Authorities') %]</a></h3>
118
          <div id="authorities">
119
          <div id="authorities">
119
            <h4>Authorities tables</h4>
120
            <h4>[% t('Authorities tables') %]</h4>
120
            [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
121
            [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
121
          </div>
122
          </div>
122
123
123
          <h3><a href="#catalog">Catalog</a></h3>
124
          <h3><a href="#catalog">[% t('Catalog') %]</a></h3>
124
          <div id="catalogue">
125
          <div id="catalogue">
125
            <h4>Catalogue tables</h4>
126
            <h4>[% t('Catalogue tables') %]</h4>
126
            [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
127
            [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
127
          </div>
128
          </div>
128
129
129
          <h3><a href="#cataloguing">Cataloging</a></h3>
130
          <h3><a href="#cataloguing">[% t('Cataloging') %]</a></h3>
130
          <div id="cataloguing">
131
          <div id="cataloguing">
131
            <h4>Cataloguing tables</h4>
132
            <h4>[% t('Cataloguing tables') %]</h4>
132
            [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
133
            [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
133
          </div>
134
          </div>
134
135
135
          <h3><a href="#circulation">Circulation</a></h3>
136
          <h3><a href="#circulation">[% t('Circulation') %]</a></h3>
136
          <div id="circulation">
137
          <div id="circulation">
137
            <h4>Circulation tables</h4>
138
            <h4>[% t('Circulation tables') %]</h4>
138
            [% PROCESS pagelist module=modules.circ modulename="circ" %]
139
            [% PROCESS pagelist module=modules.circ modulename="circ" %]
139
          </div>
140
          </div>
140
141
141
          <h3><a href="#members">Patrons</a></h3>
142
          <h3><a href="#members">[% t('Patrons') %]</a></h3>
142
          <div id="members">
143
          <div id="members">
143
            <h4>Patrons tables</h4>
144
            <h4>[% t('Patrons tables') %]</h4>
144
            [% PROCESS pagelist module=modules.members modulename="members" %]
145
            [% PROCESS pagelist module=modules.members modulename="members" %]
145
          </div>
146
          </div>
146
147
147
          <h3><a href="#opac">OPAC</a></h3>
148
          <h3><a href="#opac">[% t('OPAC') %]</a></h3>
148
          <div id="opac">
149
          <div id="opac">
149
            <h4>OPAC tables</h4>
150
            <h4>[% t('OPAC tables') %]</h4>
150
            [% PROCESS pagelist module=modules.opac modulename="opac" %]
151
            [% PROCESS pagelist module=modules.opac modulename="opac" %]
151
          </div>
152
          </div>
152
153
153
          <h3><a href="#reports">Reports</a></h3>
154
          <h3><a href="#reports">[% t('Reports') %]</a></h3>
154
          <div id="reports">
155
          <div id="reports">
155
            <h4>Reports tables</h4>
156
            <h4>[% t('Reports tables') %]</h4>
156
            [% PROCESS pagelist module=modules.reports modulename="reports" %]
157
            [% PROCESS pagelist module=modules.reports modulename="reports" %]
157
          </div>
158
          </div>
158
159
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-56 / +57 lines)
Lines 1-13 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE ColumnsSettings %]
4
[% USE ColumnsSettings %]
4
[% USE HtmlTags %]
5
[% USE HtmlTags %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Administration &rsaquo; Currencies &amp; Exchange rates &rsaquo;
8
<title>[% t('Koha › Administration › Currencies &amp; Exchange rates ›') %]
8
[% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %]
9
[% IF op == 'add_form' %][% IF currency %][% t('Modify currency \'') %][% currency.currency %]'[% ELSE %][% t('New currency') %][% END %][% END %]
9
[% IF op == 'delete_confirm' %]Confirm deletion of currency '[% currency.currency %]'[% END %]
10
[% IF op == 'delete_confirm' %][% t('Confirm deletion of currency \'') %][% currency.currency %]'[% END %]
10
[% IF op == 'list' %]Currencies[% END %]</title>
11
[% IF op == 'list' %][% t('Currencies') %][% END %]</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
12
[% Asset.css("css/datatables.css") %]
13
[% Asset.css("css/datatables.css") %]
13
</head>
14
</head>
Lines 16-24 Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'currencies-admin-search.inc' %]
18
[% INCLUDE 'currencies-admin-search.inc' %]
18
19
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;  <a href="/cgi-bin/koha/admin/currency.pl">Currencies &amp; Exchange rates</a> &rsaquo; [% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %]
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›  <a href="/cgi-bin/koha/admin/currency.pl">[% t('Currencies &amp; Exchange rates') %]</a> › [% IF op == 'add_form' %][% IF currency %][% t('Modify currency \'') %][% currency.currency %]'[% ELSE %][% t('New currency') %][% END %][% END %]
20
[% IF op == 'delete_confirm' %]Confirm deletion of currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]
21
[% IF op == 'delete_confirm' %][% t('Confirm deletion of currency') %] [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]
21
[% ELSIF op == 'list' %]Currencies
22
[% ELSIF op == 'list' %][% t('Currencies') %]
22
[% END %]
23
[% END %]
23
</div>
24
</div>
24
25
Lines 29-35 Link Here
29
    <div class="yui-b">
30
    <div class="yui-b">
30
[% IF op == 'list' %]
31
[% IF op == 'list' %]
31
<div id="toolbar" class="btn-toolbar">
32
<div id="toolbar" class="btn-toolbar">
32
    <a class="btn btn-default btn-sm" id="newcurrency" href="/cgi-bin/koha/admin/currency.pl?op=add_form"><i class="fa fa-plus"></i> New currency</a>
33
    <a class="btn btn-default btn-sm" id="newcurrency" href="/cgi-bin/koha/admin/currency.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New currency') %]</a>
33
</div>
34
</div>
34
[% END %]
35
[% END %]
35
36
Lines 37-53 Link Here
37
    <div class="dialog [% m.type %]">
38
    <div class="dialog [% m.type %]">
38
        [% SWITCH m.code %]
39
        [% SWITCH m.code %]
39
        [% CASE 'error_on_update' %]
40
        [% CASE 'error_on_update' %]
40
            An error occurred when updating this currency. Perhaps it already exists.
41
            [% t('An error occurred when updating this currency. Perhaps it already exists.') %]
41
        [% CASE 'error_on_insert' %]
42
        [% CASE 'error_on_insert' %]
42
            An error occurred when adding this currency. The currency code might already exist.
43
            [% t('An error occurred when adding this currency. The currency code might already exist.') %]
43
        [% CASE 'error_on_delete' %]
44
        [% CASE 'error_on_delete' %]
44
            An error occurred when deleting this currency. Check the logs.
45
            [% t('An error occurred when deleting this currency. Check the logs.') %]
45
        [% CASE 'success_on_update' %]
46
        [% CASE 'success_on_update' %]
46
            Currency updated successfully.
47
            [% t('Currency updated successfully.') %]
47
        [% CASE 'success_on_insert' %]
48
        [% CASE 'success_on_insert' %]
48
            Currency added successfully.
49
            [% t('Currency added successfully.') %]
49
        [% CASE 'success_on_delete' %]
50
        [% CASE 'success_on_delete' %]
50
            Currency deleted successfully.
51
            [% t('Currency deleted successfully.') %]
51
        [% CASE %]
52
        [% CASE %]
52
            [% m.code %]
53
            [% m.code %]
53
        [% END %]
54
        [% END %]
Lines 63-101 Link Here
63
    <fieldset class="rows">
64
    <fieldset class="rows">
64
        <legend>
65
        <legend>
65
            [% IF currency %]
66
            [% IF currency %]
66
                Modify currency
67
                [% t('Modify currency') %]
67
            [% ELSE %]
68
            [% ELSE %]
68
                New currency
69
                [% t('New currency') %]
69
            [% END %]
70
            [% END %]
70
        </legend>
71
        </legend>
71
        <ol>
72
        <ol>
72
            <li>
73
            <li>
73
                [% IF currency %]
74
                [% IF currency %]
74
                    <span class="label">Currency: </span>
75
                    <span class="label">[% t('Currency:') %] </span>
75
                    <input type="hidden" name="is_a_modif" value="1" />
76
                    <input type="hidden" name="is_a_modif" value="1" />
76
                    <input type="hidden" name="currency_code" id="currency" value="[% currency.currency %]" />[% currency.currency %]
77
                    <input type="hidden" name="currency_code" id="currency" value="[% currency.currency %]" />[% currency.currency %]
77
                [% ELSE %]
78
                [% ELSE %]
78
                    <label for="currency_code" class="required">Currency: </label>
79
                    <label for="currency_code" class="required">[% t('Currency:') %] </label>
79
                    <input type="text" name="currency_code" id="currency_code" size="50" maxlength="50" required="required" class="required" /> <span class="required">Required</span>
80
                    <input type="text" name="currency_code" id="currency_code" size="50" maxlength="50" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
80
                [% END %]
81
                [% END %]
81
            </li>
82
            </li>
82
            <li>
83
            <li>
83
                <label for="rate" class="required">Rate: </label>
84
                <label for="rate" class="required">[% t('Rate:') %] </label>
84
                <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate %]" required="required" class="required" /> <span class="required">Required</span>
85
                <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate %]" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
85
            </li>
86
            </li>
86
            <li>
87
            <li>
87
                <label for="symbol" class="required">Symbol: </label>
88
                <label for="symbol" class="required">[% t('Symbol:') %] </label>
88
                <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol %]" required="required" class="required" /> <span class="required">Required</span>
89
                <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol %]" required="required" class="required" /> <span class="required">[% t('Required') %]</span>
89
            </li>
90
            </li>
90
            <li>
91
            <li>
91
                <label for="isocode">ISO code: </label>
92
                <label for="isocode">[% t('ISO code:') %] </label>
92
                <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode %]" />
93
                <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode %]" />
93
            </li>
94
            </li>
94
            <li>
95
            <li>
95
                <span class="label">Last updated: </span>[% currency.timestamp | $KohaDates %]
96
                <span class="label">[% t('Last updated:') %] </span>[% currency.timestamp | $KohaDates %]
96
            </li>
97
            </li>
97
            <li>
98
            <li>
98
                <label for="p_sep_by_space">Space separation between symbol and value: </label>
99
                <label for="p_sep_by_space">[% t('Space separation between symbol and value:') %] </label>
99
                [% IF currency.p_sep_by_space %]
100
                [% IF currency.p_sep_by_space %]
100
                    <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" checked="checked" />
101
                    <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" checked="checked" />
101
                [% ELSE %]
102
                [% ELSE %]
Lines 103-109 Link Here
103
                [% END %]
104
                [% END %]
104
            </li>
105
            </li>
105
            <li>
106
            <li>
106
                <label for="active">Active: </label>
107
                <label for="active">[% t('Active:') %] </label>
107
                [% IF currency.active %]
108
                [% IF currency.active %]
108
                <input type="checkbox" id="active" name="active" value="1" checked="checked" />
109
                <input type="checkbox" id="active" name="active" value="1" checked="checked" />
109
                [% ELSE %]
110
                [% ELSE %]
Lines 116-122 Link Here
116
117
117
    <fieldset class="action">
118
    <fieldset class="action">
118
        <input type="submit" value="Submit" />
119
        <input type="submit" value="Submit" />
119
        <a href="/cgi-bin/koha/admin/currency.pl" class="cancel">Cancel</a>
120
        <a href="/cgi-bin/koha/admin/currency.pl" class="cancel">[% t('Cancel') %]</a>
120
    </fieldset>
121
    </fieldset>
121
    </form>
122
    </form>
122
123
Lines 125-161 Link Here
125
[% IF op =='delete_confirm' %]
126
[% IF op =='delete_confirm' %]
126
    [% IF nb_of_orders or nb_of_vendors %]
127
    [% IF nb_of_orders or nb_of_vendors %]
127
    <div class="dialog alert">
128
    <div class="dialog alert">
128
        <h3>Cannot delete currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h3>
129
        <h3>[% t('Cannot delete currency') %] [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h3>
129
        <p>
130
        <p>
130
            [% IF nb_of_orders %]
131
            [% IF nb_of_orders %]
131
                This currency is used by [% nb_of_orders %] orders.
132
                [% t('This currency is used by') %] [% nb_of_orders %] [% t('orders.') %]
132
            [% ELSIF nb_of_vendors %]
133
            [% ELSIF nb_of_vendors %]
133
                This currency is used by [% nb_of_vendors %] vendors.
134
                [% t('This currency is used by') %] [% nb_of_vendors %] [% t('vendors.') %]
134
            [% END %]
135
            [% END %]
135
            Deletion not possible
136
            [% t('Deletion not possible') %]
136
        </p>
137
        </p>
137
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
138
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
138
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
139
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('OK') %]</button>
139
        </form>
140
        </form>
140
    </div>
141
    </div>
141
    [% ELSE %]
142
    [% ELSE %]
142
    <div class="dialog alert">
143
    <div class="dialog alert">
143
        <h3>Confirm deletion of currency [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h3>
144
        <h3>[% t('Confirm deletion of currency') %] [% currency.currency | $HtmlTags tag='span' attributes=>'class="ex"' %]</h3>
144
        <table>
145
        <table>
145
            <tr><th>Currency</th>
146
            <tr><th>[% t('Currency') %]</th>
146
                <td>[% currency.currency %]</td>
147
                <td>[% currency.currency %]</td>
147
            </tr>
148
            </tr>
148
            <tr><th>Rate</th>
149
            <tr><th>[% t('Rate') %]</th>
149
                <td>[% currency.rate %]</td>
150
                <td>[% currency.rate %]</td>
150
            </tr>
151
            </tr>
151
        </table>
152
        </table>
152
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
153
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
153
            <input type="hidden" name="op" value="delete_confirmed" />
154
            <input type="hidden" name="op" value="delete_confirmed" />
154
            <input type="hidden" name="currency_code" value="[% currency.currency %]" />
155
            <input type="hidden" name="currency_code" value="[% currency.currency %]" />
155
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this currency</button>
156
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this currency') %]</button>
156
        </form>
157
        </form>
157
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
158
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
158
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
159
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
159
        </form>
160
        </form>
160
    </div>
161
    </div>
161
    [% END %]
162
    [% END %]
Lines 163-189 Link Here
163
164
164
[% IF op == 'list' %]
165
[% IF op == 'list' %]
165
166
166
<h2>Currencies and exchange rates</h2>
167
<h2>[% t('Currencies and exchange rates') %]</h2>
167
168
168
    [% IF currencies and no_active_currency %]
169
    [% IF currencies and no_active_currency %]
169
        <div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>
170
        <div class="dialog alert"><h3>[% t('No active currency is defined') %]</h3><p>[% t('Please edit one currency and mark it as active.') %]</p></div>
170
    [% END %]
171
    [% END %]
171
172
172
    [% IF searchfield %]
173
    [% IF searchfield %]
173
        You searched for [% searchfield |html %]</span>
174
        [% t('You searched for') %] [% searchfield |html %]</span>
174
    [% END %]
175
    [% END %]
175
176
176
    <table id='currencies-table'>
177
    <table id="currencies-table">
177
      <thead>
178
      <thead>
178
        <tr>
179
        <tr>
179
            <th>Currency</th>
180
            <th>[% t('Currency') %]</th>
180
            <th>Rate</th>
181
            <th>[% t('Rate') %]</th>
181
            <th>Symbol</th>
182
            <th>[% t('Symbol') %]</th>
182
            <th>ISO code</th>
183
            <th>[% t('ISO code') %]</th>
183
            <th class="title-string">Last updated</th>
184
            <th class="title-string">[% t('Last updated') %]</th>
184
            <th>Active</th>
185
            <th>[% t('Active') %]</th>
185
            <th>Archived</th>
186
            <th>[% t('Archived') %]</th>
186
            <th>Actions</th>
187
            <th>[% t('Actions') %]</th>
187
        </tr>
188
        </tr>
188
      </thead>
189
      </thead>
189
      <tbody>
190
      <tbody>
Lines 195-204 Link Here
195
            <td>[% currency.isocode |html %]</td>
196
            <td>[% currency.isocode |html %]</td>
196
            <td><span title="[% currency.timestamp %]">[% currency.timestamp | $KohaDates %]</span></td>
197
            <td><span title="[% currency.timestamp %]">[% currency.timestamp | $KohaDates %]</span></td>
197
            <td style="color:green;">[% IF currency.active %]✓[% END %]</td>
198
            <td style="color:green;">[% IF currency.active %]✓[% END %]</td>
198
            <td>[% IF currency.archived %]Yes[% END %]</td>
199
            <td>[% IF currency.archived %][% t('Yes') %][% END %]</td>
199
            <td class="actions">
200
            <td class="actions">
200
              <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=add_form&amp;currency_code=[% currency.currency %]"><i class="fa fa-pencil"></i> Edit</a>
201
              <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=add_form&currency_code=[% currency.currency %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
201
              <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=delete_confirm&amp;currency_code=[% currency.currency %]"><i class="fa fa-trash"></i> Delete</a>
202
              <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/currency.pl?op=delete_confirm&currency_code=[% currency.currency %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
202
            </td>
203
            </td>
203
          </tr>
204
          </tr>
204
        [% END %]
205
        [% END %]
Lines 208-218 Link Here
208
    <br />
209
    <br />
209
    <div class="hint">
210
    <div class="hint">
210
        <p>
211
        <p>
211
            When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency.
212
            [% t('When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency.') %]
212
        </p>
213
        </p>
213
        <p>
214
        <p>
214
            Some examples of compatible price fields include "$9.99", "9.99 USD", "$9.99 USD", "9.99 USD (10.00 CAN)", "$9.99 USD (paperback)".
215
            [% t('Some examples of compatible price fields include &#34;$9.99&#34;, &#34;9.99 USD&#34;, &#34;$9.99 USD&#34;, &#34;9.99 USD (10.00 CAN)&#34;, &#34;$9.99 USD (paperback)&#34;.') %]
215
            These examples assume USD is the active currency.
216
            [% t('These examples assume USD is the active currency.') %]
216
        </p>
217
        </p>
217
    </div>
218
    </div>
218
219
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt (-21 / +22 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% BLOCK pluginlist %]
4
[% BLOCK pluginlist %]
Lines 6-19 Link Here
6
    <div class="plugin">
7
    <div class="plugin">
7
        <div class="pluginname">
8
        <div class="pluginname">
8
            [% IF plugin.enabled %]<input type="checkbox" checked="checked" id="checkbox_[% type %][% plugin.name %]">[% ELSE %]<input type="checkbox" id="checkbox_[% type %][% plugin.name %]">[% END %]
9
            [% IF plugin.enabled %]<input type="checkbox" checked="checked" id="checkbox_[% type %][% plugin.name %]">[% ELSE %]<input type="checkbox" id="checkbox_[% type %][% plugin.name %]">[% END %]
9
            <label class='pluginlabel' for="checkbox_[% type %][% plugin.name %]">[% plugin.name %]</label></div>
10
            <label class="pluginlabel" for="checkbox_[% type %][% plugin.name %]">[% plugin.name %]</label></div>
10
        <div class="plugindesc">
11
        <div class="plugindesc">
11
        [% SWITCH plugin.name %]
12
        [% SWITCH plugin.name %]
12
        [% CASE 'AuthorityFile' %]
13
        [% CASE 'AuthorityFile' %]
13
            Suggest authorities which are relevant to the term the user searched for.
14
            [% t('Suggest authorities which are relevant to the term the user searched for.') %]
14
        [% CASE 'ExplodedTerms' %]
15
        [% CASE 'ExplodedTerms' %]
15
            Suggest that patrons expand their searches to include
16
            [% t('Suggest that patrons expand their searches to include') %]
16
            broader/narrower/related terms.
17
            [% t('broader/narrower/related terms.') %]
17
        [% END %]
18
        [% END %]
18
        </div>
19
        </div>
19
    </div>
20
    </div>
Lines 21-64 Link Here
21
</div>
22
</div>
22
[% END %]
23
[% END %]
23
[% INCLUDE 'doc-head-open.inc' %]
24
[% INCLUDE 'doc-head-open.inc' %]
24
<title>Koha &rsaquo; Administration &rsaquo; Did you mean?</title>
25
<title>[% t('Koha › Administration › Did you mean?') %]</title>
25
[% INCLUDE 'doc-head-close.inc' %]
26
[% INCLUDE 'doc-head-close.inc' %]
26
</head>
27
</head>
27
28
28
<body id="admin_didyoumean" class="admin">
29
<body id="admin_didyoumean" class="admin">
29
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'prefs-admin-search.inc' %]
31
[% INCLUDE 'prefs-admin-search.inc' %]
31
<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; Did you mean?</div>
32
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Did you mean?') %]</div>
32
33
33
<div id="doc3" class="yui-t2">
34
<div id="doc3" class="yui-t2">
34
35
35
    <div id="bd">
36
    <div id="bd">
36
    <div id="yui-main">
37
    <div id="yui-main">
37
    <div class="yui-b">
38
    <div class="yui-b">
38
        <h3>Did you mean?</h3>
39
        <h3>[% t('Did you mean?') %]</h3>
39
        <noscript><div class="dialog alert"><strong>Please enable Javascript:</strong>
40
        <noscript>[% t('&lt;div class=&#34;dialog alert&#34;&gt;&lt;strong&gt;Please enable Javascript:&lt;/strong&gt;') %]
40
            Configuring 'Did you mean?' plugins requires Javascript. If
41
            [% t('Configuring \'Did you mean?\' plugins requires Javascript. If') %]
41
            you are unable to use Javascript, you may be able to enter the
42
            [% t('you are unable to use Javascript, you may be able to enter the') %]
42
            configuration (which is stored in JSON in the OPACdidyoumean and
43
            [% t('configuration (which is stored in JSON in the OPACdidyoumean and') %]
43
            INTRAdidyoumean system preferences) in the Local Preferences tab in
44
            [% t('INTRAdidyoumean system preferences) in the Local Preferences tab in') %]
44
            the system preference editor, but this is unsupported, not
45
            [% t('the system preference editor, but this is unsupported, not') %]
45
            recommended, and likely will not work.</div></noscript>
46
            [% t('recommended, and likely will not work.&lt;/div&gt;') %]</noscript>
46
        <div id="didyoumeanlegend">
47
        <div id="didyoumeanlegend">
47
            Please put the 'Did you mean?' plugins in order by significance, from
48
            [% t('Please put the \'Did you mean?\' plugins in order by significance, from') %]
48
            most significant to least significant, and check the box to enable those
49
            [% t('most significant to least significant, and check the box to enable those') %]
49
            plugins that you want to use. (NOTE: 'Did you mean?' functionality
50
            [% t('plugins that you want to use. (NOTE: \'Did you mean?\' functionality') %]
50
            is not yet enabled on the staff client)
51
            [% t('is not yet enabled on the staff client)') %]
51
        </div>
52
        </div>
52
        <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
53
        <form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
53
            <fieldset id="didyoumeanopac">
54
            <fieldset id="didyoumeanopac">
54
                <legend>OPAC</legend>
55
                <legend>[% t('OPAC') %]</legend>
55
                [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
56
                [% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
56
            </fieldset>
57
            </fieldset>
57
            <fieldset id="didyoumeanintranet">
58
            <fieldset id="didyoumeanintranet">
58
                <legend>Intranet</legend>
59
                <legend>[% t('Intranet') %]</legend>
59
                [% PROCESS pluginlist plugins=INTRApluginlist type='intranet' %]
60
                [% PROCESS pluginlist plugins=INTRApluginlist type='intranet' %]
60
            </fieldset>
61
            </fieldset>
61
            <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>
62
            <fieldset class="action"><button class="save-all submit" type="submit">[% t('Save configuration') %]</button> <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">[% t('Cancel') %]</a></fieldset>
62
        </form>
63
        </form>
63
64
64
        </div>
65
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-72 / +72 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; EDI accounts
5
<title>[% t('Koha › Administration › EDI accounts') %]
5
[% IF acct_form %]
6
[% IF acct_form %]
6
  [% IF account %]
7
  [% IF account %]
7
     &rsaquo; Modify account
8
     [% t('› Modify account') %]
8
  [% ELSE %]
9
  [% ELSE %]
9
     &rsaquo; Add new account
10
     [% t('› Add new account') %]
10
  [% END %]
11
  [% END %]
11
[% END %]
12
[% END %]
12
[% IF delete_confirm %]
13
[% IF delete_confirm %]
13
     &rsaquo; Confirm deletion of account
14
     [% t('› Confirm deletion of account') %]
14
[% END %]
15
[% END %]
15
</title>
16
</title>
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
Lines 20-37 Link Here
20
[% INCLUDE 'prefs-admin-search.inc' %]
21
[% INCLUDE 'prefs-admin-search.inc' %]
21
22
22
<div id="breadcrumbs">
23
<div id="breadcrumbs">
23
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
24
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
25
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
25
 [% IF acct_form %]
26
 [% IF acct_form %]
26
  [% IF account %]
27
  [% IF account %]
27
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> &rsaquo; Modify account
28
     › <a href="/cgi-bin/koha/admin/edi_accounts.pl">[% t('EDI accounts') %]</a> [% t('› Modify account') %]
28
  [% ELSE %]
29
  [% ELSE %]
29
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> &rsaquo; Add new account
30
     › <a href="/cgi-bin/koha/admin/edi_accounts.pl">[% t('EDI accounts') %]</a> [% t('› Add new account') %]
30
  [% END %]
31
  [% END %]
31
[% ELSIF delete_confirm %]
32
[% ELSIF delete_confirm %]
32
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> &rsaquo; Confirm deletion of account
33
     › <a href="/cgi-bin/koha/admin/edi_accounts.pl">[% t('EDI accounts') %]</a> [% t('› Confirm deletion of account') %]
33
[% ELSE %]
34
[% ELSE %]
34
     &rsaquo; EDI accounts
35
     [% t('› EDI accounts') %]
35
[% END %]
36
[% END %]
36
</div>
37
</div>
37
38
Lines 44-50 Link Here
44
    <div id="toolbar" class="btn-toolbar">
45
    <div id="toolbar" class="btn-toolbar">
45
    <a class="btn btn-default btn-sm" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
46
    <a class="btn btn-default btn-sm" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
46
         <i class="fa fa-plus"></i>
47
         <i class="fa fa-plus"></i>
47
         New account
48
         [% t('New account') %]
48
    </a>
49
    </a>
49
    </div>
50
    </div>
50
[% END %]
51
[% END %]
Lines 58-72 Link Here
58
  <fieldset class="rows">
59
  <fieldset class="rows">
59
  <legend>
60
  <legend>
60
  [% IF account %]
61
  [% IF account %]
61
     Modify account
62
     [% t('Modify account') %]
62
  [% ELSE %]
63
  [% ELSE %]
63
    New account
64
    [% t('New account') %]
64
  [% END %]
65
  [% END %]
65
  </legend>
66
  </legend>
66
67
67
  <ol>
68
  <ol>
68
  <li>
69
  <li>
69
     <label for="vendor_id">Vendor: </label>
70
     <label for="vendor_id">[% t('Vendor:') %] </label>
70
     <select name="vendor_id" id="vendor_id">
71
     <select name="vendor_id" id="vendor_id">
71
     [% FOREACH vendor IN vendors %]
72
     [% FOREACH vendor IN vendors %]
72
       [% IF account.vendor_id == vendor.id %]
73
       [% IF account.vendor_id == vendor.id %]
Lines 79-87 Link Here
79
  </li>
80
  </li>
80
  [% IF plugins_enabled %]
81
  [% IF plugins_enabled %]
81
  <li>
82
  <li>
82
     <label for="plugin">Plugin: </label>
83
     <label for="plugin">[% t('Plugin:') %] </label>
83
     <select name="plugin" id="plugin">
84
     <select name="plugin" id="plugin">
84
        <option value="">Do not use plugin</option>
85
        <option value="">[% t('Do not use plugin') %]</option>
85
        [% FOREACH plugin IN plugins %]
86
        [% FOREACH plugin IN plugins %]
86
            [% IF account.plugin == plugin.class %]
87
            [% IF account.plugin == plugin.class %]
87
                <option value="[% plugin.class %]" selected="selected">[% plugin.metadata.name %]</option>
88
                <option value="[% plugin.class %]" selected="selected">[% plugin.metadata.name %]</option>
Lines 95-108 Link Here
95
  <input type="hidden" name="plugin" value="" />
96
  <input type="hidden" name="plugin" value="" />
96
  [% END %]
97
  [% END %]
97
  <li>
98
  <li>
98
     <label for="description">Description: </label>
99
     <label for="description">[% t('Description:') %] </label>
99
     <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
100
     <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
100
  </li>
101
  </li>
101
  <li>
102
  <li>
102
     [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
103
     [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
103
     <label for="transport">Transport: </label>
104
     <label for="transport">[% t('Transport:') %] </label>
104
     <select name="transport" title="valid types of transport are FTP and SFTP"
105
     <select name="transport" title="[% t('valid types of transport are FTP and SFTP') %]" id="transport">
105
      id="transport">
106
      [% FOREACH transport_type IN transport_types %]
106
      [% FOREACH transport_type IN transport_types %]
107
           [% IF transport_type == account.transport %]
107
           [% IF transport_type == account.transport %]
108
              <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
108
              <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
Lines 113-141 Link Here
113
     </select>
113
     </select>
114
  </li>
114
  </li>
115
  <li>
115
  <li>
116
     <label for="host">Remote host: </label>
116
     <label for="host">[% t('Remote host:') %] </label>
117
     <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" />
117
     <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" />
118
  </li>
118
  </li>
119
  <li>
119
  <li>
120
     <label for="username">Username: </label>
120
     <label for="username">[% t('Username:') %] </label>
121
     <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" />
121
     <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" />
122
  </li>
122
  </li>
123
  <li>
123
  <li>
124
     <label for="password">Password: </label>
124
     <label for="password">[% t('Password:') %] </label>
125
     <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" />
125
     <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" />
126
  </li>
126
  </li>
127
  <li>
127
  <li>
128
     <label for="download_directory">Download directory: </label>
128
     <label for="download_directory">[% t('Download directory:') %] </label>
129
     <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" />
129
     <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" />
130
        <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
130
        <div class="hint">[% t('The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.') %]</div>
131
  </li>
131
  </li>
132
  <li>
132
  <li>
133
     <label for="upload_directory">Upload directory: </label>
133
     <label for="upload_directory">[% t('Upload directory:') %] </label>
134
     <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" />
134
     <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" />
135
        <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
135
        <div class="hint">[% t('The upload directory specifies the directory on the ftp site to which orders are uploaded.') %]</div>
136
  </li>
136
  </li>
137
  <li>
137
  <li>
138
     <label for="id_code_qualifier">Qualifier:</label>
138
     <label for="id_code_qualifier">[% t('Qualifier:') %]</label>
139
     <select name="id_code_qualifier" id="id_code_qualifier">
139
     <select name="id_code_qualifier" id="id_code_qualifier">
140
     [% FOREACH qualifier IN code_qualifiers %]
140
     [% FOREACH qualifier IN code_qualifiers %]
141
        [% IF qualifier.code == account.id_code_qualifier %]
141
        [% IF qualifier.code == account.id_code_qualifier %]
Lines 151-161 Link Here
151
   </select>
151
   </select>
152
  </li>
152
  </li>
153
  <li>
153
  <li>
154
     <label for="san">SAN: </label>
154
     <label for="san">[% t('SAN:') %] </label>
155
     <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" />
155
     <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" />
156
  </li>
156
  </li>
157
  <li>
157
  <li>
158
     <label for="quotes_enabled">Quotes enabled: </label>
158
     <label for="quotes_enabled">[% t('Quotes enabled:') %] </label>
159
      [% IF account.quotes_enabled %]
159
      [% IF account.quotes_enabled %]
160
     <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" />
160
     <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" />
161
      [% ELSE %]
161
      [% ELSE %]
Lines 163-169 Link Here
163
      [% END %]
163
      [% END %]
164
  </li>
164
  </li>
165
  <li>
165
  <li>
166
     <label for="orders_enabled">Orders enabled: </label>
166
     <label for="orders_enabled">[% t('Orders enabled:') %] </label>
167
[% IF account.orders_enabled %]
167
[% IF account.orders_enabled %]
168
     <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" />
168
     <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" />
169
[% ELSE %]
169
[% ELSE %]
Lines 171-177 Link Here
171
[% END %]
171
[% END %]
172
  </li>
172
  </li>
173
  <li>
173
  <li>
174
     <label for="invoices_enabled">Invoices enabled: </label>
174
     <label for="invoices_enabled">[% t('Invoices enabled:') %] </label>
175
[% IF account.invoices_enabled %]
175
[% IF account.invoices_enabled %]
176
     <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" />
176
     <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" />
177
[% ELSE %]
177
[% ELSE %]
Lines 179-185 Link Here
179
[% END %]
179
[% END %]
180
  </li>
180
  </li>
181
  <li>
181
  <li>
182
     <label for="responses_enabled">Responses enabled: </label>
182
     <label for="responses_enabled">[% t('Responses enabled:') %] </label>
183
[% IF account.responses_enabled %]
183
[% IF account.responses_enabled %]
184
     <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" />
184
     <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" />
185
[% ELSE %]
185
[% ELSE %]
Lines 187-200 Link Here
187
[% END %]
187
[% END %]
188
  </li>
188
  </li>
189
  <li>
189
  <li>
190
     <label for="auto_orders">Automatic ordering: </label>
190
     <label for="auto_orders">[% t('Automatic ordering:') %] </label>
191
[% IF account.auto_orders %]
191
[% IF account.auto_orders %]
192
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" />
192
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" />
193
[% ELSE %]
193
[% ELSE %]
194
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
194
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
195
[% END %]
195
[% END %]
196
    <div class="hint">
196
    <div class="hint">
197
        With automatic ordering quotes generate orders without staff intervention.
197
        [% t('With automatic ordering quotes generate orders without staff intervention.') %]
198
    </div>
198
    </div>
199
  </li>
199
  </li>
200
  </ol>
200
  </ol>
Lines 202-226 Link Here
202
202
203
  <fieldset class="action">
203
  <fieldset class="action">
204
    <input type="submit" value="Submit" />
204
    <input type="submit" value="Submit" />
205
    <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
205
    <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">[% t('Cancel') %]</a>
206
  </fieldset>
206
  </fieldset>
207
</form>
207
</form>
208
208
209
[% END %]
209
[% END %]
210
[% IF delete_confirm %]
210
[% IF delete_confirm %]
211
<div class="dialog alert">
211
<div class="dialog alert">
212
<h3>Delete this account?</h3>
212
<h3>[% t('Delete this account?') %]</h3>
213
<table>
213
<table>
214
    <tr>
214
    <tr>
215
    <th>Vendor</th>
215
    <th>[% t('Vendor') %]</th>
216
    <td>[% account.vendor.name %]</td>
216
    <td>[% account.vendor.name %]</td>
217
    </tr>
217
    </tr>
218
    <tr>
218
    <tr>
219
    <th>Description</th>
219
    <th>[% t('Description') %]</th>
220
    <td>[% account.description %]</td>
220
    <td>[% account.description %]</td>
221
    </tr>
221
    </tr>
222
    <tr>
222
    <tr>
223
    <th>SAN</th>
223
    <th>[% t('SAN') %]</th>
224
    <td>[% account.san %]</td>
224
    <td>[% account.san %]</td>
225
    </tr>
225
    </tr>
226
</table>
226
</table>
Lines 229-264 Link Here
229
    </table>
229
    </table>
230
    <input type="hidden" name="op" value="delete_confirmed" />
230
    <input type="hidden" name="op" value="delete_confirmed" />
231
    <input type="hidden" name="id" value="[% account.id %]" />
231
    <input type="hidden" name="id" value="[% account.id %]" />
232
    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
232
    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
233
</form>
233
</form>
234
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
234
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
235
    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
235
    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
236
</form>
236
</form>
237
</div>
237
</div>
238
[% END %]
238
[% END %]
239
[% IF display %]
239
[% IF display %]
240
[% IF ( ediaccounts ) %]
240
[% IF ( ediaccounts ) %]
241
<h2>Vendor EDI accounts</h2>
241
<h2>[% t('Vendor EDI accounts') %]</h2>
242
242
243
    <table>
243
    <table>
244
    <tr>
244
    <tr>
245
       <th>ID</th>
245
       <th>[% t('ID') %]</th>
246
       <th>Vendor</th>
246
       <th>[% t('Vendor') %]</th>
247
       <th>Description</th>
247
       <th>[% t('Description') %]</th>
248
       <th>Transport</th>
248
       <th>[% t('Transport') %]</th>
249
       <th>Remote host</th>
249
       <th>[% t('Remote host') %]</th>
250
       <th>Username</th>
250
       <th>[% t('Username') %]</th>
251
       <th>Password</th>
251
       <th>[% t('Password') %]</th>
252
       <th>Download directory</th>
252
       <th>[% t('Download directory') %]</th>
253
       <th>Upload directory</th>
253
       <th>[% t('Upload directory') %]</th>
254
       <th>Qualifier</th>
254
       <th>[% t('Qualifier') %]</th>
255
       <th>SAN</th>
255
       <th>[% t('SAN') %]</th>
256
       <th>Quotes</th>
256
       <th>[% t('Quotes') %]</th>
257
       <th>Orders</th>
257
       <th>[% t('Orders') %]</th>
258
       <th>Invoices</th>
258
       <th>[% t('Invoices') %]</th>
259
       <th>Responses</th>
259
       <th>[% t('Responses') %]</th>
260
       <th>Auto ordering</th>
260
       <th>[% t('Auto ordering') %]</th>
261
       <th>Actions</th>
261
       <th>[% t('Actions') %]</th>
262
    </tr>
262
    </tr>
263
    [% FOREACH account IN ediaccounts %]
263
    [% FOREACH account IN ediaccounts %]
264
    <tr>
264
    <tr>
Lines 281-319 Link Here
281
     </td>
281
     </td>
282
      <td>[% account.san %]</td>
282
      <td>[% account.san %]</td>
283
      [% IF account.quotes_enabled %]
283
      [% IF account.quotes_enabled %]
284
         <td>Y</td>
284
         <td>[% t('Y') %]</td>
285
      [% ELSE %]
285
      [% ELSE %]
286
         <td>N</td>
286
         <td>[% t('N') %]</td>
287
      [% END %]
287
      [% END %]
288
      [% IF account.orders_enabled %]
288
      [% IF account.orders_enabled %]
289
         <td>Y</td>
289
         <td>[% t('Y') %]</td>
290
      [% ELSE %]
290
      [% ELSE %]
291
         <td>N</td>
291
         <td>[% t('N') %]</td>
292
      [% END %]
292
      [% END %]
293
      [% IF account.invoices_enabled %]
293
      [% IF account.invoices_enabled %]
294
         <td>Y</td>
294
         <td>[% t('Y') %]</td>
295
      [% ELSE %]
295
      [% ELSE %]
296
         <td>N</td>
296
         <td>[% t('N') %]</td>
297
      [% END %]
297
      [% END %]
298
      [% IF account.responses_enabled %]
298
      [% IF account.responses_enabled %]
299
         <td>Y</td>
299
         <td>[% t('Y') %]</td>
300
      [% ELSE %]
300
      [% ELSE %]
301
         <td>N</td>
301
         <td>[% t('N') %]</td>
302
      [% END %]
302
      [% END %]
303
      [% IF account.auto_orders %]
303
      [% IF account.auto_orders %]
304
         <td>Y</td>
304
         <td>[% t('Y') %]</td>
305
      [% ELSE %]
305
      [% ELSE %]
306
         <td>N</td>
306
         <td>[% t('N') %]</td>
307
      [% END %]
307
      [% END %]
308
      <td class="actions">
308
      <td class="actions">
309
          <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]"><i class="fa fa-trash"></i> Delete</a>
309
          <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
310
      </td>
310
      </td>
311
    </tr>
311
    </tr>
312
    [% END %]
312
    [% END %]
313
    </table>
313
    </table>
314
    [% ELSE %]
314
    [% ELSE %]
315
        <div class="dialog message">
315
        <div class="dialog message">
316
            There are no EDI accounts.
316
            [% t('There are no EDI accounts.') %]
317
        </div>
317
        </div>
318
    [% END %]
318
    [% END %]
319
[% END %]
319
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt (-31 / +32 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Library EANs
5
<title>[% t('Koha › Administration › Library EANs') %]
5
[% IF ean_form %]
6
[% IF ean_form %]
6
  [% IF ean %]
7
  [% IF ean %]
7
     &rsaquo; Modify library EAN
8
     [% t('› Modify library EAN') %]
8
  [% ELSE %]
9
  [% ELSE %]
9
     &rsaquo; Add new library EAN
10
     [% t('› Add new library EAN') %]
10
  [% END %]
11
  [% END %]
11
[% END %]
12
[% END %]
12
[% IF delete_confirm %]
13
[% IF delete_confirm %]
13
     &rsaquo; Confirm deletion of EAN
14
     [% t('› Confirm deletion of EAN') %]
14
[% END %]
15
[% END %]
15
</title>
16
</title>
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
Lines 20-37 Link Here
20
[% INCLUDE 'prefs-admin-search.inc' %]
21
[% INCLUDE 'prefs-admin-search.inc' %]
21
22
22
<div id="breadcrumbs">
23
<div id="breadcrumbs">
23
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
24
 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
25
 › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
25
[% IF ean_form %]
26
[% IF ean_form %]
26
  [% IF ean %]
27
  [% IF ean %]
27
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Modify library EAN
28
     › <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">[% t('Library EANs') %]</a> [% t('› Modify library EAN') %]
28
  [% ELSE %]
29
  [% ELSE %]
29
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Add new library EAN
30
     › <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">[% t('Library EANs') %]</a> [% t('› Add new library EAN') %]
30
  [% END %]
31
  [% END %]
31
[% ELSIF delete_confirm %]
32
[% ELSIF delete_confirm %]
32
     &rsaquo; <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a> &rsaquo; Confirm deletion of EAN
33
     › <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">[% t('Library EANs') %]</a> [% t('› Confirm deletion of EAN') %]
33
[% ELSE %]
34
[% ELSE %]
34
     &rsaquo; Library EANs
35
     [% t('› Library EANs') %]
35
[% END %]
36
[% END %]
36
</div>
37
</div>
37
38
Lines 44-50 Link Here
44
    <div id="toolbar" class="btn-toolbar">
45
    <div id="toolbar" class="btn-toolbar">
45
    <a class="btn btn-default btn-sm" id="newediean" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form">
46
    <a class="btn btn-default btn-sm" id="newediean" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form">
46
         <i class="fa fa-plus"></i>
47
         <i class="fa fa-plus"></i>
47
         New EAN
48
         [% t('New EAN') %]
48
    </a>
49
    </a>
49
    </div>
50
    </div>
50
[% END %]
51
[% END %]
Lines 60-74 Link Here
60
  <fieldset class="rows">
61
  <fieldset class="rows">
61
      <legend>
62
      <legend>
62
          [% IF ean %]
63
          [% IF ean %]
63
             Modify EAN
64
             [% t('Modify EAN') %]
64
          [% ELSE %]
65
          [% ELSE %]
65
            New EAN
66
            [% t('New EAN') %]
66
          [% END %]
67
          [% END %]
67
      </legend>
68
      </legend>
68
69
69
      <ol>
70
      <ol>
70
          <li>
71
          <li>
71
             <label for="branchcode">Library: </label>
72
             <label for="branchcode">[% t('Library:') %] </label>
72
             <select name="branchcode" id="branchcode">
73
             <select name="branchcode" id="branchcode">
73
                [% FOREACH branch IN branches %]
74
                [% FOREACH branch IN branches %]
74
                    [% IF branch.branchcode == ean.branch.branchcode %]
75
                    [% IF branch.branchcode == ean.branch.branchcode %]
Lines 80-94 Link Here
80
              </select>
81
              </select>
81
          </li>
82
          </li>
82
          <li>
83
          <li>
83
             <label for="description">Description: </label>
84
             <label for="description">[% t('Description:') %] </label>
84
             <input type="text" name="description" id="description" size="30" maxlength="128" value="[% ean.description %]" />
85
             <input type="text" name="description" id="description" size="30" maxlength="128" value="[% ean.description %]" />
85
          </li>
86
          </li>
86
          <li>
87
          <li>
87
             <label for="ean">EAN: </label>
88
             <label for="ean">[% t('EAN:') %] </label>
88
             <input type="text" name="ean" id="ean" size="20" maxlength="15" value="[% ean.ean %]" />
89
             <input type="text" name="ean" id="ean" size="20" maxlength="15" value="[% ean.ean %]" />
89
          </li>
90
          </li>
90
          <li>
91
          <li>
91
             <label for="id_code_qualifier">Qualifier: </label>
92
             <label for="id_code_qualifier">[% t('Qualifier:') %] </label>
92
             <select name="id_code_qualifier" id="id_code_qualifier">
93
             <select name="id_code_qualifier" id="id_code_qualifier">
93
                 [% FOREACH qualifier IN code_qualifiers %]
94
                 [% FOREACH qualifier IN code_qualifiers %]
94
                    [% IF qualifier.code == ean.id_code_qualifier %]
95
                    [% IF qualifier.code == ean.id_code_qualifier %]
Lines 107-142 Link Here
107
  </fieldset>
108
  </fieldset>
108
109
109
  <fieldset class="action">
110
  <fieldset class="action">
110
    <input type="submit" value="Submit"/>
111
    <input type="submit" value="Submit" />
111
    <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" class="cancel">Cancel</a>
112
    <a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" class="cancel">[% t('Cancel') %]</a>
112
  </fieldset>
113
  </fieldset>
113
</form>
114
</form>
114
[% END %]
115
[% END %]
115
116
116
[% IF delete_confirm %]
117
[% IF delete_confirm %]
117
<div class="dialog alert">
118
<div class="dialog alert">
118
<h3>Delete EAN [% ean.ean %] for [% ean.branch.branchname %]?</h3>
119
<h3>[% t('Delete EAN') %] [% ean.ean %] [% t('for') %] [% ean.branch.branchname %]?</h3>
119
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post">
120
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="post">
120
    <input type="hidden" name="op" value="delete_confirmed" />
121
    <input type="hidden" name="op" value="delete_confirmed" />
121
    <input type="hidden" name="id" value="[% ean.id %]" />
122
    <input type="hidden" name="id" value="[% ean.id %]" />
122
    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
123
    <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
123
</form>
124
</form>
124
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="get">
125
<form action="/cgi-bin/koha/admin/edi_ean_accounts.pl" method="get">
125
    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
126
    <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
126
</form>
127
</form>
127
</div>
128
</div>
128
[% END %]
129
[% END %]
129
130
130
[% IF display %]
131
[% IF display %]
131
[% IF ( eans ) %]
132
[% IF ( eans ) %]
132
    <h2>Library EANs</h2>
133
    <h2>[% t('Library EANs') %]</h2>
133
    <table>
134
    <table>
134
        <tr>
135
        <tr>
135
            <th>Library</th>
136
            <th>[% t('Library') %]</th>
136
            <th>Description</th>
137
            <th>[% t('Description') %]</th>
137
            <th>EAN</th>
138
            <th>[% t('EAN') %]</th>
138
            <th>Qualifier</th>
139
            <th>[% t('Qualifier') %]</th>
139
            <th>Actions</th>
140
            <th>[% t('Actions') %]</th>
140
        </tr>
141
        </tr>
141
        [% FOREACH ean IN eans %]
142
        [% FOREACH ean IN eans %]
142
            <tr>
143
            <tr>
Lines 151-165 Link Here
151
                 [% END %]
152
                 [% END %]
152
                </td>
153
                </td>
153
                <td class="actions">
154
                <td class="actions">
154
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form&id=[% ean.id %]"><i class="fa fa-pencil"></i> Edit</a>
155
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=ean_form&id=[% ean.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
155
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=delete_confirm&id=[% ean.id %]"><i class="fa fa-trash"></i> Delete</a>
156
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_ean_accounts.pl?op=delete_confirm&id=[% ean.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
156
                </td>
157
                </td>
157
            </tr>
158
            </tr>
158
        [% END %]
159
        [% END %]
159
    </table>
160
    </table>
160
[% ELSE %]
161
[% ELSE %]
161
    <div class="dialog message">
162
    <div class="dialog message">
162
        There are no library EANs.
163
        [% t('There are no library EANs.') %]
163
    </div>
164
    </div>
164
[% END %]
165
[% END %]
165
[% END %]
166
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt (-16 / +17 lines)
Lines 1-25 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Keyword to MARC mapping</title>
5
<title>[% t('Koha › Administration › Keyword to MARC mapping') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
8
<body id="admin_fieldmapping" class="admin">
9
<body id="admin_fieldmapping" class="admin">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
<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; Keyword to MARC mapping</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Keyword to MARC mapping') %]</div>
12
<div id="doc3" class="yui-t2">
13
<div id="doc3" class="yui-t2">
13
	<div id="yui-main">
14
	<div id="yui-main">
14
		<div class="yui-b">
15
		<div class="yui-b">
15
            <h2>Keyword to MARC mapping</h2>
16
            <h2>[% t('Keyword to MARC mapping') %]</h2>
16
            [% UNLESS ( fields.count ) %]
17
            [% UNLESS ( fields.count ) %]
17
                <div class="dialog message"><p>There are no mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext |html %]</em>[% ELSE %]default[% END %] framework. </p></div>
18
                <div class="dialog message"><p>[% t('There are no mappings for the') %] [% IF framework.frameworktext %]<em>[% framework.frameworktext |html %]</em>[% ELSE %][% t('default') %][% END %] [% t('framework.') %] </p></div>
18
            [% END %]
19
            [% END %]
19
			<form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
20
			<form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
20
				<label for="framework">Framework:</label>
21
				<label for="framework">[% t('Framework:') %]</label>
21
                <select name="framework" id="framework" style="width:20em;">
22
                <select name="framework" id="framework" style="width:20em;">
22
                    <option value="">Default</option>
23
                    <option value="">[% t('Default') %]</option>
23
                [% FOREACH f IN frameworks %]
24
                [% FOREACH f IN frameworks %]
24
                    [% IF f.frameworkcode == framework.frameworkcode %]
25
                    [% IF f.frameworkcode == framework.frameworkcode %]
25
                    <option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
26
                    <option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
Lines 35-45 Link Here
35
			<form method="post" action="" id="addfield">
36
			<form method="post" action="" id="addfield">
36
                <input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
37
                <input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
37
				<fieldset class="rows">
38
				<fieldset class="rows">
38
				<legend>Add a mapping</legend>
39
				<legend>[% t('Add a mapping') %]</legend>
39
				<ol>
40
				<ol>
40
					<li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
41
					<li><label for="fieldname">[% t('Field name:') %] </label><input type="text" id="fieldname" name="fieldname" /></li>
41
					<li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
42
					<li><label for="marcfield">[% t('MARC field:') %] </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
42
					<li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
43
					<li><label for="marcsubfield">[% t('MARC subfield:') %] </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
43
				</ol>
44
				</ol>
44
				<fieldset class="action">
45
				<fieldset class="action">
45
					<input type="submit" value="Submit" />
46
					<input type="submit" value="Submit" />
Lines 49-67 Link Here
49
50
50
                [% IF ( fields.count ) %]
51
                [% IF ( fields.count ) %]
51
                    <table>
52
                    <table>
52
                    <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
53
                    <caption>[% t('Mappings for the') %] [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %][% t('default') %][% END %] [% t('framework') %]</caption>
53
									<tr>
54
									<tr>
54
										<th>Field</th>
55
										<th>[% t('Field') %]</th>
55
                                        <th>MARC field</th>
56
                                        <th>[% t('MARC field') %]</th>
56
                                        <th>MARC subfield</th>
57
                                        <th>[% t('MARC subfield') %]</th>
57
										<th>&nbsp;</th>
58
										<th> </th>
58
									</tr>
59
									</tr>
59
									[% FOREACH field IN fields %]
60
									[% FOREACH field IN fields %]
60
									<tr>
61
									<tr>
61
                                        <td>[% field.field |html %]</td>
62
                                        <td>[% field.field |html %]</td>
62
										<td>[% field.fieldcode %]</td>
63
										<td>[% field.fieldcode %]</td>
63
										<td>[% field.subfieldcode %]</td>
64
										<td>[% field.subfieldcode %]</td>
64
                                        <td><a class="btn btn-default btn-xs" href="?op=delete&amp;id=[% field.id %]&amp;framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td>
65
                                        <td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id %]&framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
65
									</tr>
66
									</tr>
66
									[% END %]
67
									[% END %]
67
								</table>[% END %]
68
								</table>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt (-22 / +23 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Item circulation alerts</title>
6
<title>[% t('Koha › Administration › Item circulation alerts') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
8
table.grid thead th {
9
table.grid thead th {
Lines 44-50 table.grid td.default { Link Here
44
<body id="admin_item_circulation_alerts" class="admin">
45
<body id="admin_item_circulation_alerts" class="admin">
45
[% INCLUDE 'header.inc' %]
46
[% INCLUDE 'header.inc' %]
46
[% INCLUDE 'prefs-admin-search.inc' %]
47
[% INCLUDE 'prefs-admin-search.inc' %]
47
<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; Item circulation alerts </div>
48
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Item circulation alerts') %] </div>
48
49
49
<div id="doc3" class="yui-t1">
50
<div id="doc3" class="yui-t1">
50
51
Lines 55-65 table.grid td.default { Link Here
55
56
56
<div class="yui-g">
57
<div class="yui-g">
57
<div class="yui-u first">
58
<div class="yui-u first">
58
<h1>Item circulation alerts</h1>
59
<h1>[% t('Item circulation alerts') %]</h1>
59
<h2>Select a library:</h2>
60
<h2>[% t('Select a library:') %]</h2>
60
<form id="branch_selector" method="get" action="/cgi-bin/koha/admin/item_circulation_alerts.pl">
61
<form id="branch_selector" method="get" action="/cgi-bin/koha/admin/item_circulation_alerts.pl">
61
<select id="branch" name="branch">
62
<select id="branch" name="branch">
62
    <option value="*">Default</option>
63
    <option value="*">[% t('Default') %]</option>
63
    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
64
    [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
64
</select>
65
</select>
65
<input type="submit" name="pick" value="Pick" />
66
<input type="submit" name="pick" value="Pick" />
Lines 67-112 table.grid td.default { Link Here
67
</div>
68
</div>
68
<div class="yui-u">
69
<div class="yui-u">
69
<table class="grid">
70
<table class="grid">
70
<caption>Legend</caption>
71
<caption>[% t('Legend') %]</caption>
71
<thead>
72
<thead>
72
<tr>
73
<tr>
73
  <th>Color</th>
74
  <th>[% t('Color') %]</th>
74
  <th>Meaning</th>
75
  <th>[% t('Meaning') %]</th>
75
</tr>
76
</tr>
76
</thead>
77
</thead>
77
<tbody>
78
<tbody>
78
  <tr>
79
  <tr>
79
    <td width="100" class="default">&nbsp;</td>
80
    <td width="100" class="default"> </td>
80
    <td class="info">These are disabled for ALL libraries.  To change these settings, choose the "Default" library.</td>
81
    <td class="info">[% t('These are disabled for ALL libraries.') %]  [% t('To change these settings, choose the &#34;Default&#34; library.') %]</td>
81
  </tr>
82
  </tr>
82
  <tr>
83
  <tr>
83
    <td class="disabled">&nbsp;</td>
84
    <td class="disabled"> </td>
84
    <td class="info">These are disabled for the current library.</td>
85
    <td class="info">[% t('These are disabled for the current library.') %]</td>
85
  </tr>
86
  </tr>
86
  <tr>
87
  <tr>
87
    <td>&nbsp;</td>
88
    <td> </td>
88
    <td class="info">These are enabled.</td>
89
    <td class="info">[% t('These are enabled.') %]</td>
89
  </tr>
90
  </tr>
90
</tbody>
91
</tbody>
91
</table>
92
</table>
92
</div>
93
</div>
93
</div>
94
</div>
94
95
95
<h2>Circulation alerts for [% Branches.GetName( branch ) || 'Default' %]</h2>
96
<h2>[% t('Circulation alerts for') %] [% Branches.GetName( branch ) || 'Default' %]</h2>
96
<p>Click on the grid to toggle the settings.</p>
97
<p>[% t('Click on the grid to toggle the settings.') %]</p>
97
98
98
<div id="alerttabs" class="toptabs">
99
<div id="alerttabs" class="toptabs">
99
<ul>
100
<ul>
100
<li><a href="#checkout">Checkout</a></li>
101
<li><a href="#checkout">[% t('Checkout') %]</a></li>
101
<li><a href="#checkin">Check-in</a></li>
102
<li><a href="#checkin">[% t('Check-in') %]</a></li>
102
</ul>
103
</ul>
103
104
104
<div id="checkout">
105
<div id="checkout">
105
<h3>Checkout</h3>
106
<h3>[% t('Checkout') %]</h3>
106
<table class="grid active" width="100%">
107
<table class="grid active" width="100%">
107
<thead>
108
<thead>
108
<tr>
109
<tr>
109
  <th>&nbsp;</th>
110
  <th> </th>
110
  [% FOREACH item_type IN item_types %]
111
  [% FOREACH item_type IN item_types %]
111
  <th>[% item_type.description %]</th>
112
  <th>[% item_type.description %]</th>
112
  [% END %]
113
  [% END %]
Lines 126-136 table.grid td.default { Link Here
126
</div>
127
</div>
127
128
128
<div id="checkin">
129
<div id="checkin">
129
<h3>Check-in</h3>
130
<h3>[% t('Check-in') %]</h3>
130
<table class="grid active" width="100%">
131
<table class="grid active" width="100%">
131
<thead>
132
<thead>
132
<tr>
133
<tr>
133
  <th>&nbsp;</th>
134
  <th> </th>
134
  [% FOREACH item_type IN item_types %]
135
  [% FOREACH item_type IN item_types %]
135
  <th>[% item_type.description %]</th>
136
  <th>[% item_type.description %]</th>
136
  [% END %]
137
  [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt (-7 / +8 lines)
Lines 1-17 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
  <title>Koha &rsaquo; Administration &rsaquo; Item search fields</title>
6
  <title>[% t('Koha › Administration › Item search fields') %]</title>
6
  [% INCLUDE 'doc-head-close.inc' %]
7
  [% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="admin_itemssearchfields" class="admin">
9
<body id="admin_itemssearchfields" class="admin">
9
  [% INCLUDE 'header.inc' %]
10
  [% INCLUDE 'header.inc' %]
10
  [% INCLUDE 'prefs-admin-search.inc' %]
11
  [% INCLUDE 'prefs-admin-search.inc' %]
11
  <div id="breadcrumbs">
12
  <div id="breadcrumbs">
12
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
13
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
13
    <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
14
    <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
14
    <a href="/cgi-bin/koha/admin/items_search_fields.pl">Item search fields</a> &rsaquo;
15
    <a href="/cgi-bin/koha/admin/items_search_fields.pl">[% t('Item search fields') %]</a> ›
15
    [% field.name |html %]
16
    [% field.name |html %]
16
  </div>
17
  </div>
17
18
Lines 19-29 Link Here
19
    <div id="bd">
20
    <div id="bd">
20
      <div id="yui-main">
21
      <div id="yui-main">
21
        <div class="yui-b">
22
        <div class="yui-b">
22
          <h1>Item search field: [% field.label |html %]</h1>
23
          <h1>[% t('Item search field:') %] [% field.label |html %]</h1>
23
24
24
          <form action="/cgi-bin/koha/admin/items_search_field.pl" method="POST" class="validated">
25
          <form action="/cgi-bin/koha/admin/items_search_field.pl" method="POST" class="validated">
25
            <fieldset class="rows">
26
            <fieldset class="rows">
26
              <legend>Edit field</legend>
27
              <legend>[% t('Edit field') %]</legend>
27
              [% INCLUDE 'admin-items-search-field-form.inc' field=field %]
28
              [% INCLUDE 'admin-items-search-field-form.inc' field=field %]
28
              <div>
29
              <div>
29
                <input type="hidden" name="op" value="mod" />
30
                <input type="hidden" name="op" value="mod" />
Lines 31-37 Link Here
31
            </fieldset>
32
            </fieldset>
32
            <fieldset class="action">
33
            <fieldset class="action">
33
                <input type="submit" value="Submit" />
34
                <input type="submit" value="Submit" />
34
                <a class="cancel" href="/cgi-bin/koha/admin/items_search_fields.pl">Cancel</a>
35
                <a class="cancel" href="/cgi-bin/koha/admin/items_search_fields.pl">[% t('Cancel') %]</a>
35
            </fieldset>
36
            </fieldset>
36
          </form>
37
          </form>
37
        </div>
38
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt (-26 / +27 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
  <title>Koha &rsaquo; Administration &rsaquo; Item search fields</title>
6
  <title>[% t('Koha › Administration › Item search fields') %]</title>
6
  [% INCLUDE 'doc-head-close.inc' %]
7
  [% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 10-18 Link Here
10
  [% INCLUDE 'header.inc' %]
11
  [% INCLUDE 'header.inc' %]
11
  [% INCLUDE 'prefs-admin-search.inc' %]
12
  [% INCLUDE 'prefs-admin-search.inc' %]
12
  <div id="breadcrumbs">
13
  <div id="breadcrumbs">
13
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
14
    <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
15
    <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
15
    Item search fields
16
    [% t('Item search fields') %]
16
  </div>
17
  </div>
17
18
18
  <div id="doc3" class="yui-t2">
19
  <div id="doc3" class="yui-t2">
Lines 21-70 Link Here
21
        <div class="yui-b">
22
        <div class="yui-b">
22
23
23
    <div id="toolbar" class="btn-toolbar">
24
    <div id="toolbar" class="btn-toolbar">
24
        <a class="btn btn-default btn-sm" id="new_search_field" href="/cgi-bin/koha/admin/items_search_fields.pl"><i class="fa fa-plus"></i> New search field</a>
25
        <a class="btn btn-default btn-sm" id="new_search_field" href="/cgi-bin/koha/admin/items_search_fields.pl"><i class="fa fa-plus"></i> [% t('New search field') %]</a>
25
    </div>
26
    </div>
26
27
27
          [% IF field_added %]
28
          [% IF field_added %]
28
            <div class="dialog message">
29
            <div class="dialog message">
29
              Field successfully added: [% field_added.label |html %]
30
              [% t('Field successfully added:') %] [% field_added.label |html %]
30
            </div>
31
            </div>
31
          [% ELSIF field_not_added %]
32
          [% ELSIF field_not_added %]
32
            <div class="dialog alert">
33
            <div class="dialog alert">
33
              <p>Failed to add field. Please make sure the field name doesn't already exist.</p>
34
              <p>[% t('Failed to add field. Please make sure the field name doesn\'t already exist.') %]</p>
34
              <p>Check logs for more details.</p>
35
              <p>[% t('Check logs for more details.') %]</p>
35
            </div>
36
            </div>
36
          [% ELSIF field_deleted %]
37
          [% ELSIF field_deleted %]
37
            <div class="dialog message">
38
            <div class="dialog message">
38
              Field successfully deleted.
39
              [% t('Field successfully deleted.') %]
39
            </div>
40
            </div>
40
          [% ELSIF field_not_deleted %]
41
          [% ELSIF field_not_deleted %]
41
            <div class="dialog alert">
42
            <div class="dialog alert">
42
              <p>Failed to delete field.</p>
43
              <p>[% t('Failed to delete field.') %]</p>
43
              <p>Check logs for more details.</p>
44
              <p>[% t('Check logs for more details.') %]</p>
44
            </div>
45
            </div>
45
          [% ELSIF field_updated %]
46
          [% ELSIF field_updated %]
46
            <div class="dialog message">
47
            <div class="dialog message">
47
              Field successfully updated: [% field_updated.label %]
48
              [% t('Field successfully updated:') %] [% field_updated.label %]
48
            </div>
49
            </div>
49
          [% ELSIF field_not_updated %]
50
          [% ELSIF field_not_updated %]
50
            <div class="dialog alert">
51
            <div class="dialog alert">
51
              <p>Failed to update field.</p>
52
              <p>[% t('Failed to update field.') %]</p>
52
              <p>Check logs for more details.</p>
53
              <p>[% t('Check logs for more details.') %]</p>
53
            </div>
54
            </div>
54
          [% END %]
55
          [% END %]
55
          [% IF fields.size %]
56
          [% IF fields.size %]
56
              <div id="search_fields_list">
57
              <div id="search_fields_list">
57
                  <h2>Item search fields</h2>
58
                  <h2>[% t('Item search fields') %]</h2>
58
59
59
                  <table id="search_fields_table">
60
                  <table id="search_fields_table">
60
                    <thead>
61
                    <thead>
61
                      <tr>
62
                      <tr>
62
                        <th>Name</th>
63
                        <th>[% t('Name') %]</th>
63
                        <th>Label</th>
64
                        <th>[% t('Label') %]</th>
64
                        <th>MARC field</th>
65
                        <th>[% t('MARC field') %]</th>
65
                        <th>MARC subfield</th>
66
                        <th>[% t('MARC subfield') %]</th>
66
                        <th>Authorised values category</th>
67
                        <th>[% t('Authorised values category') %]</th>
67
                        <th>Actions</th>
68
                        <th>[% t('Actions') %]</th>
68
                      </tr>
69
                      </tr>
69
                    </thead>
70
                    </thead>
70
                    <tbody>
71
                    <tbody>
Lines 76-83 Link Here
76
                          <td>[% field.tagsubfield %]</td>
77
                          <td>[% field.tagsubfield %]</td>
77
                          <td>[% field.authorised_values_category %]</td>
78
                          <td>[% field.authorised_values_category %]</td>
78
                          <td>
79
                          <td>
79
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_field.pl?name=[% field.name |html %]" title="Edit [% field.name |html %] field"><i class="fa fa-pencil"></i> Edit</a>
80
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_field.pl?name=[% field.name |html %]" title="[% t('Edit') %] [% field.name |html %] [% t('field') %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
80
                            <a class="field-delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_fields.pl?op=del&name=[% field.name |html %]"><i class="fa fa-trash"></i> Delete</a>
81
                            <a class="field-delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_fields.pl?op=del&name=[% field.name |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
81
                          </td>
82
                          </td>
82
                        </tr>
83
                        </tr>
83
                      [% END %]
84
                      [% END %]
Lines 86-104 Link Here
86
              </div>
87
              </div>
87
          [% ELSE %]
88
          [% ELSE %]
88
              <div class="dialog message">
89
              <div class="dialog message">
89
                  There are no item search fields defined.
90
                  [% t('There are no item search fields defined.') %]
90
              </div>
91
              </div>
91
          [% END %]
92
          [% END %]
92
93
93
          <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST" class="validated">
94
          <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST" class="validated">
94
            <fieldset class="rows">
95
            <fieldset class="rows">
95
              <legend>Add a new field</legend>
96
              <legend>[% t('Add a new field') %]</legend>
96
              [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
97
              [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
97
              <input type="hidden" name="op" value="add" />
98
              <input type="hidden" name="op" value="add" />
98
            </fieldset>
99
            </fieldset>
99
            <fieldset class="action">
100
            <fieldset class="action">
100
              <input type="submit" value="Submit" />
101
              <input type="submit" value="Submit" />
101
              <a href="#" class="cancel">Cancel</a>
102
              <a href="#" class="cancel">[% t('Cancel') %]</a>
102
            </fieldset>
103
            </fieldset>
103
          </form>
104
          </form>
104
105
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-88 / +89 lines)
Lines 1-25 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF op == 'add_form' %]&rsaquo;
8
<title>[% t('Koha › Administration › Item types') %] [% IF op == 'add_form' %]›
8
  [% IF ( itemtype ) %]
9
  [% IF ( itemtype ) %]
9
Modify item type '[% itemtype.itemtype %]'
10
[% t('Modify item type \'') %][% itemtype.itemtype %]'
10
  [% ELSE %]
11
  [% ELSE %]
11
Add item type
12
[% t('Add item type') %]
12
  [% END %]
13
  [% END %]
13
[% END %]
14
[% END %]
14
[% IF op == 'delete_confirm' %]&rsaquo;
15
[% IF op == 'delete_confirm' %]›
15
  [% IF ( total ) %]
16
  [% IF ( total ) %]
16
Cannot delete item type '[% itemtype.itemtype %]'
17
[% t('Cannot delete item type \'') %][% itemtype.itemtype %]'
17
  [% ELSE %]
18
  [% ELSE %]
18
Delete item type '[% itemtype.itemtype %]'?
19
[% t('Delete item type \'') %][% itemtype.itemtype %]'?
19
  [% END %]
20
  [% END %]
20
[% END %]
21
[% END %]
21
[% IF op == 'delete_confirmed' %]&rsaquo;
22
[% IF op == 'delete_confirmed' %]›
22
Data deleted
23
[% t('Data deleted') %]
23
[% END %]
24
[% END %]
24
</title>
25
</title>
25
[% INCLUDE 'doc-head-close.inc' %]
26
[% INCLUDE 'doc-head-close.inc' %]
Lines 36-60 Data deleted Link Here
36
[% INCLUDE 'header.inc' %]
37
[% INCLUDE 'header.inc' %]
37
[% INCLUDE 'prefs-admin-search.inc' %]
38
[% INCLUDE 'prefs-admin-search.inc' %]
38
39
39
<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 op == 'add_form' %]
40
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF op == 'add_form' %]
40
  [% IF itemtype %]
41
  [% IF itemtype %]
41
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Modify item type '[% itemtype.itemtype %]'
42
<a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a> [% t('› Modify item type \'') %][% itemtype.itemtype %]'
42
  [% ELSE %]
43
  [% ELSE %]
43
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Add item type
44
<a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a> [% t('› Add item type') %]
44
  [% END %]
45
  [% END %]
45
[% END %]
46
[% END %]
46
[% IF op == 'delete_confirm' %]
47
[% IF op == 'delete_confirm' %]
47
  [% IF total %]
48
  [% IF total %]
48
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Cannot delete item type '[% itemtype.itemtype %]'
49
<a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a> [% t('› Cannot delete item type \'') %][% itemtype.itemtype %]'
49
  [% ELSE %]
50
  [% ELSE %]
50
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Delete item type '[% itemtype.itemtype %]'?
51
<a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a> [% t('› Delete item type \'') %][% itemtype.itemtype %]'?
51
  [% END %]
52
  [% END %]
52
[% END %]
53
[% END %]
53
[% IF op == 'delete_confirmed' %]
54
[% IF op == 'delete_confirmed' %]
54
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo;Data deleted
55
<a href="/cgi-bin/koha/admin/itemtypes.pl">[% t('Item types') %]</a> [% t('›Data deleted') %]
55
[% END %]
56
[% END %]
56
[% IF op == 'list' %]
57
[% IF op == 'list' %]
57
Item types administration
58
[% t('Item types administration') %]
58
[% END %]</div>
59
[% END %]</div>
59
60
60
<div id="doc3" class="yui-t2">
61
<div id="doc3" class="yui-t2">
Lines 65-92 Item types administration Link Here
65
	
66
	
66
67
67
[% IF op == 'list' %]<div id="toolbar" class="btn-toolbar">
68
[% IF op == 'list' %]<div id="toolbar" class="btn-toolbar">
68
    <a class="btn btn-default btn-sm" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="fa fa-plus"></i> New item type</a>
69
    <a class="btn btn-default btn-sm" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New item type') %]</a>
69
</div>[% END %]
70
</div>[% END %]
70
71
71
[% FOREACH m IN messages %]
72
[% FOREACH m IN messages %]
72
    <div class="dialog [% m.type %]">
73
    <div class="dialog [% m.type %]">
73
        [% SWITCH m.code %]
74
        [% SWITCH m.code %]
74
        [% CASE 'error_on_update' %]
75
        [% CASE 'error_on_update' %]
75
            An error occurred when updating this item type. Perhaps the value already exists.
76
            [% t('An error occurred when updating this item type. Perhaps the value already exists.') %]
76
        [% CASE 'error_on_insert' %]
77
        [% CASE 'error_on_insert' %]
77
            An error occurred when inserting this item type. Perhaps the value already exists.
78
            [% t('An error occurred when inserting this item type. Perhaps the value already exists.') %]
78
        [% CASE 'error_on_delete' %]
79
        [% CASE 'error_on_delete' %]
79
            An error occurred when deleting this item type. Check the logs.
80
            [% t('An error occurred when deleting this item type. Check the logs.') %]
80
        [% CASE 'success_on_update' %]
81
        [% CASE 'success_on_update' %]
81
            Item type updated successfully.
82
            [% t('Item type updated successfully.') %]
82
        [% CASE 'success_on_insert' %]
83
        [% CASE 'success_on_insert' %]
83
            Item type inserted successfully.
84
            [% t('Item type inserted successfully.') %]
84
        [% CASE 'success_on_delete' %]
85
        [% CASE 'success_on_delete' %]
85
            Item type deleted successfully.
86
            [% t('Item type deleted successfully.') %]
86
        [% CASE 'already_exists' %]
87
        [% CASE 'already_exists' %]
87
            This item type already exists.
88
            [% t('This item type already exists.') %]
88
        [% CASE 'cannot_be_deleted' %]
89
        [% CASE 'cannot_be_deleted' %]
89
            Cannot delete this item type. <p><strong>This record is in use</strong>. Deletion is not possible.</p>
90
            [% t('Cannot delete this item type.') %] <p><strong>[% t('This record is in use') %]</strong>[% t('. Deletion is not possible.') %]</p>
90
        [% CASE %]
91
        [% CASE %]
91
            [% m.code %]
92
            [% m.code %]
92
        [% END %]
93
        [% END %]
Lines 96-104 Item types administration Link Here
96
97
97
[% IF op == 'add_form' %]
98
[% IF op == 'add_form' %]
98
    [% IF itemtype %]
99
    [% IF itemtype %]
99
        <h3>Modify item type</h3>
100
        <h3>[% t('Modify item type') %]</h3>
100
    [% ELSE %]
101
    [% ELSE %]
101
        <h3>Add item type</h3>
102
        <h3>[% t('Add item type') %]</h3>
102
    [% END %]
103
    [% END %]
103
    <form action="/cgi-bin/koha/admin/itemtypes.pl" name="Aform" method="post" id="itemtypeentry">
104
    <form action="/cgi-bin/koha/admin/itemtypes.pl" name="Aform" method="post" id="itemtypeentry">
104
        <input type="hidden" name="op" value="add_validate" />
105
        <input type="hidden" name="op" value="add_validate" />
Lines 107-157 Item types administration Link Here
107
                [% IF itemtype %]
108
                [% IF itemtype %]
108
                    <li>
109
                    <li>
109
                        <input type="hidden" name="is_a_modif" value="1" />
110
                        <input type="hidden" name="is_a_modif" value="1" />
110
                        <span class="label">Item type: </span> <input type="hidden" name="itemtype" value="[% itemtype.itemtype %]" />
111
                        <span class="label">[% t('Item type:') %] </span> <input type="hidden" name="itemtype" value="[% itemtype.itemtype %]" />
111
                        [% itemtype.itemtype %]
112
                        [% itemtype.itemtype %]
112
                    </li>
113
                    </li>
113
                [% ELSE %]
114
                [% ELSE %]
114
                    <li>
115
                    <li>
115
                        <label for="itemtype" class="required">Item type: </label>
116
                        <label for="itemtype" class="required">[% t('Item type:') %] </label>
116
                        <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" /> <span class="required">Required</span>
117
                        <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" /> <span class="required">[% t('Required') %]</span>
117
                    </li>
118
                    </li>
118
                [% END %]
119
                [% END %]
119
                <li>
120
                <li>
120
                    <label for="description" class="required">Description: </label>
121
                    <label for="description" class="required">[% t('Description:') %] </label>
121
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description |html %]" required="required" /> <span class="required">Required</span>
122
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description |html %]" required="required" /> <span class="required">[% t('Required') %]</span>
122
                    [% IF can_be_translated %]
123
                    [% IF can_be_translated %]
123
                        <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype %]" title="Translate item type [% itemtype.itemtype %]" rel="gb_page_center[600,500]"><i class="fa fa-pencil"></i> Translate into other languages</a>
124
                        <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype %]" title="[% t('Translate item type') %] [% itemtype.itemtype %]" rel="gb_page_center[600,500]"><i class="fa fa-pencil"></i> [% t('Translate into other languages') %]</a>
124
                    [% END %]
125
                    [% END %]
125
                </li>
126
                </li>
126
                <li>
127
                <li>
127
                    <span class="label">Search category</span>
128
                    <span class="label">[% t('Search category') %]</span>
128
                    <select id="searchcategory" name="searchcategory">
129
                    <select id="searchcategory" name="searchcategory">
129
                    <option value="">None</option>
130
                    <option value="">[% t('None') %]</option>
130
                        [% FOREACH cat IN searchcategory %]
131
                        [% FOREACH cat IN searchcategory %]
131
                            [% IF cat.authorised_value == itemtype.searchcategory %]
132
                            [% IF cat.authorised_value == itemtype.searchcategory %]
132
                                <option value="[% cat.authorised_value %]" selected="selected">
133
                                <option value="[% cat.authorised_value %]" selected="selected">
133
                                    [% cat.lib %]
134
                                    [% cat.lib %]
134
                                </option>
135
                                </option>
135
                            [% ELSE %]
136
                            [% ELSE %]
136
                                <option value="[% cat.authorised_value %]" >
137
                                <option value="[% cat.authorised_value %]">
137
                                    [% cat.lib %]
138
                                    [% cat.lib %]
138
                                </option>
139
                                </option>
139
                            [% END %]
140
                            [% END %]
140
                        [% END %]
141
                        [% END %]
141
                    </select>
142
                    </select>
142
                    (Options are defined as the authorized values for the ITEMTYPECAT category)
143
                    [% t('(Options are defined as the authorized values for the ITEMTYPECAT category)') %]
143
                </li>
144
                </li>
144
                [% IF Koha.Preference('noItemTypeImages') %]
145
                [% IF Koha.Preference('noItemTypeImages') %]
145
                    <li>
146
                    <li>
146
                        <span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=noItemTypeImages">noItemTypeImages system preference</a>
147
                        <span class="label">[% t('Image:') %] </span>[% t('Item type images are disabled. To enable them, turn off the') %] <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=noItemTypeImages">[% t('noItemTypeImages system preference') %]</a>
147
                    </li>
148
                    </li>
148
                [% END %]
149
                [% END %]
149
            </ol>
150
            </ol>
150
            [% UNLESS Koha.Preference('noItemTypeImages') %]
151
            [% UNLESS Koha.Preference('noItemTypeImages') %]
151
                <div id="icons" class="toptabs" style="clear:both">
152
                <div id="icons" class="toptabs" style="clear:both">
152
                    <h5 style="margin-left:10px;">Choose an icon:</h5>
153
                    <h5 style="margin-left:10px;">[% t('Choose an icon:') %]</h5>
153
                    <ul>
154
                    <ul>
154
                        <li><a href="#none">None</a></li>
155
                        <li><a href="#none">[% t('None') %]</a></li>
155
                        [% FOREACH imageset IN imagesets %]
156
                        [% FOREACH imageset IN imagesets %]
156
                            [% IF ( imageset.imagesetactive ) %]
157
                            [% IF ( imageset.imagesetactive ) %]
157
                                <li class="ui-tabs-active">
158
                                <li class="ui-tabs-active">
Lines 161-171 Item types administration Link Here
161
                            <a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a>
162
                            <a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a>
162
                            </li>
163
                            </li>
163
                        [% END %]
164
                        [% END %]
164
                        [% IF itemtype.image_location('intranet').match('^http') %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
165
                        [% IF itemtype.image_location('intranet').match('^http') %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">[% t('Remote image') %]</a></li>
165
                    </ul>
166
                    </ul>
166
                    <div id="none">
167
                    <div id="none">
167
                        <ul>
168
                        <ul>
168
                            <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
169
                            <li><label for="noimage">[% t('No image:') %] </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
169
                        </ul>
170
                        </ul>
170
                        <br class="clear" />
171
                        <br class="clear" />
171
                    </div>
172
                    </div>
Lines 195-201 Item types administration Link Here
195
                    <div id="remote">
196
                    <div id="remote">
196
                        <ul>
197
                        <ul>
197
                            <li>
198
                            <li>
198
                                <label for="remote_image_check"> Remote image:</label>
199
                                <label for="remote_image_check"> [% t('Remote image:') %]</label>
199
                                [% IF itemtype.imageurl %]
200
                                [% IF itemtype.imageurl %]
200
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
201
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
201
                                [% ELSE %]
202
                                [% ELSE %]
Lines 213-268 Item types administration Link Here
213
            [% END %]
214
            [% END %]
214
            <ol class="oladditemtype">
215
            <ol class="oladditemtype">
215
                <li>
216
                <li>
216
                    <label for="hideinopac">Hide in OPAC: </label>
217
                    <label for="hideinopac">[% t('Hide in OPAC:') %] </label>
217
                    [% IF ( itemtype.hideinopac ) %]
218
                    [% IF ( itemtype.hideinopac ) %]
218
                        <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" />
219
                        <input type="checkbox" id="hideinopac" name="hideinopac" checked="checked" value="1" />
219
                    [% ELSE %]
220
                    [% ELSE %]
220
                        <input type="checkbox" id="hideinopac" name="hideinopac" value="1" />
221
                        <input type="checkbox" id="hideinopac" name="hideinopac" value="1" />
221
                    [% END %]
222
                    [% END %]
222
                    (if checked, items of this type will be hidden as filters in OPAC's advanced search)
223
                    [% t('(if checked, items of this type will be hidden as filters in OPAC\'s advanced search)') %]
223
                </li>
224
                </li>
224
                <li>
225
                <li>
225
                    <label for="notforloan">Not for loan: </label>
226
                    <label for="notforloan">[% t('Not for loan:') %] </label>
226
                        [% IF itemtype.notforloan %]
227
                        [% IF itemtype.notforloan %]
227
                            <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
228
                            <input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
228
                        [% ELSE %]
229
                        [% ELSE %]
229
                            <input type="checkbox" id="notforloan" name="notforloan" value="1" />
230
                            <input type="checkbox" id="notforloan" name="notforloan" value="1" />
230
                        [% END %]
231
                        [% END %]
231
                      (if checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item)
232
                      [% t('(if checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item)') %]
232
                </li>
233
                </li>
233
                <li>
234
                <li>
234
                    <label for="rentalcharge">Rental charge: </label>
235
                    <label for="rentalcharge">[% t('Rental charge:') %] </label>
235
                    <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge %]" />
236
                    <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge %]" />
236
                </li>
237
                </li>
237
                <li>
238
                <li>
238
                    <label for="defaultreplacecost">Default replacement cost: </label>
239
                    <label for="defaultreplacecost">[% t('Default replacement cost:') %] </label>
239
                    <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost %]" />
240
                    <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost %]" />
240
                </li>
241
                </li>
241
                <li>
242
                <li>
242
                    <label for="processfee">Processing fee (when lost): </label>
243
                    <label for="processfee">[% t('Processing fee (when lost):') %] </label>
243
                    <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee %]" />
244
                    <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee %]" />
244
                </li>
245
                </li>
245
                <li>
246
                <li>
246
                    <label for="checkinmsg">Checkin message: </label>
247
                    <label for="checkinmsg">[% t('Checkin message:') %] </label>
247
                    <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg %]</textarea>
248
                    <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg %]</textarea>
248
                </li>
249
                </li>
249
                <li>
250
                <li>
250
                    <label for="checkinmsgtype">Checkin message type: </label>
251
                    <label for="checkinmsgtype">[% t('Checkin message type:') %] </label>
251
                    <select type="text" id="checkinmsgtype" name="checkinmsgtype">
252
                    <select type="text" id="checkinmsgtype" name="checkinmsgtype">
252
                        [% IF itemtype.checkinmsgtype == 'message' %]
253
                        [% IF itemtype.checkinmsgtype == 'message' %]
253
                            <option value="message" selected="selected">Message</option>
254
                            <option value="message" selected="selected">[% t('Message') %]</option>
254
                        [% ELSE %]
255
                        [% ELSE %]
255
                            <option value="message">Message</option>
256
                            <option value="message">[% t('Message') %]</option>
256
                        [% END %]
257
                        [% END %]
257
                        [% IF itemtype.checkinmsgtype == 'alert' %]
258
                        [% IF itemtype.checkinmsgtype == 'alert' %]
258
                            <option value="alert" selected="selected">Alert</option>
259
                            <option value="alert" selected="selected">[% t('Alert') %]</option>
259
                        [% ELSE %]
260
                        [% ELSE %]
260
                            <option value="alert">Alert</option>
261
                            <option value="alert">[% t('Alert') %]</option>
261
                        [% END %]
262
                        [% END %]
262
                    </select>
263
                    </select>
263
                </li>
264
                </li>
264
                <li>
265
                <li>
265
                    <label for="sip_media_type">SIP media type: </label>
266
                    <label for="sip_media_type">[% t('SIP media type:') %] </label>
266
                    <select id="sip_media_type" name="sip_media_type">
267
                    <select id="sip_media_type" name="sip_media_type">
267
                        <option value=""></option>
268
                        <option value=""></option>
268
                        [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE') %]
269
                        [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE') %]
Lines 275-373 Item types administration Link Here
275
                    </select>
276
                    </select>
276
                </li>
277
                </li>
277
                <li>
278
                <li>
278
                    <label for="summary">Summary: </label>
279
                    <label for="summary">[% t('Summary:') %] </label>
279
                   <textarea id="summary" name="summary" cols="55" rows="5">[% itemtype.summary %]</textarea>
280
                   <textarea id="summary" name="summary" cols="55" rows="5">[% itemtype.summary %]</textarea>
280
                    <p>Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype : </p>
281
                    <p>[% t('Enter a summary that will overwrite the default one in search results lists. Example, for a website itemtype :') %] </p>
281
                    <p><b>&lt;a href="[856u]"&gt;open site&lt;/a&gt;</b> will show the link just below the title</p>
282
                    <p><b>[% t('&lt;a href=&#34;[856u]&#34;&gt;open site&lt;/a&gt;') %]</b> [% t('will show the link just below the title') %]</p>
282
                </li>
283
                </li>
283
            </ol>
284
            </ol>
284
        </fieldset>
285
        </fieldset>
285
286
286
        <fieldset class="action">
287
        <fieldset class="action">
287
            <input type="submit" value="Save changes" />
288
            <input type="submit" value="Save changes" />
288
            <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
289
            <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">[% t('Cancel') %]</a>
289
        </fieldset>
290
        </fieldset>
290
    </form>
291
    </form>
291
[% END %]
292
[% END %]
292
293
293
[% IF op == 'delete_confirm' %]
294
[% IF op == 'delete_confirm' %]
294
    <div class="dialog alert">
295
    <div class="dialog alert">
295
        <h3>Delete item type '[% itemtype.itemtype %]'?</h3>
296
        <h3>[% t('Delete item type \'') %][% itemtype.itemtype %]'?</h3>
296
        <table>
297
        <table>
297
            <tr>
298
            <tr>
298
                <th scope="row">Item type</th>
299
                <th scope="row">[% t('Item type') %]</th>
299
                <td>[% itemtype.itemtype %]</td>
300
                <td>[% itemtype.itemtype %]</td>
300
            </tr>
301
            </tr>
301
            <tr><th scope="row">Description</th><td>[% itemtype.translated_description %]</td></tr>
302
            <tr><th scope="row">[% t('Description') %]</th><td>[% itemtype.translated_description %]</td></tr>
302
            [% UNLESS Koha.Preference('noItemTypeImages') %]
303
            [% UNLESS Koha.Preference('noItemTypeImages') %]
303
                <tr>
304
                <tr>
304
                    <th scope="row">Image</th>
305
                    <th scope="row">[% t('Image') %]</th>
305
                    <td>
306
                    <td>
306
                        [% SET image_location = itemtype.image_location('intranet') %]
307
                        [% SET image_location = itemtype.image_location('intranet') %]
307
                        [% IF image_location %]<img src="[% image_location %]" alt="" />[% END %]
308
                        [% IF image_location %]<img src="[% image_location %]" alt="" />[% END %]
308
                    </td>
309
                    </td>
309
                </tr>
310
                </tr>
310
            [% END %]
311
            [% END %]
311
            <tr><th scope="row">Rental charge</th><td>[% itemtype.rentalcharge | $Price %]</td></tr>
312
            <tr><th scope="row">[% t('Rental charge') %]</th><td>[% itemtype.rentalcharge | $Price %]</td></tr>
312
        </table>
313
        </table>
313
        <form action="/cgi-bin/koha/admin/itemtypes.pl" method="post">
314
        <form action="/cgi-bin/koha/admin/itemtypes.pl" method="post">
314
            <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype.itemtype %]" />
315
            <input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype.itemtype %]" />
315
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this item type</button>
316
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this item type') %]</button>
316
        </form>
317
        </form>
317
        <form action="/cgi-bin/koha/admin/itemtypes.pl" method="post">
318
        <form action="/cgi-bin/koha/admin/itemtypes.pl" method="post">
318
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
319
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
319
        </form>
320
        </form>
320
    </div>
321
    </div>
321
[% END %]
322
[% END %]
322
323
323
[% IF op == 'list' %]
324
[% IF op == 'list' %]
324
    <h2>Item types administration</h2>
325
    <h2>[% t('Item types administration') %]</h2>
325
    [% IF itemtypes %]
326
    [% IF itemtypes %]
326
        <table id="table_item_type">
327
        <table id="table_item_type">
327
          <thead>
328
          <thead>
328
            [% UNLESS Koha.Preference('noItemTypeImages') %]<th>Image</th>[% END %]
329
            [% UNLESS Koha.Preference('noItemTypeImages') %]<th>[% t('Image') %]</th>[% END %]
329
            <th>Code</th>
330
            <th>[% t('Code') %]</th>
330
            <th>Description</th>
331
            <th>[% t('Description') %]</th>
331
            <th>Search category</th>
332
            <th>[% t('Search category') %]</th>
332
            <th>Not for loan</th>
333
            <th>[% t('Not for loan') %]</th>
333
            <th>Hide in OPAC</th>
334
            <th>[% t('Hide in OPAC') %]</th>
334
            <th>Charge</th>
335
            <th>[% t('Charge') %]</th>
335
            <th>Default replacement cost</th>
336
            <th>[% t('Default replacement cost') %]</th>
336
            <th>Processing fee (when lost)</th>
337
            <th>[% t('Processing fee (when lost)') %]</th>
337
            <th>Checkin message</th>
338
            <th>[% t('Checkin message') %]</th>
338
            <th>Actions</th>
339
            <th>[% t('Actions') %]</th>
339
          </thead>
340
          </thead>
340
          [% FOREACH itemtype IN itemtypes %]
341
          [% FOREACH itemtype IN itemtypes %]
341
            <tr>
342
            <tr>
342
                [% UNLESS Koha.Preference('noItemTypeImages') %]
343
                [% UNLESS Koha.Preference('noItemTypeImages') %]
343
                    <td>
344
                    <td>
344
                        [% SET image_location = itemtype.image_location('intranet') %]
345
                        [% SET image_location = itemtype.image_location('intranet') %]
345
                        [% IF image_location %]<img src="[% image_location %]" alt="" />[% ELSE %]&nbsp;[% END %]
346
                        [% IF image_location %]<img src="[% image_location %]" alt="" />[% ELSE %] [% END %]
346
                    </td>
347
                    </td>
347
                [% END %]
348
                [% END %]
348
            <td>
349
            <td>
349
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&amp;itemtype=[% itemtype.itemtype |html %]">
350
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=[% itemtype.itemtype |html %]">
350
                [% itemtype.itemtype %]
351
                [% itemtype.itemtype %]
351
              </a>
352
              </a>
352
            </td>
353
            </td>
353
            <td>
354
            <td>
354
                [% IF itemtype.translated_descriptions.size %]
355
                [% IF itemtype.translated_descriptions.size %]
355
                    [% itemtype.description %] (default)<br/>
356
                    [% itemtype.description %] [% t('(default)') %]<br />
356
                    [% FOR description IN itemtype.translated_descriptions %]
357
                    [% FOR description IN itemtype.translated_descriptions %]
357
                        [% IF description.translation == itemtype.translated_description %]
358
                        [% IF description.translation == itemtype.translated_description %]
358
                            <b>[% description.translation %]</b>
359
                            <b>[% description.translation %]</b>
359
                        [% ELSE %]
360
                        [% ELSE %]
360
                            [% description.translation %] ([% description.lang %])
361
                            [% description.translation %] ([% description.lang %])
361
                        [% END %]
362
                        [% END %]
362
                        <br/>
363
                        <br />
363
                    [% END %]
364
                    [% END %]
364
                [% ELSE %]
365
                [% ELSE %]
365
                    [% itemtype.description |html %]
366
                    [% itemtype.description |html %]
366
                [% END %]
367
                [% END %]
367
            </td>
368
            </td>
368
            <td>[% itemtype.searchcategory %]</td>
369
            <td>[% itemtype.searchcategory %]</td>
369
            <td>[% IF ( itemtype.notforloan ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
370
            <td>[% IF ( itemtype.notforloan ) %][% t('Yes') %][% ELSE %] [% END %]</td>
370
            <td>[% IF ( itemtype.hideinopac ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
371
            <td>[% IF ( itemtype.hideinopac ) %][% t('Yes') %][% ELSE %] [% END %]</td>
371
            <td>
372
            <td>
372
            [% UNLESS ( itemtype.notforloan ) %]
373
            [% UNLESS ( itemtype.notforloan ) %]
373
              [% itemtype.rentalcharge | $Price %]
374
              [% itemtype.rentalcharge | $Price %]
Lines 377-390 Item types administration Link Here
377
            <td>[% itemtype.processfee | $Price %]</td>
378
            <td>[% itemtype.processfee | $Price %]</td>
378
            <td>[% itemtype.checkinmsg | html | html_line_break %]</td>
379
            <td>[% itemtype.checkinmsg | html | html_line_break %]</td>
379
            <td class="actions">
380
            <td class="actions">
380
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&amp;itemtype=[% itemtype.itemtype |html %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
381
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=[% itemtype.itemtype |html %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
381
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=delete_confirm&amp;itemtype=[% itemtype.itemtype |html %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
382
              <a href="/cgi-bin/koha/admin/itemtypes.pl?op=delete_confirm&itemtype=[% itemtype.itemtype |html %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
382
            </td>
383
            </td>
383
          </tr>
384
          </tr>
384
          [% END %]
385
          [% END %]
385
        </table>
386
        </table>
386
    [% ELSE %]
387
    [% ELSE %]
387
        <div class="dialog message">There are no itemtypes defined</div>
388
        <div class="dialog message">[% t('There are no itemtypes defined') %]</div>
388
    [% END %]
389
    [% END %]
389
[% END %]
390
[% END %]
390
391
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt (-14 / +15 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Koha to MARC mapping</title>
5
<title>[% t('Koha › Administration › Koha to MARC mapping') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
12
[% INCLUDE 'prefs-admin-search.inc' %]
12
13
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; <a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC Mapping</a></div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › <a href="/cgi-bin/koha/admin/koha2marclinks.pl">[% t('Koha to MARC Mapping') %]</a></div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
17
Lines 18-38 Link Here
18
    <div id="yui-main">
19
    <div id="yui-main">
19
    <div class="yui-b">
20
    <div class="yui-b">
20
21
21
<h1>Koha to MARC mapping</h1>
22
<h1>[% t('Koha to MARC mapping') %]</h1>
22
<br/>
23
<br />
23
<form action="/cgi-bin/koha/admin/koha2marclinks.pl" method="post" id="koha2marc">
24
<form action="/cgi-bin/koha/admin/koha2marclinks.pl" method="post" id="koha2marc">
24
25
25
[% IF error_add %]
26
[% IF error_add %]
26
    <div class="dialog alert">Failed to add mapping for [% error_info %]</div>
27
    <div class="dialog alert">[% t('Failed to add mapping for') %] [% error_info %]</div>
27
[% END %]
28
[% END %]
28
29
29
<table id="kohafields">
30
<table id="kohafields">
30
<thead><tr>
31
<thead><tr>
31
    <th>Koha field</th>
32
    <th>[% t('Koha field') %]</th>
32
    <th>Tag</th>
33
    <th>[% t('Tag') %]</th>
33
    <th>Subfield</th>
34
    <th>[% t('Subfield') %]</th>
34
    <th>Lib</th>
35
    <th>[% t('Lib') %]</th>
35
    <th>&nbsp;</th>
36
    <th> </th>
36
</tr></thead>
37
</tr></thead>
37
<tbody>
38
<tbody>
38
[% FOREACH loo IN loop %]
39
[% FOREACH loo IN loop %]
Lines 43-50 Link Here
43
    <td>[% loo.liblibrarian %]</td>
44
    <td>[% loo.liblibrarian %]</td>
44
    <td class="actions">
45
    <td class="actions">
45
        [% IF !loo.readonly %]
46
        [% IF !loo.readonly %]
46
            <a onclick="AddFld('[% loo.kohafield %]');" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</a>
47
            <a onclick="AddFld('[% loo.kohafield %]');" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% t('Add') %]</a>
47
            [% IF loo.tagfield %] <a onclick="RemFld('[% loo.tagfield %]','[% loo.tagsubfield %]');" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Remove</a> [% END %]
48
            [% IF loo.tagfield %] <a onclick="RemFld('[% loo.tagfield %]','[% loo.tagsubfield %]');" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> [% t('Remove') %]</a> [% END %]
48
        [% END %]
49
        [% END %]
49
    </td>
50
    </td>
50
    </td>
51
    </td>
Lines 53-60 Link Here
53
</tbody>
54
</tbody>
54
</table>
55
</table>
55
56
56
<input id="remove_field" name="remove_field" type="hidden" value=""/>
57
<input id="remove_field" name="remove_field" type="hidden" value="" />
57
<input id="add_field" name="add_field" type="hidden" value=""/>
58
<input id="add_field" name="add_field" type="hidden" value="" />
58
59
59
</form>
60
</form>
60
61
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt (-52 / +53 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaSpan %]
3
[% USE KohaSpan %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Library groups</title>
5
<title>[% t('Koha › Administration › Library groups') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
7
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
7
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
8
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") %]
Lines 112-141 Link Here
112
[% INCLUDE 'cat-search.inc' %]
113
[% INCLUDE 'cat-search.inc' %]
113
114
114
<div id="breadcrumbs">
115
<div id="breadcrumbs">
115
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
116
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
116
    &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
117
    › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
117
    &rsaquo; <a href="/cgi-bin/koha/admin/library_groups.pl">Library groups</a>
118
    › <a href="/cgi-bin/koha/admin/library_groups.pl">[% t('Library groups') %]</a>
118
</div>
119
</div>
119
120
120
[% IF added %]
121
[% IF added %]
121
    <div class="dialog message group-added">
122
    <div class="dialog message group-added">
122
        [% IF added.branchcode %]
123
        [% IF added.branchcode %]
123
            [% added.library.branchname | $KohaSpan class = 'name' %] added to group.
124
            [% added.library.branchname | $KohaSpan class = 'name' %] [% t('added to group.') %]
124
        [% ELSE %]
125
        [% ELSE %]
125
            Group [% added.title | $KohaSpan class = 'name' %] created.
126
            [% t('Group') %] [% added.title | $KohaSpan class = 'name' %] [% t('created.') %]
126
        [% END %]
127
        [% END %]
127
    </div>
128
    </div>
128
[% ELSIF deleted %]
129
[% ELSIF deleted %]
129
    <div class="dialog message group-deleted">
130
    <div class="dialog message group-deleted">
130
        [% IF deleted.title %]
131
        [% IF deleted.title %]
131
            Group [% deleted.title | $KohaSpan class = 'name' %] has been deleted.
132
            [% t('Group') %] [% deleted.title | $KohaSpan class = 'name' %] [% t('has been deleted.') %]
132
        [% ELSE %]
133
        [% ELSE %]
133
            [% deleted.library | $KohaSpan class = 'name' %] has been removed from group.
134
            [% deleted.library | $KohaSpan class = 'name' %] [% t('has been removed from group.') %]
134
        [% END %]
135
        [% END %]
135
    </div>
136
    </div>
136
[% ELSIF error_duplicate_title %]
137
[% ELSIF error_duplicate_title %]
137
    <div class="dialog alert error-duplicate-group-title">
138
    <div class="dialog alert error-duplicate-group-title">
138
            A group with the title [% error_duplicate_title | $KohaSpan class = 'name' %] already exists.
139
            [% t('A group with the title') %] [% error_duplicate_title | $KohaSpan class = 'name' %] [% t('already exists.') %]
139
    </div>
140
    </div>
140
[% END %]
141
[% END %]
141
142
Lines 147-153 Link Here
147
                    <div id="toolbar" class="btn-toolbar">
148
                    <div id="toolbar" class="btn-toolbar">
148
                        <div class="btn-group">
149
                        <div class="btn-group">
149
                            <a id="add-group-root" class="btn btn-default btn-sm add-group" href="#">
150
                            <a id="add-group-root" class="btn btn-default btn-sm add-group" href="#">
150
                                <i class="fa fa-plus"></i> Add group
151
                                <i class="fa fa-plus"></i> [% t('Add group') %]
151
                            </a>
152
                            </a>
152
                        </div>
153
                        </div>
153
                    </div>
154
                    </div>
Lines 156-165 Link Here
156
                [% FOREACH root_group IN root_groups %]
157
                [% FOREACH root_group IN root_groups %]
157
                    <table class="library-groups">
158
                    <table class="library-groups">
158
                        <tr>
159
                        <tr>
159
                            <th>&nbsp;</th>
160
                            <th> </th>
160
                            <th>Description</th>
161
                            <th>[% t('Description') %]</th>
161
                            <th>Features enabled</th>
162
                            <th>[% t('Features enabled') %]</th>
162
                            <th>&nbsp;</th>
163
                            <th> </th>
163
                        </tr>
164
                        </tr>
164
                        [% PROCESS tree group=root_group %]
165
                        [% PROCESS tree group=root_group %]
165
                    </table>
166
                    </table>
Lines 176-220 Link Here
176
            <div class="modal-dialog">
177
            <div class="modal-dialog">
177
                <div class="modal-content">
178
                <div class="modal-content">
178
                    <div class="modal-header">
179
                    <div class="modal-header">
179
                        <h3 id="add-group-modal-label">Add group</h3>
180
                        <h3 id="add-group-modal-label">[% t('Add group') %]</h3>
180
                    </div>
181
                    </div>
181
                    <div class="modal-body">
182
                    <div class="modal-body">
182
                        <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
183
                        <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
183
                        <input type="hidden" id="add-group-modal-action" name="action" value="add">
184
                        <input type="hidden" id="add-group-modal-action" name="action" value="add">
184
185
185
                        <p>
186
                        <p>
186
                            <label for="add-group-modal-title">Title: </label>
187
                            <label for="add-group-modal-title">[% t('Title:') %] </label>
187
                            <input type="text" name="title" id="add-group-modal-title" required="required" />
188
                            <input type="text" name="title" id="add-group-modal-title" required="required" />
188
                            <i>required</i>
189
                            <i>[% t('required') %]</i>
189
                        </p>
190
                        </p>
190
191
191
                        <p>
192
                        <p>
192
                            <label for="add-group-modal-description">Description: </label>
193
                            <label for="add-group-modal-description">[% t('Description:') %] </label>
193
                            <input type="text" name="description" id="add-group-modal-description" />
194
                            <input type="text" name="description" id="add-group-modal-description" />
194
                        </p>
195
                        </p>
195
                        <div id="root-group-features-add">
196
                        <div id="root-group-features-add">
196
                            <h3>Features</h3>
197
                            <h3>[% t('Features') %]</h3>
197
                            <div class="checkbox">
198
                            <div class="checkbox">
198
                                <label>
199
                                <label>
199
                                    <input type="checkbox" name="ft_hide_patron_info" id="add-group-modal-ft_hide_patron_info" value="1" />
200
                                    <input type="checkbox" name="ft_hide_patron_info" id="add-group-modal-ft_hide_patron_info" value="1" />
200
                                    Limit patron data access by group
201
                                    [% t('Limit patron data access by group') %]
201
                                </label>
202
                                </label>
202
                                <p>
203
                                <p>
203
                                <label>
204
                                <label>
204
                                    <input type="checkbox" name="ft_search_groups_opac" id="add-group-modal-ft_search_groups_opac" value="1" />
205
                                    <input type="checkbox" name="ft_search_groups_opac" id="add-group-modal-ft_search_groups_opac" value="1" />
205
                                    Use for OPAC search groups
206
                                    [% t('Use for OPAC search groups') %]
206
                                </label>
207
                                </label>
207
                                <p>
208
                                <p>
208
                                <label>
209
                                <label>
209
                                    <input type="checkbox" name="ft_search_groups_staff" id="add-group-modal-ft_search_groups_staff" value="1" />
210
                                    <input type="checkbox" name="ft_search_groups_staff" id="add-group-modal-ft_search_groups_staff" value="1" />
210
                                    Use for staff search groups
211
                                    [% t('Use for staff search groups') %]
211
                                </label>
212
                                </label>
212
                            </div>
213
                            </div>
213
                        </div>
214
                        </div>
214
                    </div>
215
                    </div>
215
                    <div class="modal-footer">
216
                    <div class="modal-footer">
216
                        <button type="submit" class="btn btn-primary">Save</button>
217
                        <button type="submit" class="btn btn-primary">[% t('Save') %]</button>
217
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
218
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
218
                    </div>
219
                    </div>
219
                </div>
220
                </div>
220
            </div>
221
            </div>
Lines 226-270 Link Here
226
            <div class="modal-dialog">
227
            <div class="modal-dialog">
227
                <div class="modal-content">
228
                <div class="modal-content">
228
                    <div class="modal-header">
229
                    <div class="modal-header">
229
                        <h3 id="edit-group-modal-label">Edit group</h3>
230
                        <h3 id="edit-group-modal-label">[% t('Edit group') %]</h3>
230
                    </div>
231
                    </div>
231
                    <div class="modal-body">
232
                    <div class="modal-body">
232
                        <input type="hidden" id="edit-group-modal-id" name="id" value="" />
233
                        <input type="hidden" id="edit-group-modal-id" name="id" value="" />
233
                        <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
234
                        <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
234
235
235
                        <p>
236
                        <p>
236
                            <label for="edit-group-modal-title">Title: </label>
237
                            <label for="edit-group-modal-title">[% t('Title:') %] </label>
237
                            <input type="text" id="edit-group-modal-title" name="title" value="" required="required" />
238
                            <input type="text" id="edit-group-modal-title" name="title" value="" required="required" />
238
                            <i>required</i>
239
                            <i>[% t('required') %]</i>
239
                        </p>
240
                        </p>
240
241
241
                        <p>
242
                        <p>
242
                            <label for="edit-group-modal-description">Description: </label>
243
                            <label for="edit-group-modal-description">[% t('Description:') %] </label>
243
                            <input type="text" id="edit-group-modal-description" name="description" value="" />
244
                            <input type="text" id="edit-group-modal-description" name="description" value="" />
244
                        </p>
245
                        </p>
245
                        <div id="root-group-features-edit">
246
                        <div id="root-group-features-edit">
246
                            <h3>Features</h3>
247
                            <h3>[% t('Features') %]</h3>
247
                            <div class="checkbox">
248
                            <div class="checkbox">
248
                                <label>
249
                                <label>
249
                                    <input type="checkbox" id="edit-group-modal-ft_hide_patron_info" name="ft_hide_patron_info" value="1" />
250
                                    <input type="checkbox" id="edit-group-modal-ft_hide_patron_info" name="ft_hide_patron_info" value="1" />
250
                                    Limit patron data access by group
251
                                    [% t('Limit patron data access by group') %]
251
                                </label>
252
                                </label>
252
                                <p>
253
                                <p>
253
                                <label>
254
                                <label>
254
                                    <input type="checkbox" id="edit-group-modal-ft_search_groups_opac" name="ft_search_groups_opac" value="1" />
255
                                    <input type="checkbox" id="edit-group-modal-ft_search_groups_opac" name="ft_search_groups_opac" value="1" />
255
                                    Use for OPAC search groups
256
                                    [% t('Use for OPAC search groups') %]
256
                                </label>
257
                                </label>
257
                                <p>
258
                                <p>
258
                                <label>
259
                                <label>
259
                                    <input type="checkbox" id="edit-group-modal-ft_search_groups_staff" name="ft_search_groups_staff" value="1" />
260
                                    <input type="checkbox" id="edit-group-modal-ft_search_groups_staff" name="ft_search_groups_staff" value="1" />
260
                                    Use for staff search groups
261
                                    [% t('Use for staff search groups') %]
261
                                </label>
262
                                </label>
262
                            </div>
263
                            </div>
263
                        </div>
264
                        </div>
264
                    </div>
265
                    </div>
265
                    <div class="modal-footer">
266
                    <div class="modal-footer">
266
                        <button type="submit" class="btn btn-primary">Update</button>
267
                        <button type="submit" class="btn btn-primary">[% t('Update') %]</button>
267
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
268
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
268
                    </div>
269
                    </div>
269
                </div>
270
                </div>
270
            </div>
271
            </div>
Lines 278-291 Link Here
278
                    <input id="delete-group-modal-action" type="hidden" name="action" value="delete" />
279
                    <input id="delete-group-modal-action" type="hidden" name="action" value="delete" />
279
                    <input id="delete-group-modal-id" type="hidden" name="id" value="" />
280
                    <input id="delete-group-modal-id" type="hidden" name="id" value="" />
280
                    <div class="modal-header">
281
                    <div class="modal-header">
281
                        <h3 id="delete-group-modal-label">Delete group</h3>
282
                        <h3 id="delete-group-modal-label">[% t('Delete group') %]</h3>
282
                    </div>
283
                    </div>
283
                    <div class="modal-body">
284
                    <div class="modal-body">
284
                        Are you sure you want to delete <span id="delete-group-modal-title" class="name"></span>?
285
                        [% t('Are you sure you want to delete') %] <span id="delete-group-modal-title" class="name"></span>?
285
                    </div>
286
                    </div>
286
                    <div class="modal-footer">
287
                    <div class="modal-footer">
287
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Delete</button>
288
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> [% t('Delete') %]</button>
288
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
289
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
289
                    </div>
290
                    </div>
290
                </div>
291
                </div>
291
            </div>
292
            </div>
Lines 299-312 Link Here
299
                    <input id="remove-library-modal-action" type="hidden" name="action" value="delete" />
300
                    <input id="remove-library-modal-action" type="hidden" name="action" value="delete" />
300
                    <input id="remove-library-modal-id" type="hidden" name="id" value="" />
301
                    <input id="remove-library-modal-id" type="hidden" name="id" value="" />
301
                    <div class="modal-header">
302
                    <div class="modal-header">
302
                        <h3 id="remove-library-modal-label">Remove library from group</h3>
303
                        <h3 id="remove-library-modal-label">[% t('Remove library from group') %]</h3>
303
                    </div>
304
                    </div>
304
                    <div class="modal-body">
305
                    <div class="modal-body">
305
                        Are you sure you want to remove <span id="remove-library-modal-library" class="name"></span> from <span id="remove-library-modal-group" class="name"><span>?
306
                        [% t('Are you sure you want to remove') %] <span id="remove-library-modal-library" class="name"></span> [% t('from') %] <span id="remove-library-modal-group" class="name"><span>?
306
                    </div>
307
                    </div>
307
                    <div class="modal-footer">
308
                    <div class="modal-footer">
308
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button>
309
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> [% t('Remove') %]</button>
309
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
310
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</button>
310
                    </div>
311
                    </div>
311
                </div>
312
                </div>
312
            </div>
313
            </div>
Lines 336-381 Link Here
336
            [% UNLESS group.branchcode %]
337
            [% UNLESS group.branchcode %]
337
              <ul>
338
              <ul>
338
                [% IF group.ft_hide_patron_info %]
339
                [% IF group.ft_hide_patron_info %]
339
                    <li>Hide patron's info for librarians outside of this group.</li>
340
                    <li>[% t('Hide patron\'s info for librarians outside of this group.') %]</li>
340
                [% END %]
341
                [% END %]
341
                [% IF group.ft_search_groups_opac %]
342
                [% IF group.ft_search_groups_opac %]
342
                    <li>Use for OPAC search groups</li>
343
                    <li>[% t('Use for OPAC search groups') %]</li>
343
                [% END %]
344
                [% END %]
344
                [% IF group.ft_search_groups_staff %]
345
                [% IF group.ft_search_groups_staff %]
345
                    <li>Use for staff search groups</li>
346
                    <li>[% t('Use for staff search groups') %]</li>
346
                [% END %]
347
                [% END %]
347
              </ul>
348
              </ul>
348
            [% END %]
349
            [% END %]
349
        </td>
350
        </td>
350
        <td>
351
        <td>
351
            [% IF group.branchcode %]
352
            [% IF group.branchcode %]
352
                <button class="btn btn-default btn-sm remove-library" data-group-id="[% group.id %]" data-group-library="[% group.library.branchname %]" data-group-parent-title="[% group.parent.title %]" ><i class="fa fa-trash"></i> Remove from group</button>
353
                <button class="btn btn-default btn-sm remove-library" data-group-id="[% group.id %]" data-group-library="[% group.library.branchname %]" data-group-parent-title="[% group.parent.title %]"><i class="fa fa-trash"></i> [% t('Remove from group') %]</button>
353
            [% ELSE %]
354
            [% ELSE %]
354
                <div class="btn-group">
355
                <div class="btn-group">
355
                    <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button>
356
                    <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> [% t('Actions') %] <span class="caret"></span></button>
356
                    <ul class="dropdown-menu">
357
                    <ul class="dropdown-menu">
357
                        <li>
358
                        <li>
358
                            <a id="add-group-[% group.id %]" href="#" class="add-group" data-group-id="[% group.id %]">
359
                            <a id="add-group-[% group.id %]" href="#" class="add-group" data-group-id="[% group.id %]">
359
                                <i class="fa fa-plus"></i> Add sub-group
360
                                <i class="fa fa-plus"></i> [% t('Add sub-group') %]
360
                            </a>
361
                            </a>
361
                       </li>
362
                       </li>
362
363
363
                        <li>
364
                        <li>
364
                            <a class="edit-group" id="edit-group-[% group.id %]" href="#" class="edit-group" data-group-id="[% group.id %]" data-group-parent-id="[% group.parent_id %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" >
365
                            <a class="edit-group" id="edit-group-[% group.id %]" href="#" class="edit-group" data-group-id="[% group.id %]" data-group-parent-id="[% group.parent_id %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]">
365
                                <i class="fa fa-pencil"></i> Edit
366
                                <i class="fa fa-pencil"></i> [% t('Edit') %]
366
                            </a>
367
                            </a>
367
                       </li>
368
                       </li>
368
369
369
                        <li>
370
                        <li>
370
                            <a class="delete-group" id="delete-group-[% group.id %]" href="#" class="delete-group" data-group-id="[% group.id %]" data-group-title="[% group.title | html %]">
371
                            <a class="delete-group" id="delete-group-[% group.id %]" href="#" class="delete-group" data-group-id="[% group.id %]" data-group-title="[% group.title | html %]">
371
                                <i class="fa fa-trash"></i> Delete
372
                                <i class="fa fa-trash"></i> [% t('Delete') %]
372
                            </a>
373
                            </a>
373
                       </li>
374
                       </li>
374
                    </ul>
375
                    </ul>
375
                </div>
376
                </div>
376
377
377
                <div class="btn-group">
378
                <div class="btn-group">
378
                    <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button>
379
                    <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> [% t('Add library') %] <span class="caret"></span></button>
379
                    <ul class="dropdown-menu">
380
                    <ul class="dropdown-menu">
380
                        [% FOREACH library IN group.libraries_not_direct_children %]
381
                        [% FOREACH library IN group.libraries_not_direct_children %]
381
                            <li>
382
                            <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt (-9 / +10 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Localization</title>
5
<title>[% t('Koha › Localization') %]</title>
5
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
6
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 11-17 Link Here
11
<form id="add_translation" method="post">
12
<form id="add_translation" method="post">
12
    <input type="hidden" name="entity" value="[% entity %]" />
13
    <input type="hidden" name="entity" value="[% entity %]" />
13
    <input type="hidden" name="code" value="[% code %]" />
14
    <input type="hidden" name="code" value="[% code %]" />
14
    Lang: <select name="lang">
15
    [% t('Lang:') %] <select name="lang">
15
        [% FOR language IN languages %]
16
        [% FOR language IN languages %]
16
            [% FOR sublanguage IN language.sublanguages_loop %]
17
            [% FOR sublanguage IN language.sublanguages_loop %]
17
                [% IF language.plural %]
18
                [% IF language.plural %]
Lines 22-39 Link Here
22
            [% END %]
23
            [% END %]
23
        [% END %]
24
        [% END %]
24
    </select>
25
    </select>
25
    Translation: <input type="text" name="translation" />
26
    [% t('Translation:') %] <input type="text" name="translation" />
26
    <input type="submit" value="Add" />
27
    <input type="submit" value="Add" />
27
</form>
28
</form>
28
<div id="messages"></div>
29
<div id="messages"></div>
29
<table id="localization">
30
<table id="localization">
30
    <thead>
31
    <thead>
31
        <tr>
32
        <tr>
32
            <th>Id</th>
33
            <th>[% t('Id') %]</th>
33
            <th>Entity</th>
34
            <th>[% t('Entity') %]</th>
34
            <th>Code</th>
35
            <th>[% t('Code') %]</th>
35
            <th>Lang</th>
36
            <th>[% t('Lang') %]</th>
36
            <th>Translation</th>
37
            <th>[% t('Translation') %]</th>
37
            <th></th>
38
            <th></th>
38
        </tr>
39
        </tr>
39
    </thead>
40
    </thead>
Lines 45-51 Link Here
45
            <td>[% t.code %]</td>
46
            <td>[% t.code %]</td>
46
            <td class="lang">[% t.lang %]</td>
47
            <td class="lang">[% t.lang %]</td>
47
            <td class="translation" contenteditable="true">[% t.translation %]</td>
48
            <td class="translation" contenteditable="true">[% t.translation %]</td>
48
            <td class="actions"><a href="#" class="delete"><i class="fa fa-trash"></i> Delete</a></td>
49
            <td class="actions"><a href="#" class="delete"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
49
        </tr>
50
        </tr>
50
        [% END %]
51
        [% END %]
51
    </tbody>
52
    </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-77 / +78 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo;[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure &rsaquo; Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure &rsaquo; [% action %][% END %][% END %]
5
<title>[% t('Koha › Administration ›') %][% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] [% t('MARC subfield structure › Edit MARC subfields constraints') %][% END %][% ELSE %] [% t('MARC subfield structure ›') %] [% action %][% END %][% END %]
5
[% IF ( delete_confirm ) %] MARC subfield structure &rsaquo; Confirm deletion of subfield [% tagsubfield %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure &rsaquo; Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %]</title>
6
[% IF ( delete_confirm ) %] [% t('MARC subfield structure › Confirm deletion of subfield') %] [% tagsubfield %][% END %][% IF ( delete_confirmed ) %] [% t('MARC subfield structure › Subfield deleted') %][% END %][% IF ( else ) %][% t('MARC subfield structure') %][% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 11-29 Link Here
11
[% INCLUDE 'prefs-admin-search.inc' %]
12
[% INCLUDE 'prefs-admin-search.inc' %]
12
13
13
<div id="breadcrumbs">
14
<div id="breadcrumbs">
14
  <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a> &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]&amp;searchfield=[% tagfield | uri %]">[% IF ( frameworkcode ) %][% frameworkcode %][% ELSE %]Default[% END %] framework structure</a> &rsaquo;
15
  <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › <a href="/cgi-bin/koha/admin/biblio_framework.pl">[% t('MARC frameworks') %]</a> › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode %]&searchfield=[% tagfield | uri %]">[% IF ( frameworkcode ) %][% frameworkcode %][% ELSE %][% t('Default') %][% END %] [% t('framework structure') %]</a> ›
15
  [% IF ( add_form ) %]
16
  [% IF ( add_form ) %]
16
  [% IF ( use_heading_flags_p ) %]
17
  [% IF ( use_heading_flags_p ) %]
17
  [% IF ( heading_edit_subfields_p ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] subfield structure</a> &rsaquo; Edit subfields constraints
18
  [% IF ( heading_edit_subfields_p ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">[% t('Tag') %] [% tagfield | html %] [% t('subfield structure') %]</a> [% t('› Edit subfields constraints') %]
18
  [% END %]
19
  [% END %]
19
  [% ELSE %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] Subfield structure</a> &rsaquo; [% action %]
20
  [% ELSE %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">[% t('Tag') %] [% tagfield | html %] [% t('Subfield structure') %]</a> › [% action %]
20
  [% END %]
21
  [% END %]
21
  [% END %]
22
  [% END %]
22
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] Subfield structure</a> &rsaquo; Confirm deletion of subfield [% tagsubfield %]
23
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">[% t('Tag') %] [% tagfield | html %] [% t('Subfield structure') %]</a> [% t('› Confirm deletion of subfield') %] [% tagsubfield %]
23
[% END %]
24
[% END %]
24
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode %]">Tag [% tagfield | html %] subfield structure</a> &rsaquo; Subfield deleted
25
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">[% t('Tag') %] [% tagfield | html %] [% t('subfield structure') %]</a> [% t('› Subfield deleted') %]
25
[% END %]
26
[% END %]
26
[% IF ( else ) %]Tag [% tagfield | html %] Subfield structure[% END %]
27
[% IF ( else ) %][% t('Tag') %] [% tagfield | html %] [% t('Subfield structure') %][% END %]
27
</div>
28
</div>
28
29
29
<div id="doc3" class="yui-t2">
30
<div id="doc3" class="yui-t2">
Lines 35-41 Link Here
35
[% IF ( add_form ) %]
36
[% IF ( add_form ) %]
36
    <h1>
37
    <h1>
37
        [% IF ( use_heading_flags_p ) %]
38
        [% IF ( use_heading_flags_p ) %]
38
            [% IF ( heading_edit_subfields_p ) %]Tag [% tagfield | html %] Subfield constraints[% END %]
39
            [% IF ( heading_edit_subfields_p ) %][% t('Tag') %] [% tagfield | html %] [% t('Subfield constraints') %][% END %]
39
        [% ELSE %]
40
        [% ELSE %]
40
            [% action %]
41
            [% action %]
41
        [% END %]
42
        [% END %]
Lines 48-54 Link Here
48
   <ul>
49
   <ul>
49
        [% FOREACH loo IN loop %]
50
        [% FOREACH loo IN loop %]
50
            [% IF ( loo.new_subfield ) %]
51
            [% IF ( loo.new_subfield ) %]
51
                <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian | html_entity %]">New</a></li>
52
                <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian | html_entity %]">[% t('New') %]</a></li>
52
            [% ELSE %]
53
            [% ELSE %]
53
                <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian | html_entity %]">
54
                <li><a href="#sub[% loo.urisubfieldcode %]field" title="[% loo.liblibrarian | html_entity %]">
54
                    [% loo.subfieldcode %]
55
                    [% loo.subfieldcode %]
Lines 60-78 Link Here
60
    [% FOREACH loo IN loop %] 
61
    [% FOREACH loo IN loop %] 
61
        <div class="constraints" id="sub[% loo.urisubfieldcode %]field">
62
        <div class="constraints" id="sub[% loo.urisubfieldcode %]field">
62
63
63
               <h3><a href="#basic[% loo.urisubfieldcode %]">Basic constraints</a></h3>
64
               <h3><a href="#basic[% loo.urisubfieldcode %]">[% t('Basic constraints') %]</a></h3>
64
                    <div id="basic[% loo.urisubfieldcode %]">
65
                    <div id="basic[% loo.urisubfieldcode %]">
65
                    <fieldset class="rows">
66
                    <fieldset class="rows">
66
                	<ol>
67
                	<ol>
67
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
68
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
68
                		<li><span class="label">Subfield code:</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
69
                		<li><span class="label">[% t('Subfield code:') %]</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
69
                		[% ELSE %]
70
                		[% ELSE %]
70
                		<li><label for="tagsubfield[% loo.row %]">Subfield code:</label> <input type="text" id="tagsubfield[% loo.row %]" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
71
                		<li><label for="tagsubfield[% loo.row %]">[% t('Subfield code:') %]</label> <input type="text" id="tagsubfield[% loo.row %]" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
71
                		[% END %]
72
                		[% END %]
72
                        <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /></li>
73
                        <li><label for="liblibrarian[% loo.row %]">[% t('Text for librarian:') %] </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" /></li>
73
                        <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /></li>
74
                        <li><label for="libopac[% loo.row %]">[% t('Text for OPAC:') %] </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" /></li>
74
                        <li>
75
                        <li>
75
                            <label for="repeatable[% loo.row %]">Repeatable: </label>
76
                            <label for="repeatable[% loo.row %]">[% t('Repeatable:') %] </label>
76
                            [% IF loo.repeatable %]
77
                            [% IF loo.repeatable %]
77
                                <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
78
                                <input type="checkbox" id="repeatable[% loo.row %]" name="repeatable[% loo.row %]" checked="checked" value="1" />
78
                            [% ELSE %]
79
                            [% ELSE %]
Lines 80-98 Link Here
80
                            [% END %]
81
                            [% END %]
81
                        </li>
82
                        </li>
82
                        <li>
83
                        <li>
83
                            <label for="mandatory[% loo.row %]">Mandatory: </label>
84
                            <label for="mandatory[% loo.row %]">[% t('Mandatory:') %] </label>
84
                            [% IF loo.mandatory %]
85
                            [% IF loo.mandatory %]
85
                                <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
86
                                <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" checked="checked" value="1" />
86
                            [% ELSE %]
87
                            [% ELSE %]
87
                                <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
88
                                <input type="checkbox" id="mandatory[% loo.row %]" name="mandatory[% loo.row %]" value="1" />
88
                            [% END %]
89
                            [% END %]
89
                        </li>
90
                        </li>
90
                        <li><label for="tab[% loo.row %]">Managed in tab: </label>
91
                        <li><label for="tab[% loo.row %]">[% t('Managed in tab:') %] </label>
91
                            <select name="tab" tabindex="" size="1" id="tab[% loo.row %]">
92
                            <select name="tab" tabindex="" size="1" id="tab[% loo.row %]">
92
                            [%- IF ( loo.tab ==  -1 ) -%]
93
                            [%- IF ( loo.tab ==  -1 ) -%]
93
                                <option value="-1" selected="selected">ignore</option>
94
                                <option value="-1" selected="selected">[% t('ignore') %]</option>
94
                            [%- ELSE -%]
95
                            [%- ELSE -%]
95
                                <option value="-1">ignore</option>
96
                                <option value="-1">[% t('ignore') %]</option>
96
                            [%- END -%]
97
                            [%- END -%]
97
                            [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%]
98
                            [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%]
98
                                [%- IF ( loo.tab ==  t ) -%]
99
                                [%- IF ( loo.tab ==  t ) -%]
Lines 102-152 Link Here
102
                                [%- END -%]
103
                                [%- END -%]
103
                            [%- END -%]
104
                            [%- END -%]
104
                            [%- IF ( loo.tab ==  10 ) -%]
105
                            [%- IF ( loo.tab ==  10 ) -%]
105
                                <option value="10" selected="selected">items (10)</option>
106
                                <option value="10" selected="selected">[% t('items (10)') %]</option>
106
                            [%- ELSE -%]
107
                            [%- ELSE -%]
107
                                <option value="10">items (10)</option>
108
                                <option value="10">[% t('items (10)') %]</option>
108
                            [%- END -%]
109
                            [%- END -%]
109
                            </select>
110
                            </select>
110
                            (ignore means that the subfield does not display in the record editor)
111
                            [% t('(ignore means that the subfield does not display in the record editor)') %]
111
                        </li>
112
                        </li>
112
                	</ol>
113
                	</ol>
113
                    </fieldset>
114
                    </fieldset>
114
                    </div>
115
                    </div>
115
116
116
117
117
            <h3><a href="#advanced[% loo.urisubfieldcode %]">Advanced constraints</a></h3>
118
            <h3><a href="#advanced[% loo.urisubfieldcode %]">[% t('Advanced constraints') %]</a></h3>
118
            <div id="advanced[% loo.urisubfieldcode %]">
119
            <div id="advanced[% loo.urisubfieldcode %]">
119
            <fieldset class="rows">
120
            <fieldset class="rows">
120
                <ol><li><label for="defaultvalue[% loo.row %]">Default value:</label>
121
                <ol><li><label for="defaultvalue[% loo.row %]">[% t('Default value:') %]</label>
121
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
122
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
122
				<li><label for="maxlength[% loo.row %]">Max length:</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> (see online help)</li>
123
				<li><label for="maxlength[% loo.row %]">[% t('Max length:') %]</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> [% t('(see online help)') %]</li>
123
                <li><input type="hidden" id="hidden-[% loo.row %]" name="hidden" value="[% loo.hidden %]" />
124
                <li><input type="hidden" id="hidden-[% loo.row %]" name="hidden" value="[% loo.hidden %]" />
124
                    <label for="hidden[% loo.row %]" style="float: none;">Visibility: </label>
125
                    <label for="hidden[% loo.row %]" style="float: none;">[% t('Visibility:') %] </label>
125
                    <input type="checkbox" id="hidden_opac_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_opac_[% loo.row %]"/>
126
                    <input type="checkbox" id="hidden_opac_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_opac_[% loo.row %]" />
126
                    <label for="hidden_opac_[% loo.row %]" style="float: none;">OPAC</label>
127
                    <label for="hidden_opac_[% loo.row %]" style="float: none;">[% t('OPAC') %]</label>
127
                    <input type="checkbox" id="hidden_intranet_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_intranet_[% loo.row %]"/>
128
                    <input type="checkbox" id="hidden_intranet_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_intranet_[% loo.row %]" />
128
                    <label for="hidden_intranet_[% loo.row %]" style="float: none;">Intranet</label>
129
                    <label for="hidden_intranet_[% loo.row %]" style="float: none;">[% t('Intranet') %]</label>
129
                    <input type="checkbox" id="hidden_editor_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_editor_[% loo.row %]"/>
130
                    <input type="checkbox" id="hidden_editor_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_editor_[% loo.row %]" />
130
                    <label for="hidden_editor_[% loo.row %]" style="float: none;">Editor</label>
131
                    <label for="hidden_editor_[% loo.row %]" style="float: none;">[% t('Editor') %]</label>
131
                    <input type="checkbox" id="hidden_collapsed_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_collapsed_[% loo.row %]"/>
132
                    <input type="checkbox" id="hidden_collapsed_[% loo.row %]" class="inclusive_[% loo.row %]" name="hidden_collapsed_[% loo.row %]" />
132
                    <label for="hidden_collapsed_[% loo.row %]" style="float: none;">Collapsed</label>
133
                    <label for="hidden_collapsed_[% loo.row %]" style="float: none;">[% t('Collapsed') %]</label>
133
                    <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]"/>
134
                    <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]" />
134
                    <label for="hidden_flagged_[% loo.row %]" style="float: none;">Flagged</label>
135
                    <label for="hidden_flagged_[% loo.row %]" style="float: none;">[% t('Flagged') %]</label>
135
                </li>
136
                </li>
136
                <li>
137
                <li>
137
                    <label for="isurl[% loo.row %]">Is a URL:</label>
138
                    <label for="isurl[% loo.row %]">[% t('Is a URL:') %]</label>
138
                    [% IF loo.isurl %]
139
                    [% IF loo.isurl %]
139
                        <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
140
                        <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" checked="checked" value="1" />
140
                    [% ELSE %]
141
                    [% ELSE %]
141
                        <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
142
                        <input type="checkbox" id="isurl[% loo.row %]" name="isurl[% loo.row %]" value="1" />
142
                    [% END %]
143
                    [% END %]
143
                    (if checked, it means that the subfield is a URL and can be clicked)
144
                    [% t('(if checked, it means that the subfield is a URL and can be clicked)') %]
144
                </li>
145
                </li>
145
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
146
                <li><label for="link[% loo.row %]">[% t('Link:') %]</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> [% t('(e.g., Title or Local-Number)') %] <span class="error"><em>[% t('NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.') %]</em></span></li>
146
                <li>
147
                <li>
147
                    <label for="kohafield[% loo.row %]">Koha link:</label>
148
                    <label for="kohafield[% loo.row %]">[% t('Koha link:') %]</label>
148
                    <!-- This select should be DISABLED; value is submitted by the following hidden input -->
149
                    <!-- This select should be DISABLED; value is submitted by the following hidden input -->
149
                    <select name="kohafield" id="kohafield[% loo.row %]" size="1" disabled>
150
                    <select name="kohafield" id="kohafield[% loo.row %]" size="1" disabled="">
150
                    [% FOREACH value IN loo.kohafields %]
151
                    [% FOREACH value IN loo.kohafields %]
151
                      [% IF ( value == loo.kohafield ) %]
152
                      [% IF ( value == loo.kohafield ) %]
152
                        <option value="[% value %]" selected="selected">[% value %]</option>
153
                        <option value="[% value %]" selected="selected">[% value %]</option>
Lines 156-172 Link Here
156
                    [% END %]
157
                    [% END %]
157
                    </select>
158
                    </select>
158
                    <!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
159
                    <!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
159
                    <input type="hidden" name="kohafield" value="[% loo.kohafield %]"/>
160
                    <input type="hidden" name="kohafield" value="[% loo.kohafield %]" />
160
                </li>
161
                </li>
161
			</ol>
162
			</ol>
162
            </fieldset>
163
            </fieldset>
163
            </div>
164
            </div>
164
            <h3><a href="#oth[% loo.urisubfieldcode %]">Other options (choose one)</a></h3>
165
            <h3><a href="#oth[% loo.urisubfieldcode %]">[% t('Other options (choose one)') %]</a></h3>
165
            <div id="oth[% loo.urisubfieldcode %]">
166
            <div id="oth[% loo.urisubfieldcode %]">
166
            <fieldset class="rows">
167
            <fieldset class="rows">
167
                    	<ol>
168
                    	<ol>
168
                            <li>
169
                            <li>
169
                                <label for="authorised_value[% loo.row %]">Authorized value:</label>
170
                                <label for="authorised_value[% loo.row %]">[% t('Authorized value:') %]</label>
170
                                <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
171
                                <select name="authorised_value" id="authorised_value[% loo.row %]" size="1">
171
                                <option value=""></option>
172
                                <option value=""></option>
172
                                [% FOREACH value IN loo.authorised_values %]
173
                                [% FOREACH value IN loo.authorised_values %]
Lines 179-185 Link Here
179
                                </select>
180
                                </select>
180
                            </li>
181
                            </li>
181
                            <li>
182
                            <li>
182
                                <label for="authtypecode[% loo.row %]">Thesaurus:</label>
183
                                <label for="authtypecode[% loo.row %]">[% t('Thesaurus:') %]</label>
183
                                <select name="authtypecode" id="authtypecode[% loo.row %]" size="1">
184
                                <select name="authtypecode" id="authtypecode[% loo.row %]" size="1">
184
                                [% FOREACH value IN loo.authtypes %]
185
                                [% FOREACH value IN loo.authtypes %]
185
                                    [% IF ( value == loo.authtypecode ) %]
186
                                    [% IF ( value == loo.authtypecode ) %]
Lines 191-197 Link Here
191
                                </select>
192
                                </select>
192
                            </li>
193
                            </li>
193
                            <li>
194
                            <li>
194
                                <label for="value_builder[% loo.row %]">Plugin:</label>
195
                                <label for="value_builder[% loo.row %]">[% t('Plugin:') %]</label>
195
                                <select name="value_builder" id="value_builder[% loo.row %]" size="1">
196
                                <select name="value_builder" id="value_builder[% loo.row %]" size="1">
196
                                [% FOREACH value IN loo.value_builders %]
197
                                [% FOREACH value IN loo.value_builders %]
197
                                    [% IF ( value == loo.value_builder ) %]
198
                                    [% IF ( value == loo.value_builder ) %]
Lines 209-215 Link Here
209
        [% END %]
210
        [% END %]
210
		</div><!-- /content -->
211
		</div><!-- /content -->
211
    <fieldset class="action">
212
    <fieldset class="action">
212
        <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield  | uri %]&amp;frameworkcode=[% frameworkcode %]" class="cancel">Cancel</a>
213
        <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield  | uri %]&frameworkcode=[% frameworkcode %]" class="cancel">[% t('Cancel') %]</a>
213
    </fieldset>
214
    </fieldset>
214
    </form>
215
    </form>
215
[% END %]
216
[% END %]
Lines 217-232 Link Here
217
[% IF ( delete_confirm ) %]
218
[% IF ( delete_confirm ) %]
218
219
219
    <div class="dialog alert">
220
    <div class="dialog alert">
220
        <h3>Confirm deletion of subfield [% tagsubfield %]?</h3>
221
        <h3>[% t('Confirm deletion of subfield') %] [% tagsubfield %]?</h3>
221
        <p>Subfield: [% tagsubfield %]</p>
222
        <p>[% t('Subfield:') %] [% tagsubfield %]</p>
222
        <p>Description: [% liblibrarian | html_entity %]</p>
223
        <p>[% t('Description:') %] [% liblibrarian | html_entity %]</p>
223
224
224
        <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
225
        <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
225
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
226
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
226
            <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
227
            <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
227
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
228
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
228
            <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
229
            <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
229
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
230
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this subfield') %]</button>
230
        </form>
231
        </form>
231
232
232
233
Lines 235-241 Link Here
235
            <input type="hidden" name="tagfield" value="[% tagfield | html%]" />
236
            <input type="hidden" name="tagfield" value="[% tagfield | html%]" />
236
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
237
            <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
237
            <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
238
            <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
238
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
239
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
239
        </form>
240
        </form>
240
    </div>
241
    </div>
241
242
Lines 243-249 Link Here
243
244
244
[% IF ( delete_confirmed ) %]
245
[% IF ( delete_confirmed ) %]
245
246
246
    <h3>Data deleted</h3>
247
    <h3>[% t('Data deleted') %]</h3>
247
    <form action="[% script_name %]" method="post">
248
    <form action="[% script_name %]" method="post">
248
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
249
        <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
249
    <input type="submit" value="OK" />
250
    <input type="submit" value="OK" />
Lines 252-271 Link Here
252
253
253
254
254
[% IF ( else ) %]
255
[% IF ( else ) %]
255
<h1>MARC subfield structure admin for [% tagfield | html %] [% IF ( frameworkcode ) %](framework [% frameworkcode %])[% ELSE %](default framework)[% END %]</h1>
256
<h1>[% t('MARC subfield structure admin for') %] [% tagfield | html %] [% IF ( frameworkcode ) %][% t('(framework') %] [% frameworkcode %])[% ELSE %][% t('(default framework)') %][% END %]</h1>
256
<p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
257
<p>[% t('This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.') %]</p>
257
<p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
258
<p>[% t('The column \'Koha field\' shows that the subfield is linked with a Koha field.') %]</p>
258
259
259
<table>
260
<table>
260
<tr>
261
<tr>
261
    <th>Subfield</th>
262
    <th>[% t('Subfield') %]</th>
262
    <th>Text</th>
263
    <th>[% t('Text') %]</th>
263
    <th>Constraints</th>
264
    <th>[% t('Constraints') %]</th>
264
    <th>Actions</th>
265
    <th>[% t('Actions') %]</th>
265
</tr>
266
</tr>
266
[% FOREACH loo IN loop %]
267
[% FOREACH loo IN loop %]
267
<tr>
268
<tr>
268
    <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield %]&amp;frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">[% loo.tagsubfield %]</a></td>
269
    <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">[% loo.tagsubfield %]</a></td>
269
    <td>
270
    <td>
270
        [% IF ( loo.subfield_ignored ) %]
271
        [% IF ( loo.subfield_ignored ) %]
271
            <i>[% loo.liblibrarian | html_entity %]</i>
272
            <i>[% loo.liblibrarian | html_entity %]</i>
Lines 275-298 Link Here
275
    </td>
276
    </td>
276
    <td>
277
    <td>
277
        [% IF ( loo.subfield_ignored ) %]
278
        [% IF ( loo.subfield_ignored ) %]
278
            <i>subfield ignored</i>
279
            <i>[% t('subfield ignored') %]</i>
279
        [% ELSE %]
280
        [% ELSE %]
280
            Tab:[% loo.tab %],
281
            [% t('Tab:') %][% loo.tab %],
281
            [% IF ( loo.kohafield ) %] | Koha field: [% loo.kohafield %], [% END %]
282
            [% IF ( loo.kohafield ) %] [% t('| Koha field:') %] [% loo.kohafield %], [% END %]
282
            [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,[% END %]
283
            [% IF ( loo.repeatable ) %][% t('Repeatable,') %] [% ELSE %][% t('Not repeatable,') %][% END %]
283
            [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,[% END %]
284
            [% IF ( loo.mandatory ) %][% t('Mandatory,') %] [% ELSE %][% t('Not mandatory,') %][% END %]
284
            [% IF ( loo.seealso ) %] | See Also: [% loo.seealso %],[% END %]
285
            [% IF ( loo.seealso ) %] [% t('| See Also:') %] [% loo.seealso %],[% END %]
285
            [% IF ( loo.hidden ) %]hidden,[% END %]
286
            [% IF ( loo.hidden ) %][% t('hidden,') %][% END %]
286
            [% IF ( loo.isurl ) %]is a URL,[% END %]
287
            [% IF ( loo.isurl ) %][% t('is a URL,') %][% END %]
287
            [% IF ( loo.authorised_value ) %] | Auth value:[% loo.authorised_value %],[% END %]
288
            [% IF ( loo.authorised_value ) %] [% t('| Auth value:') %][% loo.authorised_value %],[% END %]
288
            [% IF ( loo.authtypecode ) %] | Authority:[% loo.authtypecode %],[% END %]
289
            [% IF ( loo.authtypecode ) %] [% t('| Authority:') %][% loo.authtypecode %],[% END %]
289
            [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder %],[% END %]
290
            [% IF ( loo.value_builder ) %] [% t('| Plugin:') %][% loo.value_builder %],[% END %]
290
            [% IF ( loo.link ) %] | Link:[% loo.link %],[% END %]
291
            [% IF ( loo.link ) %] [% t('| Link:') %][% loo.link %],[% END %]
291
        [% END %]
292
        [% END %]
292
    </td>
293
    </td>
293
    <td class="actions">
294
    <td class="actions">
294
        <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield %]&amp;frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
295
        <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
295
        <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&amp;tagfield=[% loo.tagfield %]&amp;tagsubfield=[% loo.tagsubfield %]&amp;frameworkcode=[% frameworkcode %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
296
        <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield %]&tagsubfield=[% loo.tagsubfield %]&frameworkcode=[% frameworkcode %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
296
    </td>
297
    </td>
297
</tr>
298
</tr>
298
[% END %]
299
[% END %]
Lines 303-309 Link Here
303
    <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
304
    <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
304
    <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode %]" />
305
    <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode %]" />
305
    <input type="submit" value="Edit subfields" />
306
    <input type="submit" value="Edit subfields" />
306
        <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode %]">Cancel</a>
307
        <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&frameworkcode=[% frameworkcode %]">[% t('Cancel') %]</a>
307
	</fieldset>
308
	</fieldset>
308
</form>
309
</form>
309
310
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-65 / +66 lines)
Lines 1-12 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo;
6
<title>[% t('Koha › Administration ›') %]
6
[% IF ( add_form ) %]MARC frameworks &rsaquo; [% action %] [% searchfield %][% END %]
7
[% IF ( add_form ) %][% t('MARC frameworks ›') %] [% action %] [% searchfield %][% END %]
7
[% IF ( delete_confirm ) %]MARC frameworks &rsaquo; Confirm deletion of tag '[% searchfield %]'[% END %]
8
[% IF ( delete_confirm ) %][% t('MARC frameworks › Confirm deletion of tag \'') %][% searchfield %]'[% END %]
8
[% IF ( delete_confirmed ) %]MARC frameworks &rsaquo;  Data deleted[% END %]
9
[% IF ( delete_confirmed ) %][% t('MARC frameworks ›') %]  [% t('Data deleted') %][% END %]
9
[% IF ( else ) %]MARC frameworks[% END %]</title>
10
[% IF ( else ) %][% t('MARC frameworks') %][% END %]</title>
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
12
</head>
13
</head>
Lines 16-35 Link Here
16
[% INCLUDE 'prefs-admin-search.inc' %]
17
[% INCLUDE 'prefs-admin-search.inc' %]
17
18
18
<div id="breadcrumbs">
19
<div id="breadcrumbs">
19
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
20
         <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
20
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
21
› <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a>
21
&rsaquo; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
22
› <a href="/cgi-bin/koha/admin/biblio_framework.pl">[% t('MARC frameworks') %]</a>
22
[% IF ( add_form ) %]
23
[% IF ( add_form ) %]
23
&rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END%]</a>
24
› <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %][% t('Default MARC framework') %][% END%]</a>
24
&rsaquo; [% action %] [% searchfield %]
25
› [% action %] [% searchfield %]
25
[% ELSIF ( else ) %]
26
[% ELSIF ( else ) %]
26
&rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
27
› <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %][% t('Default MARC framework') %][% END %]</a>
27
[% ELSIF ( delete_confirm ) %]
28
[% ELSIF ( delete_confirm ) %]
28
&rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
29
› <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %][% t('Default MARC framework') %][% END %]</a>
29
&rsaquo; Confirm deletion of tag '[% searchfield %]'
30
[% t('› Confirm deletion of tag \'') %][% searchfield %]'
30
[% ELSIF ( delete_confirmed ) %]
31
[% ELSIF ( delete_confirmed ) %]
31
&rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %]</a>
32
› <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %][% t('Default MARC framework') %][% END %]</a>
32
&rsaquo; Data deleted
33
[% t('› Data deleted') %]
33
[% END %]
34
[% END %]
34
</div>
35
</div>
35
36
Lines 40-101 Link Here
40
41
41
[% IF ( else ) %]
42
[% IF ( else ) %]
42
<div id="toolbar" class="btn-toolbar">
43
<div id="toolbar" class="btn-toolbar">
43
    <a class="btn btn-default btn-sm" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&amp;frameworkcode=[% framework.frameworkcode %]"><i class="fa fa-plus"></i> New tag</a>
44
    <a class="btn btn-default btn-sm" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% framework.frameworkcode %]"><i class="fa fa-plus"></i> [% t('New tag') %]</a>
44
</div>[% END %]
45
</div>[% END %]
45
46
46
<h1>MARC Framework for [% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1>
47
<h1>[% t('MARC Framework for') %] [% IF framework %][% framework.frameworktext |html %] ([% framework.frameworkcode %])[% ELSE %][% t('default MARC framework') %][% END %]</h1>
47
48
48
[% IF ( add_form ) %]
49
[% IF ( add_form ) %]
49
50
50
    <form action="[% script_name %]" name="Aform" method="post" class="validated">
51
    <form action="[% script_name %]" name="Aform" method="post" class="validated">
51
52
52
      <fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend>  <input type="hidden" name="op" value="add_validate" />
53
      <fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %][% t('Modify tag') %] <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %][% t('Add tag') %][% END %][% ELSE %][% action %][% END %]</legend>  <input type="hidden" name="op" value="add_validate" />
53
        <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
54
        <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
54
55
55
        <ol>
56
        <ol>
56
            <li>
57
            <li>
57
                [% IF ( heading_modify_tag_p ) %]
58
                [% IF ( heading_modify_tag_p ) %]
58
                    <input type="hidden" name="tagfield" value="[% searchfield %]" />
59
                    <input type="hidden" name="tagfield" value="[% searchfield %]" />
59
                    <span class="label">Tag:</span>
60
                    <span class="label">[% t('Tag:') %]</span>
60
                    [% searchfield %]
61
                    [% searchfield %]
61
                [% ELSE %]
62
                [% ELSE %]
62
                    <label for="tagfield" class="required">Tag: </label>
63
                    <label for="tagfield" class="required">[% t('Tag:') %] </label>
63
                    <input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" />
64
                    <input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" />
64
                    <span class="required">Required</span>
65
                    <span class="required">[% t('Required') %]</span>
65
                [% END %]
66
                [% END %]
66
            </li>
67
            </li>
67
    <li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
68
    <li><label for="liblibrarian">[% t('Label for lib:') %] </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
68
    <li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
69
    <li><label for="libopac">[% t('Label for opac:') %] </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
69
    <li><label for="repeatable">Repeatable: </label>
70
    <li><label for="repeatable">[% t('Repeatable:') %] </label>
70
        [% IF ( repeatable ) %]
71
        [% IF ( repeatable ) %]
71
            <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
72
            <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
72
        [% ELSE %]
73
        [% ELSE %]
73
            <input type="checkbox" name="repeatable" id="repeatable" value="1" />
74
            <input type="checkbox" name="repeatable" id="repeatable" value="1" />
74
        [% END %]
75
        [% END %]
75
    </li>
76
    </li>
76
    <li><label for="mandatory">Mandatory: </label>
77
    <li><label for="mandatory">[% t('Mandatory:') %] </label>
77
        [% IF ( mandatory ) %]
78
        [% IF ( mandatory ) %]
78
            <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
79
            <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
79
        [% ELSE %]
80
        [% ELSE %]
80
            <input type="checkbox" name="mandatory" id="mandatory" value="1" />
81
            <input type="checkbox" name="mandatory" id="mandatory" value="1" />
81
        [% END %]
82
        [% END %]
82
    </li>
83
    </li>
83
    <li><label for="ind1_defaultvalue">First indicator default value: </label>
84
    <li><label for="ind1_defaultvalue">[% t('First indicator default value:') %] </label>
84
        <input id="ind1_defaultvalue" type="text" name="ind1_defaultvalue" value="[% ind1_defaultvalue |html %]" maxlength="1" size="1" />
85
        <input id="ind1_defaultvalue" type="text" name="ind1_defaultvalue" value="[% ind1_defaultvalue |html %]" maxlength="1" size="1" />
85
    </li>
86
    </li>
86
    <li><label for="ind2_defaultvalue">Second indicator default value: </label>
87
    <li><label for="ind2_defaultvalue">[% t('Second indicator default value:') %] </label>
87
        <input id="ind2_defaultvalue" type="text" name="ind2_defaultvalue" value="[% ind2_defaultvalue |html %]" maxlength="1" size="1" />
88
        <input id="ind2_defaultvalue" type="text" name="ind2_defaultvalue" value="[% ind2_defaultvalue |html %]" maxlength="1" size="1" />
88
    </li>
89
    </li>
89
    <li><label for="authorised_value">Authorized value: </label>
90
    <li><label for="authorised_value">[% t('Authorized value:') %] </label>
90
        <select name="authorised_value" id="authorised_value" size="1">
91
        <select name="authorised_value" id="authorised_value" size="1">
91
            <option value=""></option>
92
            <option value=""></option>
92
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
93
            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
93
        </select>
94
        </select>
94
        (if you select a value here, the indicators will be limited to the authorized value list)</li>
95
        [% t('(if you select a value here, the indicators will be limited to the authorized value list)') %]</li>
95
</ol></fieldset> 
96
</ol></fieldset> 
96
    <fieldset class="action">
97
    <fieldset class="action">
97
        <input type="submit" value="Save changes" />
98
        <input type="submit" value="Save changes" />
98
        <a class="cancel" href="[% script_name %]?frameworkcode=[% framework.frameworkcode %]">Cancel</a>
99
        <a class="cancel" href="[% script_name %]?frameworkcode=[% framework.frameworkcode %]">[% t('Cancel') %]</a>
99
    </fieldset>
100
    </fieldset>
100
    </form>
101
    </form>
101
[% END %]
102
[% END %]
Lines 103-128 Link Here
103
104
104
[% IF ( delete_confirm ) %]
105
[% IF ( delete_confirm ) %]
105
    <div class="dialog alert">
106
    <div class="dialog alert">
106
        <h3>Confirm deletion of tag <span class="ex">'[% searchfield %]'</span>?</h3>
107
        <h3>[% t('Confirm deletion of tag') %] <span class="ex">'[% searchfield %]'</span>?</h3>
107
        <p>Tag: [% searchfield %]</p>
108
        <p>[% t('Tag:') %] [% searchfield %]</p>
108
        <p>Description: [% liblibrarian %]</p>
109
        <p>[% t('Description:') %] [% liblibrarian %]</p>
109
        <form action="[% script_name %]" method="post">
110
        <form action="[% script_name %]" method="post">
110
            <input type="hidden" name="op" value="delete_confirmed" />
111
            <input type="hidden" name="op" value="delete_confirmed" />
111
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
112
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
112
            <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
113
            <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
113
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button>
114
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete this tag') %]</button>
114
        </form>
115
        </form>
115
        <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
116
        <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
116
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
117
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
117
        </form>
118
        </form>
118
    </div>
119
    </div>
119
[% END %]
120
[% END %]
120
121
121
[% IF ( delete_confirmed ) %]
122
[% IF ( delete_confirmed ) %]
122
123
123
    <div class="dialog message"><h3>Tag deleted</h3>
124
    <div class="dialog message"><h3>[% t('Tag deleted') %]</h3>
124
    <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
125
    <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
125
        <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
126
        <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('OK') %]</button>
126
    </form></div>
127
    </form></div>
127
[% END %]
128
[% END %]
128
[% IF ( framework_create ) %]
129
[% IF ( framework_create ) %]
Lines 130-138 Link Here
130
    <form action="[% script_name %]" method="post">
131
    <form action="[% script_name %]" method="post">
131
        <input type="hidden" name="op" value="framework_create_confirm" />
132
        <input type="hidden" name="op" value="framework_create_confirm" />
132
        <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
133
        <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode %]" />
133
        Create framework for [% frameworkcode %] ([% framework.frameworktext |html %]) using
134
        [% t('Create framework for') %] [% frameworkcode %] ([% framework.frameworktext |html %][% t(') using') %]
134
        <select name="existingframeworkcode">
135
        <select name="existingframeworkcode">
135
            <option value="">Default</option>
136
            <option value="">[% t('Default') %]</option>
136
        [% FOREACH existingframeworkloo IN existingframeworkloop %]
137
        [% FOREACH existingframeworkloo IN existingframeworkloop %]
137
            <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext |html %]</option>
138
            <option value="[% existingframeworkloo.value %]">[% existingframeworkloo.frameworktext |html %]</option>
138
        [% END %]
139
        [% END %]
Lines 145-156 Link Here
145
[% IF ( else ) %]
146
[% IF ( else ) %]
146
<form name="f" action="[% script_name %]" method="post">
147
<form name="f" action="[% script_name %]" method="post">
147
<fieldset style="padding:.5em;">
148
<fieldset style="padding:.5em;">
148
        <label for="searchfield"><strong>Search for tag:</strong> </label>
149
        <label for="searchfield"><strong>[% t('Search for tag:') %]</strong> </label>
149
        <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
150
        <input type="text" name="searchfield" id="searchfield" size="4" value="[% searchfield %]" />
150
151
151
<label for="frameworkcode"><strong>In framework:</strong> </label>
152
<label for="frameworkcode"><strong>[% t('In framework:') %]</strong> </label>
152
        <select id="frameworkcode" name="frameworkcode">
153
        <select id="frameworkcode" name="frameworkcode">
153
            <option value="">Default</option>
154
            <option value="">[% t('Default') %]</option>
154
            [% FOREACH f IN frameworks %]
155
            [% FOREACH f IN frameworks %]
155
            [% IF f.frameworkcode == framework.frameworkcode %]
156
            [% IF f.frameworkcode == framework.frameworkcode %]
156
                <option value="[% f.frameworkcode %]" selected="selected">[% f.frameworktext |html %]</option>
157
                <option value="[% f.frameworkcode %]" selected="selected">[% f.frameworktext |html %]</option>
Lines 160-166 Link Here
160
            [% END %]
161
            [% END %]
161
        </select>
162
        </select>
162
    <input type="submit" value="Search" />
163
    <input type="submit" value="Search" />
163
<p>        <label for="select_display">Display only used tags/subfields</label>
164
<p>        <label for="select_display">[% t('Display only used tags/subfields') %]</label>
164
        [% IF ( select_display ) %]
165
        [% IF ( select_display ) %]
165
            <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" />
166
            <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" />
166
        [% ELSE %]
167
        [% ELSE %]
Lines 172-185 Link Here
172
    <table id="table_marctagstructure">
173
    <table id="table_marctagstructure">
173
    <thead>
174
    <thead>
174
        <tr>
175
        <tr>
175
        <th>Tag</th>
176
        <th>[% t('Tag') %]</th>
176
        <th>Lib</th>
177
        <th>[% t('Lib') %]</th>
177
        <th>Repeatable</th>
178
        <th>[% t('Repeatable') %]</th>
178
        <th>Mandatory</th>
179
        <th>[% t('Mandatory') %]</th>
179
        <th>Auth value</th>
180
        <th>[% t('Auth value') %]</th>
180
        <th>Indicator 1</th>
181
        <th>[% t('Indicator 1') %]</th>
181
        <th>Indicator 2</th>
182
        <th>[% t('Indicator 2') %]</th>
182
        <th>&nbsp;</th>
183
        <th> </th>
183
        </tr>
184
        </tr>
184
    </thead>
185
    </thead>
185
    <tbody>
186
    <tbody>
Lines 191-214 Link Here
191
                [% loo.liblibrarian %]
192
                [% loo.liblibrarian %]
192
                [% FOREACH subfield IN loo.subfields %]
193
                [% FOREACH subfield IN loo.subfields %]
193
                    <p>
194
                    <p>
194
                        Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
195
                        [% t('Tab:') %][% subfield.tab %] | $[% subfield.tagsubfield %]
195
                        [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %], repeatable[% END %][% IF ( subfield.mandatory ) %], Mandatory[% END %][% IF ( subfield.seealso ) %], See [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
196
                        [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %][% t(', repeatable') %][% END %][% IF ( subfield.mandatory ) %][% t(', Mandatory') %][% END %][% IF ( subfield.seealso ) %][% t(', See') %] [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
196
                    </p>
197
                    </p>
197
                [% END %]
198
                [% END %]
198
            </td>
199
            </td>
199
            <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
200
            <td>[% IF ( loo.repeatable ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
200
            <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
201
            <td>[% IF ( loo.mandatory ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
201
            <td>[% loo.authorised_value %]</td>
202
            <td>[% loo.authorised_value %]</td>
202
            <td>[% loo.ind1_defaultvalue %]</td>
203
            <td>[% loo.ind1_defaultvalue %]</td>
203
            <td>[% loo.ind2_defaultvalue %]</td>
204
            <td>[% loo.ind2_defaultvalue %]</td>
204
            <td>
205
            <td>
205
                <div class="dropdown">
206
                <div class="dropdown">
206
                    <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
207
                    <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
207
                        Actions <b class="caret"></b></a>
208
                        [% t('Actions') %] <b class="caret"></b></a>
208
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
209
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
209
                        <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
210
                        <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> [% t('Subfields') %]</a></li>
210
                        <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
211
                        <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
211
                        <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
212
                        <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
212
                    </ul>
213
                    </ul>
213
                </div>
214
                </div>
214
            </td>
215
            </td>
Lines 219-237 Link Here
219
    <tr>
220
    <tr>
220
        <td>[% loo.tagfield %]</td>
221
        <td>[% loo.tagfield %]</td>
221
        <td>[% loo.liblibrarian %]</td>
222
        <td>[% loo.liblibrarian %]</td>
222
        <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
223
        <td>[% IF ( loo.repeatable ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
223
        <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
224
        <td>[% IF ( loo.mandatory ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td>
224
        <td>[% loo.authorised_value %]</td>
225
        <td>[% loo.authorised_value %]</td>
225
        <td>[% loo.ind1_defaultvalue %]</td>
226
        <td>[% loo.ind1_defaultvalue %]</td>
226
        <td>[% loo.ind2_defaultvalue %]</td>
227
        <td>[% loo.ind2_defaultvalue %]</td>
227
        <td>
228
        <td>
228
            <div class="dropdown">
229
            <div class="dropdown">
229
                <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
230
                <a class="btn btn-default btn-xs dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
230
                    Actions <b class="caret"></b></a>
231
                    [% t('Actions') %] <b class="caret"></b></a>
231
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
232
                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]">
232
                    <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
233
                    <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> [% t('Subfields') %]</a></li>
233
                    <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
234
                    <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
234
                    <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
235
                    <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
235
                </ul>
236
                </ul>
236
            </div>
237
            </div>
237
        </td>
238
        </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt (-183 / +136 lines)
Lines 1-27 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Record matching rules
5
<title>[% t('Koha › Administration › Record matching rules') %]
5
[% IF ( matching_rule_form ) %]
6
[% IF ( matching_rule_form ) %]
6
  [% IF ( edit_matching_rule ) %]
7
  [% IF ( edit_matching_rule ) %]
7
    &rsaquo; Modify record matching rule
8
    [% t('› Modify record matching rule') %]
8
  [% ELSE %]
9
  [% ELSE %]
9
    &rsaquo; Add record matching rule
10
    [% t('› Add record matching rule') %]
10
  [% END %]
11
  [% END %]
11
[% END %]
12
[% END %]
12
[% IF ( delete_matching_rule_form ) %]
13
[% IF ( delete_matching_rule_form ) %]
13
  &rsaquo; Confirm deletion of record matching rule &quot;[% code %]&quot;
14
  [% t('› Confirm deletion of record matching rule &#34;') %][% code %]"
14
[% END %]
15
[% END %]
15
</title>
16
</title>
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
17
18
18
[% BLOCK norms_text %]
19
[% BLOCK norms_text %]
19
[%    SWITCH norm %]
20
[%    SWITCH norm %]
20
[%        CASE 'none'           %]None
21
[%        CASE 'none'           %][% t('None') %]
21
[%        CASE 'remove_spaces'  %]Remove spaces
22
[%        CASE 'remove_spaces'  %][% t('Remove spaces') %]
22
[%        CASE 'upper_case'     %]Uppercase
23
[%        CASE 'upper_case'     %][% t('Uppercase') %]
23
[%        CASE 'lower_case'     %]Lowercase
24
[%        CASE 'lower_case'     %][% t('Lowercase') %]
24
[%        CASE 'legacy_default' %]Legacy default
25
[%        CASE 'legacy_default' %][% t('Legacy default') %]
25
[%        CASE %][% norm %]
26
[%        CASE %][% norm %]
26
[%    END %]
27
[%    END %]
27
[% END %]
28
[% END %]
Lines 60-75 Link Here
60
[% INCLUDE 'header.inc' %]
61
[% INCLUDE 'header.inc' %]
61
[% INCLUDE 'prefs-admin-search.inc' %]
62
[% INCLUDE 'prefs-admin-search.inc' %]
62
63
63
<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 ( display_list ) %]Record matching rules[% ELSE %]<a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a>[% END %]
64
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF ( display_list ) %][% t('Record matching rules') %][% ELSE %]<a href="/cgi-bin/koha/admin/matching-rules.pl">[% t('Record matching rules') %]</a>[% END %]
64
[% IF ( matching_rule_form ) %]
65
[% IF ( matching_rule_form ) %]
65
  [% IF ( edit_matching_rule ) %]
66
  [% IF ( edit_matching_rule ) %]
66
    &rsaquo; Modify record matching rule
67
    [% t('› Modify record matching rule') %]
67
  [% ELSE %]
68
  [% ELSE %]
68
    &rsaquo; Add record matching rule
69
    [% t('› Add record matching rule') %]
69
  [% END %]
70
  [% END %]
70
[% END %]
71
[% END %]
71
[% IF ( delete_matching_rule_form ) %]
72
[% IF ( delete_matching_rule_form ) %]
72
  &rsaquo; Confirm deletion of record matching rule &quot;[% code %]&quot;
73
  [% t('› Confirm deletion of record matching rule &#34;') %][% code %]"
73
[% END %]
74
[% END %]
74
</div>
75
</div>
75
76
Lines 81-89 Link Here
81
82
82
[% IF ( matching_rule_form ) %]
83
[% IF ( matching_rule_form ) %]
83
  [% IF ( edit_matching_rule ) %]
84
  [% IF ( edit_matching_rule ) %]
84
<h2>Modify record matching rule</h2>
85
<h2>[% t('Modify record matching rule') %]</h2>
85
  [% ELSE %]
86
  [% ELSE %]
86
<h2>Add record matching rule</h2>
87
<h2>[% t('Add record matching rule') %]</h2>
87
  [% END %]
88
  [% END %]
88
<form action="[% script_name %]" name="Aform" method="post">
89
<form action="[% script_name %]" name="Aform" method="post">
89
  <input type="hidden" name="op" value="[% confirm_op %]" />
90
  <input type="hidden" name="op" value="[% confirm_op %]" />
Lines 91-188 Link Here
91
    <ol>
92
    <ol>
92
      <li>
93
      <li>
93
          [% IF ( edit_matching_rule ) %]
94
          [% IF ( edit_matching_rule ) %]
94
		  <span class="label">Matching rule code: </span>
95
		  <span class="label">[% t('Matching rule code:') %] </span>
95
            <input type="hidden" name="matcher_id" value="[% matcher_id %]" />
96
            <input type="hidden" name="matcher_id" value="[% matcher_id %]" />
96
            <input type="hidden" name="code" value="[% code %]" />
97
            <input type="hidden" name="code" value="[% code %]" />
97
            [% code %]
98
            [% code %]
98
          [% ELSE %]
99
          [% ELSE %]
99
		  <label for="code" class="required">Matching rule code: </label>
100
		  <label for="code" class="required">[% t('Matching rule code:') %] </label>
100
            <input type="text" id="code" name="code"  size="10" maxlength="10" /> <span class="required">Required</span>
101
            <input type="text" id="code" name="code" size="10" maxlength="10" /> <span class="required">[% t('Required') %]</span>
101
          [% END %]
102
          [% END %]
102
       </li>
103
       </li>
103
       <li><label for="description" class="required">Description: </label>
104
       <li><label for="description" class="required">[% t('Description:') %] </label>
104
           <input type="text" id="description" name="description" size="50" maxlength="250" 
105
           <input type="text" id="description" name="description" size="50" maxlength="250" value="[% description |html %]" /> <span class="required">[% t('Required') %]</span>
105
                  value="[% description |html %]" /> <span class="required">Required</span>
106
       </li>
106
       </li>
107
       <li><label for="threshold" class="required">Match threshold: </label>
107
       <li><label for="threshold" class="required">[% t('Match threshold:') %] </label>
108
           <input type="text" id="threshold" name="threshold" size="5" maxlength="5" 
108
           <input type="text" id="threshold" name="threshold" size="5" maxlength="5" value="[% threshold |html %]" /> <span class="required">[% t('Required') %]</span>
109
                  value="[% threshold |html %]" /> <span class="required">Required</span>
110
       </li>
109
       </li>
111
       <li><label for="record_type" class="required">Record type: </label>
110
       <li><label for="record_type" class="required">[% t('Record type:') %] </label>
112
           <select id="record_type" name="record_type">
111
           <select id="record_type" name="record_type">
113
               [% IF ( record_type == "authority" ) %]
112
               [% IF ( record_type == "authority" ) %]
114
                   <option value="biblio">Bibliographic record</option>
113
                   <option value="biblio">[% t('Bibliographic record') %]</option>
115
                   <option value="authority" selected="selected">Authority record</option>
114
                   <option value="authority" selected="selected">[% t('Authority record') %]</option>
116
               [% ELSE %]
115
               [% ELSE %]
117
                   <option value="biblio" selected="selected">Bibliographic record</option>
116
                   <option value="biblio" selected="selected">[% t('Bibliographic record') %]</option>
118
                   <option value="authority">Authority record</option>
117
                   <option value="authority">[% t('Authority record') %]</option>
119
               [% END %]
118
               [% END %]
120
           </select><span class="required">Required</span>
119
           </select><span class="required">[% t('Required') %]</span>
121
       </li>
120
       </li>
122
    </ol>
121
    </ol>
123
  </fieldset>
122
  </fieldset>
124
123
125
  <fieldset class="rows" id="match_points">
124
  <fieldset class="rows" id="match_points">
126
  <h4>Match points</h4>
125
  <h4>[% t('Match points') %]</h4>
127
  [% IF ( edit_matching_rule ) %]
126
  [% IF ( edit_matching_rule ) %]
128
  [% IF ( matchpoints ) %]<p id="addMatchPoint" style="display:none;">[% ELSE %]<p id="addMatchPoint">[% END %]<a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a></p>
127
  [% IF ( matchpoints ) %]<p id="addMatchPoint" style="display:none;">[% ELSE %]<p id="addMatchPoint">[% END %]<a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">[% t('Add match point') %]</a></p>
129
  [% ELSE %]<p id="addMatchPoint" style="display:none;"><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a></p>[% END %]
128
  [% ELSE %]<p id="addMatchPoint" style="display:none;"><a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">[% t('Add match point') %]</a></p>[% END %]
130
  [% IF ( edit_matching_rule ) %]
129
  [% IF ( edit_matching_rule ) %]
131
  [% FOREACH matchpoint IN matchpoints %]
130
  [% FOREACH matchpoint IN matchpoints %]
132
  <div id="mp_[% matchpoint.mp_num %]" class="matchgroup">
131
  <div id="mp_[% matchpoint.mp_num %]" class="matchgroup">
133
  <fieldset class="rows">
132
  <fieldset class="rows">
134
    <legend>Match point [% matchpoint.mp_num %] | <a href="#" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num %]', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
133
    <legend>[% t('Match point') %] [% matchpoint.mp_num %] | <a href="#" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num %]', 'mp_template'); return false;">[% t('Add match point') %]</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">[% t('Remove this match point') %]</a></legend>
135
    <ol>
134
    <ol>
136
      <li>
135
      <li>
137
        <label for="mp_[% matchpoint.mp_num %]_search_index">Search index: </label>
136
        <label for="mp_[% matchpoint.mp_num %]_search_index">[% t('Search index:') %] </label>
138
        <input type ="text" id="mp_[% matchpoint.mp_num %]_search_index" 
137
        <input type="text" id="mp_[% matchpoint.mp_num %]_search_index" name="mp_[% matchpoint.mp_num %]_search_index" size="20" value="[% matchpoint.index |html %]" maxlength="30" />
139
               name="mp_[% matchpoint.mp_num %]_search_index" size="20" 
140
               value="[% matchpoint.index |html %]"
141
          maxlength="30" />
142
      </li>
138
      </li>
143
      <li>
139
      <li>
144
        <label for="mp_[% matchpoint.mp_num %]_score">Score: </label>
140
        <label for="mp_[% matchpoint.mp_num %]_score">[% t('Score:') %] </label>
145
        <input type ="text" id="mp_[% matchpoint.mp_num %]_score" 
141
        <input type="text" id="mp_[% matchpoint.mp_num %]_score" name="mp_[% matchpoint.mp_num %]_score" size="5" value="[% matchpoint.score |html %]" maxlength="5" />
146
               name="mp_[% matchpoint.mp_num %]_score" size="5"
147
               value="[% matchpoint.score |html %]" 
148
               maxlength="5" />
149
      </li>
142
      </li>
150
      </ol>
143
      </ol>
151
      [% FOREACH component IN matchpoint.components %]
144
      [% FOREACH component IN matchpoint.components %]
152
      <fieldset class="rows" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]">
145
      <fieldset class="rows" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]">
153
      <legend>Matchpoint components</legend>
146
      <legend>[% t('Matchpoint components') %]</legend>
154
        <ol>
147
        <ol>
155
          <li>
148
          <li>
156
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag">Tag: </label>
149
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag">[% t('Tag:') %] </label>
157
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag" 
150
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag" name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag" value="[% component.tag |html %]" size="3" maxlength="3" />
158
                   name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_tag" 
159
                   value="[% component.tag |html %]"
160
                   size="3" maxlength="3" />
161
          </li>
151
          </li>
162
          <li>
152
          <li>
163
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields">Subfields: </label>
153
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields">[% t('Subfields:') %] </label>
164
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields" 
154
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields" name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields" value="[% component.subfields |html %]" size="10" maxlength="40" />
165
                   name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_subfields" 
166
                   value="[% component.subfields |html %]"
167
                   size="10" maxlength="40" />
168
          </li>
155
          </li>
169
          <li>
156
          <li>
170
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset">Offset: </label>
157
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset">[% t('Offset:') %] </label>
171
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset" 
158
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset" name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset" value="[% component.offset |html %]" size="5" maxlength="5" />
172
                   name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_offset" 
173
                   value="[% component.offset |html %]"
174
                   size="5" maxlength="5" />
175
          </li>
159
          </li>
176
          <li>
160
          <li>
177
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length">Length: </label>
161
            <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length">[% t('Length:') %] </label>
178
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length" 
162
            <input type="text" id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length" name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length" value="[% component.length |html %]" size="5" maxlength="5" />
179
                   name="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_length" 
180
                   value="[% component.length |html %]"
181
                   size="5" maxlength="5" />
182
          </li>
163
          </li>
183
              [% FOREACH norm IN component.norms %]
164
              [% FOREACH norm IN component.norms %]
184
              <li id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_n_[% norm.norm_num %]">
165
              <li id="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_n_[% norm.norm_num %]">
185
                <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_n__[% norm.norm_num %]_norm">Normalization rule: </label>
166
                <label for="mp_[% matchpoint.mp_num %]_c_[% component.comp_num %]_n__[% norm.norm_num %]_norm">[% t('Normalization rule:') %] </label>
186
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
167
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
187
                [% PROCESS norms_select selected_norm=norm.norm id="mp_${norm.mp_num}_c_${component.comp_num}_n__${norm.norm_num}_norm" name="mp_${matchpoint.mp_num}_c_${component.comp_num}_n_${norm.norm_num}_norm" %]
168
                [% PROCESS norms_select selected_norm=norm.norm id="mp_${norm.mp_num}_c_${component.comp_num}_n__${norm.norm_num}_norm" name="mp_${matchpoint.mp_num}_c_${component.comp_num}_n_${norm.norm_num}_norm" %]
188
              </li>
169
              </li>
Lines 199-237 Link Here
199
  [% ELSE %]
180
  [% ELSE %]
200
  <div id="mp_1" class="matchgroup">
181
  <div id="mp_1" class="matchgroup">
201
  <fieldset class="rows">
182
  <fieldset class="rows">
202
    <legend>Match point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
183
    <legend>[% t('Match point 1 |') %] <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">[% t('Add match point') %]</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">[% t('Remove this match point') %]</a></legend>
203
    <ol>
184
    <ol>
204
      <li>
185
      <li>
205
        <label for="mp_1_search_index">Search index: </label>
186
        <label for="mp_1_search_index">[% t('Search index:') %] </label>
206
        <input type ="text" id="mp_1_search_index" name="mp_1_search_index" size="20" 
187
        <input type="text" id="mp_1_search_index" name="mp_1_search_index" size="20" maxlength="30" />
207
          maxlength="30" />
208
      </li>
188
      </li>
209
      <li>
189
      <li>
210
        <label for="mp_1_score">Score: </label>
190
        <label for="mp_1_score">[% t('Score:') %] </label>
211
        <input type ="text" id="mp_1_score" name="mp_1_score" size="5" maxlength="5" />
191
        <input type="text" id="mp_1_score" name="mp_1_score" size="5" maxlength="5" />
212
      </li>
192
      </li>
213
    </ol>
193
    </ol>
214
    <fieldset class="rows" id="mp_1_c_1">
194
    <fieldset class="rows" id="mp_1_c_1">
215
      <legend>Matchpoint components</legend>
195
      <legend>[% t('Matchpoint components') %]</legend>
216
        <ol>
196
        <ol>
217
          <li>
197
          <li>
218
            <label for="mp_1_c_1_tag">Tag: </label>
198
            <label for="mp_1_c_1_tag">[% t('Tag:') %] </label>
219
            <input type="text" id="mp_1_c_1_tag" name="mp_1_c_1_tag" size="3" maxlength="3" />
199
            <input type="text" id="mp_1_c_1_tag" name="mp_1_c_1_tag" size="3" maxlength="3" />
220
          </li>
200
          </li>
221
          <li>
201
          <li>
222
            <label for="mp_1_c_1_subfields">Subfields: </label>
202
            <label for="mp_1_c_1_subfields">[% t('Subfields:') %] </label>
223
            <input type="text" id="mp_1_c_1_subfields" name="mp_1_c_1_subfields" size="10" maxlength="40" />
203
            <input type="text" id="mp_1_c_1_subfields" name="mp_1_c_1_subfields" size="10" maxlength="40" />
224
          </li>
204
          </li>
225
          <li>
205
          <li>
226
            <label for="mp_1_c_1_offset">Offset: </label>
206
            <label for="mp_1_c_1_offset">[% t('Offset:') %] </label>
227
            <input type="text" id="mp_1_c_1_offset" name="mp_1_c_1_offset" size="5" maxlength="5" />
207
            <input type="text" id="mp_1_c_1_offset" name="mp_1_c_1_offset" size="5" maxlength="5" />
228
          </li>
208
          </li>
229
          <li>
209
          <li>
230
            <label for="mp_1_c_1_length">Length: </label>
210
            <label for="mp_1_c_1_length">[% t('Length:') %] </label>
231
            <input type="text" id="mp_1_c_1_length" name="mp_1_c_1_length" size="5" maxlength="5" />
211
            <input type="text" id="mp_1_c_1_length" name="mp_1_c_1_length" size="5" maxlength="5" />
232
          </li>
212
          </li>
233
            <li id="mp_1_c_1_n_1">
213
            <li id="mp_1_c_1_n_1">
234
              <label for="mp_1_c_1_n_1_norm">Normalization rule: </label>
214
              <label for="mp_1_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
235
                [% PROCESS norms_select selected_norm="none" id="mp_1_c_1_n_1_norm" name="mp_1_c_1_n_1_norm" %]
215
                [% PROCESS norms_select selected_norm="none" id="mp_1_c_1_n_1_norm" name="mp_1_c_1_n_1_norm" %]
236
            </li>
216
            </li>
237
        </ol>
217
        </ol>
Lines 244-294 Link Here
244
  [% END %]
224
  [% END %]
245
225
246
  <fieldset class="rows" id="match_checks">
226
  <fieldset class="rows" id="match_checks">
247
  <h4>Required match checks</h4>
227
  <h4>[% t('Required match checks') %]</h4>
248
  [% IF ( edit_matching_rule ) %]
228
  [% IF ( edit_matching_rule ) %]
249
  [% IF ( matchchecks ) %]<p id="addMatchCheck" style="display:none;">[% ELSE %]<p id="addMatchCheck">[% END %]<a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a></p>
229
  [% IF ( matchchecks ) %]<p id="addMatchCheck" style="display:none;">[% ELSE %]<p id="addMatchCheck">[% END %]<a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">[% t('Add match check') %]</a></p>
250
  [% ELSE %]<p id="addMatchCheck" style="display:none;"><a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a></p>[% END %]
230
  [% ELSE %]<p id="addMatchCheck" style="display:none;"><a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">[% t('Add match check') %]</a></p>[% END %]
251
  [% IF ( edit_matching_rule ) %]
231
  [% IF ( edit_matching_rule ) %]
252
  [% FOREACH matchcheck IN matchchecks %]
232
  [% FOREACH matchcheck IN matchchecks %]
253
  <div id="mc_[% matchcheck.mc_num %]" class="matchgroup">
233
  <div id="mc_[% matchcheck.mc_num %]" class="matchgroup">
254
  <fieldset class="rows">
234
  <fieldset class="rows">
255
    <legend>Match check [% matchcheck.mc_num %]<a href="#" class="button" onclick="InsertMatchcheck('mc_[% matchcheck.mc_num %]', 'mc_template'); return false;">Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
235
    <legend>[% t('Match check') %] [% matchcheck.mc_num %]<a href="#" class="button" onclick="InsertMatchcheck('mc_[% matchcheck.mc_num %]', 'mc_template'); return false;">[% t('Add match check') %]</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">[% t('Remove this match check') %]</a></legend>
256
    <input type="hidden" id="mc_[% matchcheck.mc_num %]_id" name="mc_[% matchcheck.mc_num %]_id" value="1" />
236
    <input type="hidden" id="mc_[% matchcheck.mc_num %]_id" name="mc_[% matchcheck.mc_num %]_id" value="1" />
257
      [% FOREACH src_component IN matchcheck.src_components %]
237
      [% FOREACH src_component IN matchcheck.src_components %]
258
      <fieldset class="rows" id="mc_[% src_component.mc_num %]_src_c_[% src_component.comp_num %]">
238
      <fieldset class="rows" id="mc_[% src_component.mc_num %]_src_c_[% src_component.comp_num %]">
259
        <legend>Source (incoming) record check field</legend>
239
        <legend>[% t('Source (incoming) record check field') %]</legend>
260
        <ol>
240
        <ol>
261
          <li>
241
          <li>
262
            <label for="mc_[% src_component.mc_num %]_src_c_[% src_component.comp_num %]_tag">Tag: </label>
242
            <label for="mc_[% src_component.mc_num %]_src_c_[% src_component.comp_num %]_tag">[% t('Tag:') %] </label>
263
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_tag" 
243
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_tag" name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_tag" value="[% src_component.tag |html %]" size="3" maxlength="3" />
264
                   name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_tag" 
265
                   value="[% src_component.tag |html %]"
266
                   size="3" maxlength="3" />
267
          </li>
244
          </li>
268
          <li>
245
          <li>
269
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields">Subfields: </label>
246
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields">[% t('Subfields:') %] </label>
270
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields" 
247
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields" name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields" value="[% src_component.subfields |html %]" size="10" maxlength="40" />
271
                   name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_subfields" 
272
                   value="[% src_component.subfields |html %]"
273
                   size="10" maxlength="40" />
274
          </li>
248
          </li>
275
          <li>
249
          <li>
276
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset">Offset: </label>
250
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset">[% t('Offset:') %] </label>
277
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset" 
251
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset" name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset" value="[% src_component.offset |html %]" size="5" maxlength="5" />
278
                   name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_offset" 
279
                   value="[% src_component.offset |html %]"
280
                   size="5" maxlength="5" />
281
          </li>
252
          </li>
282
          <li>
253
          <li>
283
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length">Length: </label>
254
            <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length">[% t('Length:') %] </label>
284
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length" 
255
            <input type="text" id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length" name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length" value="[% src_component.length |html %]" size="5" maxlength="5" />
285
                   name="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_length" 
286
                   value="[% src_component.length |html %]"
287
                   size="5" maxlength="5" />
288
          </li>
256
          </li>
289
          [% FOREACH norm IN src_component.norms %]
257
          [% FOREACH norm IN src_component.norms %]
290
            <li id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_n_[% norm.norm_num %]">
258
            <li id="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_n_[% norm.norm_num %]">
291
              <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_n_[% norm.norm_num %]_norm">Normalization rule: </label>
259
              <label for="mc_[% matchcheck.mc_num %]_src_c_[% src_component.comp_num %]_n_[% norm.norm_num %]_norm">[% t('Normalization rule:') %] </label>
292
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
260
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
293
                [% PROCESS norms_select selected_norm=norm.norm id="mc_${matchcheck.mc_num}_src_c_${src_component.comp_num}_n_${norm.norm_num}_norm" name="mc_${matchcheck.mc_num}_src_c_${src_component.comp_num}_n_${norm.norm_num}_norm" %]
261
                [% PROCESS norms_select selected_norm=norm.norm id="mc_${matchcheck.mc_num}_src_c_${src_component.comp_num}_n_${norm.norm_num}_norm" name="mc_${matchcheck.mc_num}_src_c_${src_component.comp_num}_n_${norm.norm_num}_norm" %]
294
            </li>
262
            </li>
Lines 298-336 Link Here
298
      [% END %]
266
      [% END %]
299
      [% FOREACH tgt_component IN matchcheck.tgt_components %]
267
      [% FOREACH tgt_component IN matchcheck.tgt_components %]
300
      <fieldset class="rows" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]">
268
      <fieldset class="rows" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]">
301
        <legend>Target (database) record check field</legend>
269
        <legend>[% t('Target (database) record check field') %]</legend>
302
        <ol>
270
        <ol>
303
          <li>
271
          <li>
304
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag">Tag: </label>
272
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag">[% t('Tag:') %] </label>
305
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag" 
273
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag" name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag" value="[% tgt_component.tag |html %]" size="3" maxlength="3" />
306
                   name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_tag" 
307
                   value="[% tgt_component.tag |html %]"
308
                   size="3" maxlength="3" />
309
          </li>
274
          </li>
310
          <li>
275
          <li>
311
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields">Subfields: </label>
276
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields">[% t('Subfields:') %] </label>
312
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields" 
277
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields" name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields" value="[% tgt_component.subfields |html %]" size="10" maxlength="40" />
313
                   name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_subfields" 
314
                   value="[% tgt_component.subfields |html %]"
315
                   size="10" maxlength="40" />
316
          </li>
278
          </li>
317
          <li>
279
          <li>
318
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset">Offset: </label>
280
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset">[% t('Offset:') %] </label>
319
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset" 
281
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset" name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset" value="[% tgt_component.offset |html %]" size="5" maxlength="5" />
320
                   name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_offset" 
321
                   value="[% tgt_component.offset |html %]"
322
                   size="5" maxlength="5" />
323
          </li>
282
          </li>
324
          <li>
283
          <li>
325
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length">Length: </label>
284
            <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length">[% t('Length:') %] </label>
326
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length" 
285
            <input type="text" id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length" name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length" value="[% tgt_component.length |html %]" size="5" maxlength="5" />
327
                   name="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_length" 
328
                   value="[% tgt_component.length |html %]"
329
                   size="5" maxlength="5" />
330
          </li>
286
          </li>
331
          [% FOREACH norm IN tgt_component.norms %]
287
          [% FOREACH norm IN tgt_component.norms %]
332
            <li id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_n_[% norm.norm_num %]">
288
            <li id="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_n_[% norm.norm_num %]">
333
              <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_n_[% norm.norm_num %]_norm">Normalization rule: </label>
289
              <label for="mc_[% matchcheck.mc_num %]_tgt_c_[% tgt_component.comp_num %]_n_[% norm.norm_num %]_norm">[% t('Normalization rule:') %] </label>
334
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
290
                [%# Note: Following directive in one line, otherwise we have translatabiltiy problems %]
335
                [% PROCESS norms_select selected_norm=norm.norm id="mc_${matchcheck.mc_num}_tgt_c_${tgt_component.comp_num}_n_${norm.norm_num}_norm" name="mc_${matchcheck.mc_num}_tgt_c_${tgt_component.comp_num}_n_${norm.norm_num}_norm" %]
291
                [% PROCESS norms_select selected_norm=norm.norm id="mc_${matchcheck.mc_num}_tgt_c_${tgt_component.comp_num}_n_${norm.norm_num}_norm" name="mc_${matchcheck.mc_num}_tgt_c_${tgt_component.comp_num}_n_${norm.norm_num}_norm" %]
336
            </li>
292
            </li>
Lines 345-399 Link Here
345
  [% ELSE %]
301
  [% ELSE %]
346
  <div id="mc_1" class="matchgroup">
302
  <div id="mc_1" class="matchgroup">
347
  <fieldset class="rows">
303
  <fieldset class="rows">
348
    <legend>Match check 1 | <a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">Add match check</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
304
    <legend>[% t('Match check 1 |') %] <a href="#" class="button" onclick="InsertMatchcheck('mc_1', 'mc_template'); return false;">[% t('Add match check') %]</a> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">[% t('Remove this match check') %]</a></legend>
349
    <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
305
    <input type="hidden" id="mc_1_id" name="mc_1_id" value="1" />
350
      <fieldset class="rows" id="mc_1_src_c_1">
306
      <fieldset class="rows" id="mc_1_src_c_1">
351
        <legend>Source (incoming) record check field</legend>
307
        <legend>[% t('Source (incoming) record check field') %]</legend>
352
        <ol>
308
        <ol>
353
          <li>
309
          <li>
354
            <label for="mc_1_src_c_1_tag">Tag: </label>
310
            <label for="mc_1_src_c_1_tag">[% t('Tag:') %] </label>
355
            <input type="text" id="mc_1_src_c_1_tag" name="mc_1_src_c_1_tag" size="3" maxlength="3" />
311
            <input type="text" id="mc_1_src_c_1_tag" name="mc_1_src_c_1_tag" size="3" maxlength="3" />
356
          </li>
312
          </li>
357
          <li>
313
          <li>
358
            <label for="mc_1_src_c_1_subfields">Subfields: </label>
314
            <label for="mc_1_src_c_1_subfields">[% t('Subfields:') %] </label>
359
            <input type="text" id="mc_1_src_c_1_subfields" name="mc_1_src_c_1_subfields" size="10" maxlength="40" />
315
            <input type="text" id="mc_1_src_c_1_subfields" name="mc_1_src_c_1_subfields" size="10" maxlength="40" />
360
          </li>
316
          </li>
361
          <li>
317
          <li>
362
            <label for="mc_1_src_c_1_offset">Offset: </label>
318
            <label for="mc_1_src_c_1_offset">[% t('Offset:') %] </label>
363
            <input type="text" id="mc_1_src_c_1_offset" name="mc_1_src_c_1_offset" size="5" maxlength="5" />
319
            <input type="text" id="mc_1_src_c_1_offset" name="mc_1_src_c_1_offset" size="5" maxlength="5" />
364
          </li>
320
          </li>
365
          <li>
321
          <li>
366
            <label for="mc_1_src_c_1_length">Length: </label>
322
            <label for="mc_1_src_c_1_length">[% t('Length:') %] </label>
367
            <input type="text" id="mc_1_src_c_1_length" name="mc_1_src_c_1_length" size="5" maxlength="5" />
323
            <input type="text" id="mc_1_src_c_1_length" name="mc_1_src_c_1_length" size="5" maxlength="5" />
368
          </li>
324
          </li>
369
            <li id="mc_1_src_c_1_n_1">
325
            <li id="mc_1_src_c_1_n_1">
370
              <label for="mc_1_src_c_1_n_1_norm">Normalization rule: </label>
326
              <label for="mc_1_src_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
371
                [% PROCESS norms_select selected_norm="none" id="mc_1_src_c_1_n_1_norm" name="mc_1_src_c_1_n_1_norm" %]
327
                [% PROCESS norms_select selected_norm="none" id="mc_1_src_c_1_n_1_norm" name="mc_1_src_c_1_n_1_norm" %]
372
            </li>
328
            </li>
373
        </ol>
329
        </ol>
374
      </fieldset>
330
      </fieldset>
375
331
376
      <fieldset class="rows" id="mc_1_tgt_c_1">
332
      <fieldset class="rows" id="mc_1_tgt_c_1">
377
        <legend>Target (database) record check field</legend>
333
        <legend>[% t('Target (database) record check field') %]</legend>
378
        <ol>
334
        <ol>
379
          <li>
335
          <li>
380
            <label for="mc_1_tgt_c_1_tag">Tag: </label>
336
            <label for="mc_1_tgt_c_1_tag">[% t('Tag:') %] </label>
381
            <input type="text" id="mc_1_tgt_c_1_tag" name="mc_1_tgt_c_1_tag" size="3" maxlength="3" />
337
            <input type="text" id="mc_1_tgt_c_1_tag" name="mc_1_tgt_c_1_tag" size="3" maxlength="3" />
382
          </li>
338
          </li>
383
          <li>
339
          <li>
384
            <label for="mc_1_tgt_c_1_subfields">Subfields: </label>
340
            <label for="mc_1_tgt_c_1_subfields">[% t('Subfields:') %] </label>
385
            <input type="text" id="mc_1_tgt_c_1_subfields" name="mc_1_tgt_c_1_subfields" size="10" maxlength="40" />
341
            <input type="text" id="mc_1_tgt_c_1_subfields" name="mc_1_tgt_c_1_subfields" size="10" maxlength="40" />
386
          </li>
342
          </li>
387
          <li>
343
          <li>
388
            <label for="mc_1_tgt_c_1_offset">Offset: </label>
344
            <label for="mc_1_tgt_c_1_offset">[% t('Offset:') %] </label>
389
            <input type="text" id="mc_1_tgt_c_1_offset" name="mc_1_tgt_c_1_offset" size="5" maxlength="5" />
345
            <input type="text" id="mc_1_tgt_c_1_offset" name="mc_1_tgt_c_1_offset" size="5" maxlength="5" />
390
          </li>
346
          </li>
391
          <li>
347
          <li>
392
            <label for="mc_1_tgt_c_1_length">Length: </label>
348
            <label for="mc_1_tgt_c_1_length">[% t('Length:') %] </label>
393
            <input type="text" id="mc_1_tgt_c_1_length" name="mc_1_tgt_c_1_length" size="5" maxlength="5" />
349
            <input type="text" id="mc_1_tgt_c_1_length" name="mc_1_tgt_c_1_length" size="5" maxlength="5" />
394
          </li>
350
          </li>
395
            <li id="mc_1_tgt_c_1_n_1">
351
            <li id="mc_1_tgt_c_1_n_1">
396
              <label for="mc_1_tgt_c_1_n_1_norm">Normalization rule: </label>
352
              <label for="mc_1_tgt_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
397
                [% PROCESS norms_select selected_norm="none" id="mc_1_tgt_c_1_n_1_norm" name="mc_1_tgt_c_1_n_1_norm" %]
353
                [% PROCESS norms_select selected_norm="none" id="mc_1_tgt_c_1_n_1_norm" name="mc_1_tgt_c_1_n_1_norm" %]
398
            </li>
354
            </li>
399
        </ol>
355
        </ol>
Lines 405-431 Link Here
405
  </fieldset>
361
  </fieldset>
406
  <fieldset class="action">
362
  <fieldset class="action">
407
    [% IF ( edit_matching_rule ) %]
363
    [% IF ( edit_matching_rule ) %]
408
    <input type="button" value="Save"
364
    <input type="button" value="Save" onclick="CheckMatchingRuleForm(this.form)" />
409
           onclick="CheckMatchingRuleForm(this.form)" />
410
    [% ELSE %]
365
    [% ELSE %]
411
    <input type="button" value="Save"
366
    <input type="button" value="Save" onclick="CheckMatchingRuleForm(this.form)" />
412
           onclick="CheckMatchingRuleForm(this.form)" />
413
    [% END %]
367
    [% END %]
414
    <a class="cancel" href="/cgi-bin/koha/admin/matching-rules.pl">Cancel</a>
368
    <a class="cancel" href="/cgi-bin/koha/admin/matching-rules.pl">[% t('Cancel') %]</a>
415
  </fieldset>
369
  </fieldset>
416
</form>
370
</form>
417
[% END %]
371
[% END %]
418
372
419
[% IF ( delete_matching_rule_form ) %]
373
[% IF ( delete_matching_rule_form ) %]
420
    <div class="dialog alert">
374
    <div class="dialog alert">
421
        <h3>Confirm deletion of record matching rule <span class="ex">'[% code %]' ([% description %])</span>?</h3>
375
        <h3>[% t('Confirm deletion of record matching rule') %] <span class="ex">'[% code %]' ([% description %])</span>?</h3>
422
        <form action="[% script_name %]" name="Aform" method="post">
376
        <form action="[% script_name %]" name="Aform" method="post">
423
            <input type="hidden" name="op" value="[% confirm_op %]" />
377
            <input type="hidden" name="op" value="[% confirm_op %]" />
424
            <input type="hidden" name="matcher_id" value="[% matcher_id %]" />
378
            <input type="hidden" name="matcher_id" value="[% matcher_id %]" />
425
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete record matching rule</button>
379
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete record matching rule') %]</button>
426
        </form>
380
        </form>
427
        <form action="[% script_name %]" method="get">
381
        <form action="[% script_name %]" method="get">
428
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
382
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
429
        </form>
383
        </form>
430
    </div>
384
    </div>
431
[% END %]
385
[% END %]
Lines 433-457 Link Here
433
[% IF ( display_list ) %]
387
[% IF ( display_list ) %]
434
388
435
<div id="toolbar" class="btn-toolbar">
389
<div id="toolbar" class="btn-toolbar">
436
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_matching_rule"><i class="fa fa-plus"></i> New record matching rule</a>
390
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_matching_rule"><i class="fa fa-plus"></i> [% t('New record matching rule') %]</a>
437
</div>
391
</div>
438
392
439
<h2>Record matching rules</h2>
393
<h2>[% t('Record matching rules') %]</h2>
440
[% IF ( added_matching_rule ) %]
394
[% IF ( added_matching_rule ) %]
441
<div class="dialog message">Added record matching rule &quot;[% added_matching_rule %]&quot;</div>
395
<div class="dialog message">[% t('Added record matching rule &#34;') %][% added_matching_rule %]"</div>
442
[% END %]
396
[% END %]
443
[% IF ( edited_matching_rule ) %]
397
[% IF ( edited_matching_rule ) %]
444
<div class="dialog message">Modified record matching rule &quot;[% edited_matching_rule %]&quot;</div>
398
<div class="dialog message">[% t('Modified record matching rule &#34;') %][% edited_matching_rule %]"</div>
445
[% END %]
399
[% END %]
446
[% IF ( deleted_matching_rule ) %]
400
[% IF ( deleted_matching_rule ) %]
447
<div class="dialog message">Deleted record matching rule &quot;[% deleted_matching_rule %]&quot;</div>
401
<div class="dialog message">[% t('Deleted record matching rule &#34;') %][% deleted_matching_rule %]"</div>
448
[% END %]
402
[% END %]
449
[% IF ( available_matching_rules ) %]<table>
403
[% IF ( available_matching_rules ) %]<table>
450
  <tr>
404
  <tr>
451
    <th>#</th>
405
    <th>#</th>
452
    <th>Code</th>
406
    <th>[% t('Code') %]</th>
453
    <th>Description</th>
407
    <th>[% t('Description') %]</th>
454
    <th>Actions</th>
408
    <th>[% t('Actions') %]</th>
455
  </tr>
409
  </tr>
456
  [% FOREACH available_matching_rule IN available_matching_rules %]
410
  [% FOREACH available_matching_rule IN available_matching_rules %]
457
  <tr>
411
  <tr>
Lines 459-470 Link Here
459
    <td>[% available_matching_rule.code %]</td>
413
    <td>[% available_matching_rule.code %]</td>
460
    <td>[% available_matching_rule.description |html %]</td>
414
    <td>[% available_matching_rule.description |html %]</td>
461
    <td class="actions">
415
    <td class="actions">
462
      <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name %]?op=edit_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-pencil"></i> Edit</a>
416
      <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name %]?op=edit_matching_rule&matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
463
      <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name %]?op=delete_matching_rule&amp;matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-trash"></i> Delete</a>
417
      <a class="btn btn-default btn-xs" href="[% available_matching_rule.script_name %]?op=delete_matching_rule&matcher_id=[% available_matching_rule.matcher_id |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
464
    </td>
418
    </td>
465
  </tr>
419
  </tr>
466
  [% END %]
420
  [% END %]
467
</table>[% ELSE %]<p>There are no saved matching rules.</p>[% END %]
421
</table>[% ELSE %]<p>[% t('There are no saved matching rules.') %]</p>[% END %]
468
422
469
<div class="pages">[% pagination_bar %]</div>
423
<div class="pages">[% pagination_bar %]</div>
470
424
Lines 472-510 Link Here
472
 [% IF ( matching_rule_form ) %]
426
 [% IF ( matching_rule_form ) %]
473
<div id="mp_template" class="matchgroup" style="display:none;">
427
<div id="mp_template" class="matchgroup" style="display:none;">
474
  <fieldset class="rows">
428
  <fieldset class="rows">
475
    <legend>Match point <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
429
    <legend>[% t('Match point') %] <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">[% t('Remove this match point') %]</a></legend>
476
    <ol>
430
    <ol>
477
      <li>
431
      <li>
478
        <label for="mp_num_search_index">Search index: </label>
432
        <label for="mp_num_search_index">[% t('Search index:') %] </label>
479
        <input type ="text" id="mp_num_search_index" name="mp_num_search_index" size="20" 
433
        <input type="text" id="mp_num_search_index" name="mp_num_search_index" size="20" maxlength="30" />
480
          maxlength="30" />
481
      </li>
434
      </li>
482
      <li>
435
      <li>
483
        <label for="mp_num_score">Score: </label>
436
        <label for="mp_num_score">[% t('Score:') %] </label>
484
        <input type ="text" id="mp_num_score" name="mp_num_score" size="5" maxlength="5" />
437
        <input type="text" id="mp_num_score" name="mp_num_score" size="5" maxlength="5" />
485
      </li>
438
      </li>
486
    </ol>
439
    </ol>
487
      <fieldset id="mp_num_c_1" class="rows">
440
      <fieldset id="mp_num_c_1" class="rows">
488
      <legend>Matchpoint components</legend>
441
      <legend>[% t('Matchpoint components') %]</legend>
489
        <ol>
442
        <ol>
490
          <li>
443
          <li>
491
            <label for="mp_num_c_1_tag">Tag: </label>
444
            <label for="mp_num_c_1_tag">[% t('Tag:') %] </label>
492
            <input type="text" id="mp_num_c_1_tag" name="mp_num_c_1_tag" size="3" maxlength="3" />
445
            <input type="text" id="mp_num_c_1_tag" name="mp_num_c_1_tag" size="3" maxlength="3" />
493
          </li>
446
          </li>
494
          <li>
447
          <li>
495
            <label for="mp_num_c_1_subfields">Subfields: </label>
448
            <label for="mp_num_c_1_subfields">[% t('Subfields:') %] </label>
496
            <input type="text" id="mp_num_c_1_subfields" name="mp_num_c_1_subfields" size="10" maxlength="40" />
449
            <input type="text" id="mp_num_c_1_subfields" name="mp_num_c_1_subfields" size="10" maxlength="40" />
497
          </li>
450
          </li>
498
          <li>
451
          <li>
499
            <label for="mp_num_c_1_offset">Offset: </label>
452
            <label for="mp_num_c_1_offset">[% t('Offset:') %] </label>
500
            <input type="text" id="mp_num_c_1_offset" name="mp_num_c_1_offset" size="5" maxlength="5" />
453
            <input type="text" id="mp_num_c_1_offset" name="mp_num_c_1_offset" size="5" maxlength="5" />
501
          </li>
454
          </li>
502
          <li>
455
          <li>
503
            <label for="mp_num_c_1_length">Length: </label>
456
            <label for="mp_num_c_1_length">[% t('Length:') %] </label>
504
            <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
457
            <input type="text" id="mp_num_c_1_length" name="mp_num_c_1_length" size="5" maxlength="5" />
505
          </li>
458
          </li>
506
            <li id="mp_num_c_1_n_1">
459
            <li id="mp_num_c_1_n_1">
507
              <label for="mp_num_c_1_n_1_norm">Normalization rule: </label>
460
              <label for="mp_num_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
508
                [% PROCESS norms_select selected_norm="none" id="mp_num_c_1_n_1_norm" name="mp_num_c_1_n_1_norm" %]
461
                [% PROCESS norms_select selected_norm="none" id="mp_num_c_1_n_1_norm" name="mp_num_c_1_n_1_norm" %]
509
            </li>
462
            </li>
510
        </ol>
463
        </ol>
Lines 515-568 Link Here
515
468
516
<div id="mc_template" class="matchgroup" style="display:none">
469
<div id="mc_template" class="matchgroup" style="display:none">
517
<fieldset class="rows">
470
<fieldset class="rows">
518
  <legend>Match check <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">Remove this match check</a></legend>
471
  <legend>[% t('Match check') %] <span class="counter"></span> | <a href="#" class="button" onclick="DeleteMatchcheck(this); return false;">[% t('Remove this match check') %]</a></legend>
519
  <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
472
  <input type="hidden" id="mc_num_id" name="mc_num_id" value="1" />
520
    <fieldset class="rows" id="mc_num_src_c_1">
473
    <fieldset class="rows" id="mc_num_src_c_1">
521
      <legend>Source (incoming) record check field</legend>
474
      <legend>[% t('Source (incoming) record check field') %]</legend>
522
      <ol>
475
      <ol>
523
        <li>
476
        <li>
524
          <label for="mc_num_src_c_1_tag">Tag: </label>
477
          <label for="mc_num_src_c_1_tag">[% t('Tag:') %] </label>
525
          <input type="text" id="mc_num_src_c_1_tag" name="mc_num_src_c_1_tag" size="3" maxlength="3" />
478
          <input type="text" id="mc_num_src_c_1_tag" name="mc_num_src_c_1_tag" size="3" maxlength="3" />
526
        </li>
479
        </li>
527
        <li>
480
        <li>
528
          <label for="mc_num_src_c_1_subfields">Subfields: </label>
481
          <label for="mc_num_src_c_1_subfields">[% t('Subfields:') %] </label>
529
          <input type="text" id="mc_num_src_c_1_subfields" name="mc_num_src_c_1_subfields" size="10" maxlength="40" />
482
          <input type="text" id="mc_num_src_c_1_subfields" name="mc_num_src_c_1_subfields" size="10" maxlength="40" />
530
        </li>
483
        </li>
531
        <li>
484
        <li>
532
          <label for="mc_num_src_c_1_offset">Offset: </label>
485
          <label for="mc_num_src_c_1_offset">[% t('Offset:') %] </label>
533
          <input type="text" id="mc_num_src_c_1_offset" name="mc_num_src_c_1_offset" size="5" maxlength="5" />
486
          <input type="text" id="mc_num_src_c_1_offset" name="mc_num_src_c_1_offset" size="5" maxlength="5" />
534
        </li>
487
        </li>
535
        <li>
488
        <li>
536
          <label for="mc_num_src_c_1_length">Length: </label>
489
          <label for="mc_num_src_c_1_length">[% t('Length:') %] </label>
537
          <input type="text" id="mc_num_src_c_1_length" name="mc_num_src_c_1_length" size="5" maxlength="5" />
490
          <input type="text" id="mc_num_src_c_1_length" name="mc_num_src_c_1_length" size="5" maxlength="5" />
538
        </li>
491
        </li>
539
          <li id="mc_num_src_c_1_n_1">
492
          <li id="mc_num_src_c_1_n_1">
540
            <label for="mc_num_src_c_1_n_1_norm">Normalization rule: </label>
493
            <label for="mc_num_src_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
541
               [% PROCESS norms_select selected_norm="none" id="mc_num_src_c_1_n_1_norm" name="mc_num_src_c_1_n_1_norm" %]
494
               [% PROCESS norms_select selected_norm="none" id="mc_num_src_c_1_n_1_norm" name="mc_num_src_c_1_n_1_norm" %]
542
          </li>
495
          </li>
543
      </ol>
496
      </ol>
544
    </fieldset>
497
    </fieldset>
545
    <fieldset class="rows" id="mc_num_tgt_c_1">
498
    <fieldset class="rows" id="mc_num_tgt_c_1">
546
      <legend>Target (database) record check field</legend>
499
      <legend>[% t('Target (database) record check field') %]</legend>
547
      <ol>
500
      <ol>
548
        <li>
501
        <li>
549
          <label for="mc_num_tgt_c_1_tag">Tag: </label>
502
          <label for="mc_num_tgt_c_1_tag">[% t('Tag:') %] </label>
550
          <input type="text" id="mc_num_tgt_c_1_tag" name="mc_num_tgt_c_1_tag" size="3" maxlength="3" />
503
          <input type="text" id="mc_num_tgt_c_1_tag" name="mc_num_tgt_c_1_tag" size="3" maxlength="3" />
551
        </li>
504
        </li>
552
        <li>
505
        <li>
553
          <label for="mc_num_tgt_c_1_subfields">Subfields: </label>
506
          <label for="mc_num_tgt_c_1_subfields">[% t('Subfields:') %] </label>
554
          <input type="text" id="mc_num_tgt_c_1_subfields" name="mc_num_tgt_c_1_subfields" size="10" maxlength="40" />
507
          <input type="text" id="mc_num_tgt_c_1_subfields" name="mc_num_tgt_c_1_subfields" size="10" maxlength="40" />
555
        </li>
508
        </li>
556
        <li>
509
        <li>
557
          <label for="mc_num_tgt_c_1_offset">Offset: </label>
510
          <label for="mc_num_tgt_c_1_offset">[% t('Offset:') %] </label>
558
          <input type="text" id="mc_num_tgt_c_1_offset" name="mc_num_tgt_c_1_offset" size="5" maxlength="5" />
511
          <input type="text" id="mc_num_tgt_c_1_offset" name="mc_num_tgt_c_1_offset" size="5" maxlength="5" />
559
        </li>
512
        </li>
560
        <li>
513
        <li>
561
          <label for="mc_num_tgt_c_1_length">Length: </label>
514
          <label for="mc_num_tgt_c_1_length">[% t('Length:') %] </label>
562
          <input type="text" id="mc_num_tgt_c_1_length" name="mc_num_tgt_c_1_length" size="5" maxlength="5" />
515
          <input type="text" id="mc_num_tgt_c_1_length" name="mc_num_tgt_c_1_length" size="5" maxlength="5" />
563
        </li>
516
        </li>
564
          <li id="mc_num_tgt_c_1_n_1">
517
          <li id="mc_num_tgt_c_1_n_1">
565
            <label for="mc_num_tgt_c_1_n_1_norm">Normalization rule: </label>
518
            <label for="mc_num_tgt_c_1_n_1_norm">[% t('Normalization rule:') %] </label>
566
               [% PROCESS norms_select selected_norm="none" id="mc_num_tgt_c_1_n_1_norm" name="mc_num_tgt_c_1_n_1_norm" %]
519
               [% PROCESS norms_select selected_norm="none" id="mc_num_tgt_c_1_n_1_norm" name="mc_num_tgt_c_1_n_1_norm" %]
567
          </li>
520
          </li>
568
      </ol>
521
      </ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt (-25 / +26 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; OAI sets &rsaquo; OAI set mappings</title>
5
<title>[% t('Koha › Administration › OAI sets › OAI set mappings') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
12
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; <a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a> &rsaquo; <a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% id %]">OAI set mappings</a></div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › <a href="/cgi-bin/koha/admin/oai_sets.pl">[% t('OAI sets configuration') %]</a> › <a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% id %]">[% t('OAI set mappings') %]</a></div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
16
Lines 18-41 Link Here
18
    <div class="yui-b">
19
    <div class="yui-b">
19
      [% IF ( mappings_saved ) %]
20
      [% IF ( mappings_saved ) %]
20
        <div class="dialog message">
21
        <div class="dialog message">
21
          <h4>Mappings have been saved</h4>
22
          <h4>[% t('Mappings have been saved') %]</h4>
22
          <p><a href="/cgi-bin/koha/admin/oai_sets.pl">Return to sets management</a></p>
23
          <p><a href="/cgi-bin/koha/admin/oai_sets.pl">[% t('Return to sets management') %]</a></p>
23
        </div>
24
        </div>
24
      [% END %]
25
      [% END %]
25
      <h1>Mappings for set '[% setName |html %]' ([% setSpec |html %])</h1>
26
      <h1>[% t('Mappings for set \'') %][% setName |html %]' ([% setSpec |html %])</h1>
26
      [% UNLESS ( mappings ) %]
27
      [% UNLESS ( mappings ) %]
27
        <div class="dialog alert"><p><strong>Warning:</strong> No mappings have been defined for this set</p></div>
28
        <div class="dialog alert"><p><strong>[% t('Warning:') %]</strong> [% t('No mappings have been defined for this set') %]</p></div>
28
      [% END %]
29
      [% END %]
29
      <form action="/cgi-bin/koha/admin/oai_set_mappings.pl" method="post" id="mappingform">
30
      <form action="/cgi-bin/koha/admin/oai_set_mappings.pl" method="post" id="mappingform">
30
        <table id="mappings">
31
        <table id="mappings">
31
          <thead>
32
          <thead>
32
            <tr>
33
            <tr>
33
              <th>Field</th>
34
              <th>[% t('Field') %]</th>
34
              <th>Subfield</th>
35
              <th>[% t('Subfield') %]</th>
35
              <th>Operator</th>
36
              <th>[% t('Operator') %]</th>
36
              <th>Value</th>
37
              <th>[% t('Value') %]</th>
37
              <th>&nbsp;</th>
38
              <th> </th>
38
              <th>&nbsp;</th>
39
              <th> </th>
39
            </tr>
40
            </tr>
40
          </thead>
41
          </thead>
41
          <tbody>
42
          <tbody>
Lines 44-80 Link Here
44
                <tr>
45
                <tr>
45
                  <td><input type="text" name="marcfield" size="3" value="[% mapping.marcfield %]" /></td>
46
                  <td><input type="text" name="marcfield" size="3" value="[% mapping.marcfield %]" /></td>
46
                  <td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield %]" /></td>
47
                  <td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield %]" /></td>
47
                  <td><select name=operator>
48
                  <td><select name="operator">
48
                      [% IF mapping.operator == 'equal' %]
49
                      [% IF mapping.operator == 'equal' %]
49
                        <option value="equal" selected="selected">is equal to</option>
50
                        <option value="equal" selected="selected">[% t('is equal to') %]</option>
50
                        <option value="notequal">not equal to</option>
51
                        <option value="notequal">[% t('not equal to') %]</option>
51
                      [% ELSE %]
52
                      [% ELSE %]
52
                        <option value="equal">is equal to</option>
53
                        <option value="equal">[% t('is equal to') %]</option>
53
                        <option value="notequal" selected="selected">not equal to</option>
54
                        <option value="notequal" selected="selected">[% t('not equal to') %]</option>
54
                      [% END %]
55
                      [% END %]
55
                      </select></td>
56
                      </select></td>
56
                  <td><input type="text" name="marcvalue" value="[% mapping.marcvalue %]" /></td>
57
                  <td><input type="text" name="marcvalue" value="[% mapping.marcvalue %]" /></td>
57
                  <td style="text-align:center">
58
                  <td style="text-align:center">
58
                    [% IF ( loop.last ) %]
59
                    [% IF ( loop.last ) %]
59
                      <input type="button" id="ORbutton" value="OR" title="Add another condition" />
60
                      <input type="button" id="ORbutton" value="OR" title="[% t('Add another condition') %]" />
60
                    [% ELSE %]
61
                    [% ELSE %]
61
                      OR
62
                      [% t('OR') %]
62
                    [% END %]
63
                    [% END %]
63
                  </td>
64
                  </td>
64
                  <td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> Delete</button></td>
65
                  <td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> [% t('Delete') %]</button></td>
65
                </tr>
66
                </tr>
66
              [% END %]
67
              [% END %]
67
            [% ELSE %]
68
            [% ELSE %]
68
              <tr>
69
              <tr>
69
                <td><input type="text" name="marcfield" size="3" /></td>
70
                <td><input type="text" name="marcfield" size="3" /></td>
70
                <td style="text-align:center"><input type="text" name="marcsubfield" size="1" /></td>
71
                <td style="text-align:center"><input type="text" name="marcsubfield" size="1" /></td>
71
                <td><select name=operator>
72
                <td><select name="operator">
72
                    <option value="equal">is equal to</option>
73
                    <option value="equal">[% t('is equal to') %]</option>
73
                    <option value="notequal">not equal to</option>
74
                    <option value="notequal">[% t('not equal to') %]</option>
74
                    </select></td>
75
                    </select></td>
75
                <td><input type="text" name="marcvalue" /></td>
76
                <td><input type="text" name="marcvalue" /></td>
76
                <td><input type="button" id="ORbutton" value="OR" /></td>
77
                <td><input type="button" id="ORbutton" value="OR" /></td>
77
                <td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> Delete</button></td>
78
                <td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> [% t('Delete') %]</button></td>
78
              </tr>
79
              </tr>
79
            [% END %]
80
            [% END %]
80
          </tbody>
81
          </tbody>
Lines 82-88 Link Here
82
        <input type="hidden" name="id" value="[% id %]" />
83
        <input type="hidden" name="id" value="[% id %]" />
83
        <input type="hidden" name="op" value="save" />
84
        <input type="hidden" name="op" value="save" />
84
        <fieldset class="action">
85
        <fieldset class="action">
85
            <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/oai_sets.pl">Cancel</a>
86
            <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/oai_sets.pl">[% t('Cancel') %]</a>
86
        </fieldset>
87
        </fieldset>
87
      </form>
88
      </form>
88
89
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt (-24 / +25 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( op_new ) %]OAI sets configuration &rsaquo; Add a new OAI set[% ELSE %]OAI sets configuration[% END %]</title>
5
<title>[% t('Koha › Administration ›') %] [% IF ( op_new ) %][% t('OAI sets configuration › Add a new OAI set') %][% ELSE %][% t('OAI sets configuration') %][% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
12
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; [% IF ( op_new ) %]<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a> &rsaquo; Add a new OAI set[% ELSIF ( op_mod ) %]<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a> &rsaquo; Edit OAI set '[% spec |html %]'[% ELSE %] OAI sets configuration[% END %]</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF ( op_new ) %]<a href="/cgi-bin/koha/admin/oai_sets.pl">[% t('OAI sets configuration') %]</a> [% t('› Add a new OAI set') %][% ELSIF ( op_mod ) %]<a href="/cgi-bin/koha/admin/oai_sets.pl">[% t('OAI sets configuration') %]</a> [% t('› Edit OAI set \'') %][% spec |html %]'[% ELSE %] [% t('OAI sets configuration') %][% END %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
16
Lines 19-73 Link Here
19
        [% IF ( op_new || op_mod ) %]
20
        [% IF ( op_new || op_mod ) %]
20
            <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl" class="validated">
21
            <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl" class="validated">
21
            [% IF ( op_new ) %]
22
            [% IF ( op_new ) %]
22
                <h2>Add a new OAI set</h2>
23
                <h2>[% t('Add a new OAI set') %]</h2>
23
                <input type="hidden" name="op" value="savenew" />
24
                <input type="hidden" name="op" value="savenew" />
24
            [% ELSIF ( op_mod ) %]
25
            [% ELSIF ( op_mod ) %]
25
                <h2>Edit OAI set '[% spec |html %]'</h2>
26
                <h2>[% t('Edit OAI set \'') %][% spec |html %]'</h2>
26
                    <input type="hidden" name="op" value="savemod" />
27
                    <input type="hidden" name="op" value="savemod" />
27
                    <input type="hidden" name="id" value="[% id %]" />
28
                    <input type="hidden" name="id" value="[% id %]" />
28
            [% END %]
29
            [% END %]
29
                <fieldset id="oaidetails" class="rows">
30
                <fieldset id="oaidetails" class="rows">
30
                    <ol>
31
                    <ol>
31
                        <li>
32
                        <li>
32
                            <label for="spec" class="required">setSpec: </label>
33
                            <label for="spec" class="required">[% t('setSpec:') %] </label>
33
                            <input type="text" id="spec" name="spec" value="[% spec %]" required="required" class="required" />
34
                            <input type="text" id="spec" name="spec" value="[% spec %]" required="required" class="required" />
34
                            <span class="required">Required</span>
35
                            <span class="required">[% t('Required') %]</span>
35
                        </li>
36
                        </li>
36
                        <li>
37
                        <li>
37
                            <label for="name" class="required">setName: </label>
38
                            <label for="name" class="required">[% t('setName:') %] </label>
38
                            <input type="text" id="name" name="name" value="[% name %]" required="required" class="required" />
39
                            <input type="text" id="name" name="name" value="[% name %]" required="required" class="required" />
39
                            <span class="required">Required</span>
40
                            <span class="required">[% t('Required') %]</span>
40
                        </li>
41
                        </li>
41
                        [% FOREACH desc IN descriptions %]
42
                        [% FOREACH desc IN descriptions %]
42
                            <li>
43
                            <li>
43
                                <label>setDescription: </label>
44
                                <label>[% t('setDescription:') %] </label>
44
                                <textarea style="vertical-align:middle" rows="2" cols="30" name="description">[% desc.description %]</textarea>
45
                                <textarea style="vertical-align:middle" rows="2" cols="30" name="description">[% desc.description %]</textarea>
45
                                <a class="remove_description" href="#"><i class="fa fa-fw fa-trash"></i> Remove</a>
46
                                <a class="remove_description" href="#"><i class="fa fa-fw fa-trash"></i> [% t('Remove') %]</a>
46
                            </li>
47
                            </li>
47
                        [% END %]
48
                        [% END %]
48
                        <li id="adddescription"><span class="label">&nbsp;</span><a href="#" class="add_description"><i class="fa fa-fw fa-plus"></i> Add description</a></li>
49
                        <li id="adddescription"><span class="label"> </span><a href="#" class="add_description"><i class="fa fa-fw fa-plus"></i> [% t('Add description') %]</a></li>
49
50
50
                    </ol>
51
                    </ol>
51
                </fieldset>
52
                </fieldset>
52
                <fieldset class="action">
53
                <fieldset class="action">
53
                    <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/oai_sets.pl">Cancel</a>
54
                    <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/oai_sets.pl">[% t('Cancel') %]</a>
54
                </fieldset>
55
                </fieldset>
55
            </form>
56
            </form>
56
        [% ELSE %]
57
        [% ELSE %]
57
58
58
        <div id="toolbar" class="btn-toolbar">
59
        <div id="toolbar" class="btn-toolbar">
59
            <a class="btn btn-default btn-sm" id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new"><i class="fa fa-plus"></i> New set</a>
60
            <a class="btn btn-default btn-sm" id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new"><i class="fa fa-plus"></i> [% t('New set') %]</a>
60
        </div>
61
        </div>
61
62
62
        <h2>OAI sets</h2>
63
        <h2>[% t('OAI sets') %]</h2>
63
        [% IF sets_loop %]
64
        [% IF sets_loop %]
64
            <table>
65
            <table>
65
                <thead>
66
                <thead>
66
                    <tr>
67
                    <tr>
67
                        <th>setSpec</th>
68
                        <th>[% t('setSpec') %]</th>
68
                        <th>setName</th>
69
                        <th>[% t('setName') %]</th>
69
                        <th>setDescriptions</th>
70
                        <th>[% t('setDescriptions') %]</th>
70
                        <th>&nbsp;</th>
71
                        <th> </th>
71
                    </tr>
72
                    </tr>
72
                </thead>
73
                </thead>
73
                <tbody>
74
                <tbody>
Lines 83-99 Link Here
83
                                        [% END %]
84
                                        [% END %]
84
                                    </ul>
85
                                    </ul>
85
                                [% ELSE %]
86
                                [% ELSE %]
86
                                    <em>No descriptions</em>
87
                                    <em>[% t('No descriptions') %]</em>
87
                                [% END %]
88
                                [% END %]
88
                            </td>
89
                            </td>
89
                            <td>
90
                            <td>
90
                              <div class="dropdown">
91
                              <div class="dropdown">
91
                                <a class="btn btn-default btn-xs dropdown-toggle" id="oaisetsactions[% set.id %]" role="button" data-toggle="dropdown" href="#">
92
                                <a class="btn btn-default btn-xs dropdown-toggle" id="oaisetsactions[% set.id %]" role="button" data-toggle="dropdown" href="#">
92
                                  Actions <b class="caret"></b></a>
93
                                  [% t('Actions') %] <b class="caret"></b></a>
93
                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id %]">
94
                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="oaisetsactions[% set.id %]">
94
                                  <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&amp;id=[% set.id %]"><i class="fa fa-fw fa-pencil"></i> Edit</a></li>
95
                                  <li><a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id %]"><i class="fa fa-fw fa-pencil"></i> [% t('Edit') %]</a></li>
95
                                  <li><a class="delete_oai_set" href="/cgi-bin/koha/admin/oai_sets.pl?op=del&amp;id=[% set.id %]"><i class="fa fa-fw fa-trash"></i> Delete</a></li>
96
                                  <li><a class="delete_oai_set" href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id %]"><i class="fa fa-fw fa-trash"></i> [% t('Delete') %]</a></li>
96
                                  <li><a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id %]"><i class="fa fa-fw fa-info"></i> Define mappings</a></li>
97
                                  <li><a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id %]"><i class="fa fa-fw fa-info"></i> [% t('Define mappings') %]</a></li>
97
                                </ul>
98
                                </ul>
98
                              </div>
99
                              </div>
99
                            </td>
100
                            </td>
Lines 102-108 Link Here
102
                </tbody>
103
                </tbody>
103
            </table>
104
            </table>
104
        [% ELSE %]
105
        [% ELSE %]
105
            <div class="dialog message"><p>There are no sets defined.</p></div>
106
            <div class="dialog message"><p>[% t('There are no sets defined.') %]</p></div>
106
        [% END %]
107
        [% END %]
107
        [% END %]
108
        [% END %]
108
109
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-68 / +69 lines)
Lines 1-17 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Patron attribute types
6
<title>[% t('Koha › Administration › Patron attribute types') %]
6
[% IF ( attribute_type_form ) %]
7
[% IF ( attribute_type_form ) %]
7
  [% IF ( edit_attribute_type ) %]
8
  [% IF ( edit_attribute_type ) %]
8
    &rsaquo; Modify patron attribute type
9
    [% t('› Modify patron attribute type') %]
9
  [% ELSE %]
10
  [% ELSE %]
10
    &rsaquo; Add patron attribute type
11
    [% t('› Add patron attribute type') %]
11
  [% END %]
12
  [% END %]
12
[% END %]
13
[% END %]
13
[% IF ( delete_attribute_type_form ) %]
14
[% IF ( delete_attribute_type_form ) %]
14
  &rsaquo; Confirm deletion of patron attribute type &quot;[% code |html %]&quot;
15
  [% t('› Confirm deletion of patron attribute type &#34;') %][% code |html %]"
15
[% END %]
16
[% END %]
16
</title>
17
</title>
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
Lines 21-36 Link Here
21
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'prefs-admin-search.inc' %]
23
[% INCLUDE 'prefs-admin-search.inc' %]
23
24
24
<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 ( display_list ) %]Patron attribute types[% ELSE %]<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>[% END %]
25
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF ( display_list ) %][% t('Patron attribute types') %][% ELSE %]<a href="/cgi-bin/koha/admin/patron-attr-types.pl">[% t('Patron attribute types') %]</a>[% END %]
25
[% IF ( attribute_type_form ) %]
26
[% IF ( attribute_type_form ) %]
26
  [% IF ( edit_attribute_type ) %]
27
  [% IF ( edit_attribute_type ) %]
27
    &rsaquo; Modify patron attribute type
28
    [% t('› Modify patron attribute type') %]
28
  [% ELSE %]
29
  [% ELSE %]
29
    &rsaquo; Add patron attribute type
30
    [% t('› Add patron attribute type') %]
30
  [% END %]
31
  [% END %]
31
[% END %]
32
[% END %]
32
[% IF ( delete_attribute_type_form ) %]
33
[% IF ( delete_attribute_type_form ) %]
33
  &rsaquo; Confirm deletion of patron attribute type &quot;[% code |html %]&quot;
34
  [% t('› Confirm deletion of patron attribute type &#34;') %][% code |html %]"
34
[% END %]
35
[% END %]
35
</div>
36
</div>
36
37
Lines 41-58 Link Here
41
    <div class="yui-b">
42
    <div class="yui-b">
42
43
43
[% IF ( WARNING_extended_attributes_off ) %]
44
[% IF ( WARNING_extended_attributes_off ) %]
44
<div class="dialog message">Because the 'ExtendedPatronAttributes` system preference is currently not enabled, extended patron attributes cannot be given to patron records.  Go <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=ExtendedPatronAttributes">here</a> if you wish to enable this feature.</div>
45
<div class="dialog message">[% t('Because the \'ExtendedPatronAttributes` system preference is currently not enabled, extended patron attributes cannot be given to patron records.') %]  [% t('Go') %] <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ExtendedPatronAttributes">[% t('here') %]</a> [% t('if you wish to enable this feature.') %]</div>
45
[% END %]
46
[% END %]
46
47
47
[% IF ( attribute_type_form ) %]
48
[% IF ( attribute_type_form ) %]
48
  [% IF ( edit_attribute_type ) %]
49
  [% IF ( edit_attribute_type ) %]
49
<h2>Modify patron attribute type</h2>
50
<h2>[% t('Modify patron attribute type') %]</h2>
50
  [% ELSE %]
51
  [% ELSE %]
51
<h2>Add patron attribute type</h2>
52
<h2>[% t('Add patron attribute type') %]</h2>
52
  [% END %]
53
  [% END %]
53
[% IF ( duplicate_code_error ) %]
54
[% IF ( duplicate_code_error ) %]
54
<div class="dialog message">Could not add patron attribute type &quot;[% duplicate_code_error %]&quot; 
55
<div class="dialog message">[% t('Could not add patron attribute type &#34;') %][% duplicate_code_error %]" 
55
    &mdash; one with that code already exists.
56
    [% t('— one with that code already exists.') %]
56
</div>
57
</div>
57
[% END %]
58
[% END %]
58
<form action="[% script_name %]" class="validated" method="post">
59
<form action="[% script_name %]" class="validated" method="post">
Lines 61-80 Link Here
61
    <ol>
62
    <ol>
62
      <li>
63
      <li>
63
          [% IF ( edit_attribute_type ) %]
64
          [% IF ( edit_attribute_type ) %]
64
		  <span class="label">Patron attribute type code: </span>
65
		  <span class="label">[% t('Patron attribute type code:') %] </span>
65
            <input type="hidden" name="code" value="[% code |html %]" />
66
            <input type="hidden" name="code" value="[% code |html %]" />
66
            [% code |html %]
67
            [% code |html %]
67
          [% ELSE %]
68
          [% ELSE %]
68
              <label for="code" class="required">Patron attribute type code: </label>
69
              <label for="code" class="required">[% t('Patron attribute type code:') %] </label>
69
              <input type="text" id="code" name="code" required="required" class="required" size="10" maxlength="10" />
70
              <input type="text" id="code" name="code" required="required" class="required" size="10" maxlength="10" />
70
              <span class="required">Required</span>
71
              <span class="required">[% t('Required') %]</span>
71
          [% END %]
72
          [% END %]
72
       </li>
73
       </li>
73
       <li><label for="description" class="required">Description: </label>
74
       <li><label for="description" class="required">[% t('Description:') %] </label>
74
           <input type="text" id="description" name="description" required="required" class="required" size="50" maxlength="250" value="[% description |html %]" />
75
           <input type="text" id="description" name="description" required="required" class="required" size="50" maxlength="250" value="[% description |html %]" />
75
           <span class="required">Required</span>
76
           <span class="required">[% t('Required') %]</span>
76
       </li>
77
       </li>
77
       <li><label for="repeatable">Repeatable: </label>
78
       <li><label for="repeatable">[% t('Repeatable:') %] </label>
78
            [% IF ( repeatable_checked ) %]
79
            [% IF ( repeatable_checked ) %]
79
              [% IF ( repeatable_disabled ) %]
80
              [% IF ( repeatable_disabled ) %]
80
                <input type="checkbox" id="repeatable" name="repeatable" checked="checked" disabled="disabled" />
81
                <input type="checkbox" id="repeatable" name="repeatable" checked="checked" disabled="disabled" />
Lines 88-97 Link Here
88
                <input type="checkbox" id="repeatable" name="repeatable" />
89
                <input type="checkbox" id="repeatable" name="repeatable" />
89
              [% END %]
90
              [% END %]
90
            [% END %]
91
            [% END %]
91
            <span>Check to let a patron record have multiple values of this attribute.  
92
            <span>[% t('Check to let a patron record have multiple values of this attribute.') %]  
92
                  This setting cannot be changed after an attribute is defined.</span>
93
                  [% t('This setting cannot be changed after an attribute is defined.') %]</span>
93
       </li>
94
       </li>
94
       <li><label for="unique_id">Unique identifier: </label>
95
       <li><label for="unique_id">[% t('Unique identifier:') %] </label>
95
            [% IF ( unique_id_checked ) %]
96
            [% IF ( unique_id_checked ) %]
96
              [% IF ( unique_id_disabled ) %]
97
              [% IF ( unique_id_disabled ) %]
97
                <input type="checkbox" id="unique_id" name="unique_id" checked="checked" disabled="disabled" />
98
                <input type="checkbox" id="unique_id" name="unique_id" checked="checked" disabled="disabled" />
Lines 105-158 Link Here
105
                <input type="checkbox" id="unique_id" name="unique_id" />
106
                <input type="checkbox" id="unique_id" name="unique_id" />
106
              [% END %]
107
              [% END %]
107
            [% END %]
108
            [% END %]
108
            <span>If checked, attribute will be a unique identifier &mdash; if a value is given to a patron record, the same value
109
            <span>[% t('If checked, attribute will be a unique identifier — if a value is given to a patron record, the same value') %]
109
                  cannot be given to a different record.  This setting cannot be changed after an attribute is defined.</span>
110
                  [% t('cannot be given to a different record.') %]  [% t('This setting cannot be changed after an attribute is defined.') %]</span>
110
       </li>
111
       </li>
111
       <li><label for="opac_display">Display in OPAC: </label>
112
       <li><label for="opac_display">[% t('Display in OPAC:') %] </label>
112
          [% IF ( opac_display_checked ) %]
113
          [% IF ( opac_display_checked ) %]
113
            <input type="checkbox" id="opac_display" name="opac_display" checked="checked" />
114
            <input type="checkbox" id="opac_display" name="opac_display" checked="checked" />
114
          [% ELSE %]
115
          [% ELSE %]
115
            <input type="checkbox" id="opac_display" name="opac_display" />
116
            <input type="checkbox" id="opac_display" name="opac_display" />
116
          [% END %]
117
          [% END %]
117
            <span>Check to display this attribute on a patron's details page in the OPAC.</span>
118
            <span>[% t('Check to display this attribute on a patron\'s details page in the OPAC.') %]</span>
118
       </li>
119
       </li>
119
       <li><label for="opac_editable">Editable in OPAC: </label>
120
       <li><label for="opac_editable">[% t('Editable in OPAC:') %] </label>
120
          [% IF ( opac_editable_checked ) %]
121
          [% IF ( opac_editable_checked ) %]
121
            <input type="checkbox" id="opac_editable" name="opac_editable" checked="checked" />
122
            <input type="checkbox" id="opac_editable" name="opac_editable" checked="checked" />
122
          [% ELSE %]
123
          [% ELSE %]
123
            <input type="checkbox" id="opac_editable" name="opac_editable" />
124
            <input type="checkbox" id="opac_editable" name="opac_editable" />
124
          [% END %]
125
          [% END %]
125
            <span>Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above, does not work with <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=PatronSelfRegistrationVerifyByEmail" target="_blank">PatronSelfRegistrationVerifyByEmail</a>.)</span>
126
            <span>[% t('Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above, does not work with') %] <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationVerifyByEmail" target="_blank">[% t('PatronSelfRegistrationVerifyByEmail') %]</a>.)</span>
126
       </li>
127
       </li>
127
       <li><label for="staff_searchable">Searchable: </label>
128
       <li><label for="staff_searchable">[% t('Searchable:') %] </label>
128
          [% IF ( staff_searchable_checked ) %]
129
          [% IF ( staff_searchable_checked ) %]
129
            <input type="checkbox" id="staff_searchable" name="staff_searchable" checked="checked" />
130
            <input type="checkbox" id="staff_searchable" name="staff_searchable" checked="checked" />
130
          [% ELSE %]
131
          [% ELSE %]
131
            <input type="checkbox" id="staff_searchable" name="staff_searchable" />
132
            <input type="checkbox" id="staff_searchable" name="staff_searchable" />
132
          [% END %]
133
          [% END %]
133
            <span>Check to make this attribute staff_searchable in the staff patron search.</span>
134
            <span>[% t('Check to make this attribute staff_searchable in the staff patron search.') %]</span>
134
       </li>
135
       </li>
135
       <li><label for="display_checkout">Display in check-out: </label>
136
       <li><label for="display_checkout">[% t('Display in check-out:') %] </label>
136
            [% IF display_checkout_checked %]
137
            [% IF display_checkout_checked %]
137
                <input type="checkbox" id="display_checkout" name="display_checkout" checked="checked" />
138
                <input type="checkbox" id="display_checkout" name="display_checkout" checked="checked" />
138
	    [% ELSE %]
139
	    [% ELSE %]
139
	        <input type="checkbox" id="display_checkout" name="display_checkout" />
140
	        <input type="checkbox" id="display_checkout" name="display_checkout" />
140
	    [% END %]
141
	    [% END %]
141
            <span>Check to show this attribute in patron check-out.</span>
142
            <span>[% t('Check to show this attribute in patron check-out.') %]</span>
142
       </li>
143
       </li>
143
144
144
        <li><label for="authorised_value_category">Authorized value category: </label>
145
        <li><label for="authorised_value_category">[% t('Authorized value category:') %] </label>
145
            <select name="authorised_value_category" id="authorised_value_category">
146
            <select name="authorised_value_category" id="authorised_value_category">
146
                <option value=""></option>
147
                <option value=""></option>
147
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value_category ) %]
148
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value_category ) %]
148
            </select>
149
            </select>
149
            <span>Authorized value category; if one is selected, the patron record input page will only allow values 
150
            <span>[% t('Authorized value category; if one is selected, the patron record input page will only allow values') %] 
150
                  to be chosen from the authorized value list.  However, an authorized value list is not 
151
                  [% t('to be chosen from the authorized value list.') %]  [% t('However, an authorized value list is not') %] 
151
                  enforced during batch patron import.</span>
152
                  [% t('enforced during batch patron import.') %]</span>
152
        </li>
153
        </li>
153
        <li><label for="branches">Branches limitation: </label>
154
        <li><label for="branches">[% t('Branches limitation:') %] </label>
154
            <select id="branches" name="branches" multiple size="10">
155
            <select id="branches" name="branches" multiple="" size="10">
155
                <option value="">All branches</option>
156
                <option value="">[% t('All branches') %]</option>
156
                [% FOREACH branch IN branches_loop %]
157
                [% FOREACH branch IN branches_loop %]
157
                  [% IF ( branch.selected ) %]
158
                  [% IF ( branch.selected ) %]
158
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
159
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
Lines 161-181 Link Here
161
                  [% END %]
162
                  [% END %]
162
                [% END %]
163
                [% END %]
163
            </select>
164
            </select>
164
            <span>Select All if this attribute type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
165
            <span>[% t('Select All if this attribute type must to be displayed all the time. Otherwise select libraries you want to associate with this value.') %]
165
            </span>
166
            </span>
166
        </li>
167
        </li>
167
        <li>
168
        <li>
168
            <label for="category">Category: </label>
169
            <label for="category">[% t('Category:') %] </label>
169
            <select name="category_code" id="category">
170
            <select name="category_code" id="category">
170
                <option value=""></option>
171
                <option value=""></option>
171
                [% FOREACH cat IN categories %]
172
                [% FOREACH cat IN categories %]
172
                    [% IF ( cat.categorycode == category_code ) %]<option value="[% cat.categorycode %]" selected="selected">[% cat.description |html %]</option>[% ELSE %]<option value="[% cat.categorycode %]">[% cat.description |html %]</option>[% END %]
173
                    [% IF ( cat.categorycode == category_code ) %]<option value="[% cat.categorycode %]" selected="selected">[% cat.description |html %]</option>[% ELSE %]<option value="[% cat.categorycode %]">[% cat.description |html %]</option>[% END %]
173
                [% END %]
174
                [% END %]
174
            </select>
175
            </select>
175
            <span>Choose one to limit this attribute to one patron type. Please leave blank if you want these attributes to be available for all types of patrons.</span>
176
            <span>[% t('Choose one to limit this attribute to one patron type. Please leave blank if you want these attributes to be available for all types of patrons.') %]</span>
176
        </li>
177
        </li>
177
        <li>
178
        <li>
178
            <label for="class">Class: </label>
179
            <label for="class">[% t('Class:') %] </label>
179
            <select name="class" id="class">
180
            <select name="class" id="class">
180
                <option value=""></option>
181
                <option value=""></option>
181
                [% FOREACH class IN classes_val_loop %]
182
                [% FOREACH class IN classes_val_loop %]
Lines 184-216 Link Here
184
                            [% class.lib |html %]
185
                            [% class.lib |html %]
185
                        </option>
186
                        </option>
186
                    [% ELSE %]
187
                    [% ELSE %]
187
                        <option value="[% class.authorised_value %]" >
188
                        <option value="[% class.authorised_value %]">
188
                            [% class.lib |html %]
189
                            [% class.lib |html %]
189
                        </option>
190
                        </option>
190
                    [% END %]
191
                    [% END %]
191
                [% END %]
192
                [% END %]
192
            </select>
193
            </select>
193
            <span>Group attributes types with a block title (based on authorized values category 'PA_CLASS')</span>
194
            <span>[% t('Group attributes types with a block title (based on authorized values category \'PA_CLASS\')') %]</span>
194
        </li>
195
        </li>
195
    </ol>
196
    </ol>
196
  </fieldset>
197
  </fieldset>
197
  <fieldset class="action">
198
  <fieldset class="action">
198
      <input type="submit" value="Save" />
199
      <input type="submit" value="Save" />
199
    <a class="cancel" href="/cgi-bin/koha/admin/patron-attr-types.pl">Cancel</a>
200
    <a class="cancel" href="/cgi-bin/koha/admin/patron-attr-types.pl">[% t('Cancel') %]</a>
200
  </fieldset>
201
  </fieldset>
201
</form>
202
</form>
202
[% END %]
203
[% END %]
203
204
204
[% IF ( delete_attribute_type_form ) %]
205
[% IF ( delete_attribute_type_form ) %]
205
    <div class="dialog alert">
206
    <div class="dialog alert">
206
        <h3>Confirm deletion of patron attribute type <span class="ex">'[% code |html %]' ([% description %])</span>?</h3>
207
        <h3>[% t('Confirm deletion of patron attribute type') %] <span class="ex">'[% code |html %]' ([% description %])</span>?</h3>
207
        <form action="[% script_name %]" name="Aform" method="post">
208
        <form action="[% script_name %]" name="Aform" method="post">
208
            <input type="hidden" name="op" value="[% confirm_op %]" />
209
            <input type="hidden" name="op" value="[% confirm_op %]" />
209
            <input type="hidden" name="code" value="[% code |html %]" />
210
            <input type="hidden" name="code" value="[% code |html %]" />
210
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete patron attribute type</button>
211
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete patron attribute type') %]</button>
211
        </form>
212
        </form>
212
        <form action="[% script_name %]" method="get">
213
        <form action="[% script_name %]" method="get">
213
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
214
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
214
        </form>
215
        </form>
215
    </div>
216
    </div>
216
[% END %]
217
[% END %]
Lines 218-243 Link Here
218
[% IF ( display_list ) %]
219
[% IF ( display_list ) %]
219
220
220
<div id="toolbar" class="btn-toolbar">
221
<div id="toolbar" class="btn-toolbar">
221
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_attribute_type"><i class="fa fa-plus"></i> New patron attribute type</a>
222
    <a class="btn btn-default btn-sm" id="newrule" href="[% script_name %]?op=add_attribute_type"><i class="fa fa-plus"></i> [% t('New patron attribute type') %]</a>
222
</div>
223
</div>
223
224
224
<h2>Patron attribute types</h2>
225
<h2>[% t('Patron attribute types') %]</h2>
225
[% IF ( added_attribute_type ) %]
226
[% IF ( added_attribute_type ) %]
226
<div class="dialog message">Added patron attribute type &quot;[% added_attribute_type %]&quot;</div>
227
<div class="dialog message">[% t('Added patron attribute type &#34;') %][% added_attribute_type %]"</div>
227
[% END %]
228
[% END %]
228
[% IF ( edited_attribute_type ) %]
229
[% IF ( edited_attribute_type ) %]
229
<div class="dialog message">Modified patron attribute type &quot;[% edited_attribute_type %]&quot;</div>
230
<div class="dialog message">[% t('Modified patron attribute type &#34;') %][% edited_attribute_type %]"</div>
230
[% END %]
231
[% END %]
231
[% IF ( deleted_attribute_type ) %]
232
[% IF ( deleted_attribute_type ) %]
232
<div class="dialog message">Deleted patron attribute type &quot;[% deleted_attribute_type %]&quot;</div>
233
<div class="dialog message">[% t('Deleted patron attribute type &#34;') %][% deleted_attribute_type %]"</div>
233
[% END %]
234
[% END %]
234
[% IF ( ERROR_delete_in_use ) %]
235
[% IF ( ERROR_delete_in_use ) %]
235
<div class="dialog message">Could not delete patron attribute type &quot;[% ERROR_delete_in_use %]&quot; 
236
<div class="dialog message">[% t('Could not delete patron attribute type &#34;') %][% ERROR_delete_in_use %]" 
236
    &mdash; it is in use by [% ERROR_num_patrons %] patron records</div>
237
    [% t('— it is in use by') %] [% ERROR_num_patrons %] [% t('patron records') %]</div>
237
[% END %]
238
[% END %]
238
[% IF ( ERROR_delete_not_found ) %]
239
[% IF ( ERROR_delete_not_found ) %]
239
<div class="dialog message">Could not delete patron attribute type &quot;[% ERROR_delete_not_found %]&quot; 
240
<div class="dialog message">[% t('Could not delete patron attribute type &#34;') %][% ERROR_delete_not_found %]" 
240
    &mdash; it was already absent from the database.</div>
241
    [% t('— it was already absent from the database.') %]</div>
241
[% END %]
242
[% END %]
242
[% IF ( available_attribute_types ) %]
243
[% IF ( available_attribute_types ) %]
243
  [% FOREACH attribute IN available_attribute_types %]
244
  [% FOREACH attribute IN available_attribute_types %]
Lines 247-256 Link Here
247
    <table class="patron_attributes_types">
248
    <table class="patron_attributes_types">
248
      <thead>
249
      <thead>
249
        <tr>
250
        <tr>
250
          <th>Code</th>
251
          <th>[% t('Code') %]</th>
251
          <th>Description</th>
252
          <th>[% t('Description') %]</th>
252
          <th>Branches limitation</th>
253
          <th>[% t('Branches limitation') %]</th>
253
          <th>Actions</th>
254
          <th>[% t('Actions') %]</th>
254
        </tr>
255
        </tr>
255
      </thead>
256
      </thead>
256
      <tbody>
257
      <tbody>
Lines 266-283 Link Here
266
                    [% END %]
267
                    [% END %]
267
                    <span title="[% branches_str %]">
268
                    <span title="[% branches_str %]">
268
                        [% IF item.branches.size > 1 %]
269
                        [% IF item.branches.size > 1 %]
269
                            [% item.branches.size %] branches limitations
270
                            [% item.branches.size %] [% t('branches limitations') %]
270
                        [% ELSE %]
271
                        [% ELSE %]
271
                            [% item.branches.size %] branch limitation
272
                            [% item.branches.size %] [% t('branch limitation') %]
272
                        [% END %]
273
                        [% END %]
273
                    </span>
274
                    </span>
274
                [% ELSE %]
275
                [% ELSE %]
275
                    No limitation
276
                    [% t('No limitation') %]
276
                [% END %]
277
                [% END %]
277
            </td>
278
            </td>
278
            <td class="actions">
279
            <td class="actions">
279
              <a class="btn btn-default btn-xs" href="[% item.script_name %]?op=edit_attribute_type&amp;code=[% item.code |html %]"><i class="fa fa-pencil"></i> Edit</a>
280
              <a class="btn btn-default btn-xs" href="[% item.script_name %]?op=edit_attribute_type&code=[% item.code |html %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
280
              <a class="btn btn-default btn-xs" href="[% item.script_name %]?op=delete_attribute_type&amp;code=[% item.code |html %]"><i class="fa fa-trash"></i> Delete</a>
281
              <a class="btn btn-default btn-xs" href="[% item.script_name %]?op=delete_attribute_type&code=[% item.code |html %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
281
            </td>
282
            </td>
282
          </tr>
283
          </tr>
283
        [% END %]
284
        [% END %]
Lines 285-291 Link Here
285
    </table>
286
    </table>
286
  [% END %]
287
  [% END %]
287
[% ELSE %]
288
[% ELSE %]
288
  <p>There are no saved patron attribute types.</p>
289
  <p>[% t('There are no saved patron attribute types.') %]</p>
289
[% END %]
290
[% END %]
290
291
291
<div class="pages">[% pagination_bar %]</div>
292
<div class="pages">[% pagination_bar %]</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-19 / +20 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; System preferences</title>
6
<title>[% t('Koha › Administration › System preferences') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/preferences.css") %]
9
[% Asset.css("css/preferences.css") %]
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'prefs-admin-search.inc' %]
15
[% INCLUDE 'prefs-admin-search.inc' %]
15
16
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; System preferences</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› System preferences') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
20
Lines 22-44 Link Here
22
	    <div class="yui-b">
23
	    <div class="yui-b">
23
24
24
    [% IF ( jump_not_found ) %]
25
    [% IF ( jump_not_found ) %]
25
    <h2>System preferences</h2>
26
    <h2>[% t('System preferences') %]</h2>
26
    <div class="dialog alert">
27
    <div class="dialog alert">
27
        Could not find a system preference named <code>[% jumpfield %]</code>.
28
        [% t('Could not find a system preference named') %] <code>[% jumpfield %]</code>.
28
    </div>
29
    </div>
29
    [% END %]
30
    [% END %]
30
    [% IF ( search_not_found ) %]
31
    [% IF ( search_not_found ) %]
31
    <div class="dialog alert">
32
    <div class="dialog alert">
32
        No system preferences matched your search for: <strong>[% searchfield |html %]</strong>
33
        [% t('No system preferences matched your search for:') %] <strong>[% searchfield |html %]</strong>
33
    </div>
34
    </div>
34
    [% ELSIF searchfield %]
35
    [% ELSIF searchfield %]
35
        <h1>You searched for: [% searchfield | html %]</h1>
36
        <h1>[% t('You searched for:') %] [% searchfield | html %]</h1>
36
    [% END %]
37
    [% END %]
37
    [% FOREACH TAB IN TABS %]
38
    [% FOREACH TAB IN TABS %]
38
    <div class="prefs-tab">
39
    <div class="prefs-tab">
39
    <h2>[% TAB.tab_title %] preferences</h2>
40
    <h2>[% TAB.tab_title %] [% t('preferences') %]</h2>
40
    <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
41
    <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
41
        [% UNLESS ( searchfield ) %]<div id="toolbar"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button></div>[% END %]
42
        [% UNLESS ( searchfield ) %]<div id="toolbar"><button class="save-all submit" type="submit">[% t('Save all') %] [% TAB.tab_title %] [% t('preferences') %]</button></div>[% END %]
42
        <input type="hidden" name="op" value="save" />
43
        <input type="hidden" name="op" value="save" />
43
        <input type="hidden" name="tab" value="[% TAB.tab_id %]" />
44
        <input type="hidden" name="tab" value="[% TAB.tab_id %]" />
44
45
Lines 47-56 Link Here
47
            [% UNLESS ( loop.first ) %]</tbody></table>[% END %]
48
            [% UNLESS ( loop.first ) %]</tbody></table>[% END %]
48
            <h3>[% LINE.title %]</h3>
49
            <h3>[% LINE.title %]</h3>
49
            <table class="preferences">
50
            <table class="preferences">
50
            <thead><tr><th>Preference</th><th>Value</th></tr></thead>
51
            <thead><tr><th>[% t('Preference') %]</th><th>[% t('Value') %]</th></tr></thead>
51
            [% UNLESS ( loop.last ) %]<tbody>[% END %]
52
            [% UNLESS ( loop.last ) %]<tbody>[% END %]
52
            [% ELSE %]
53
            [% ELSE %]
53
            [% IF ( loop.first ) %]<table class="preferences"><thead><tr><th>Preference</th><th>Value</th></tr></thead><tbody>[% END %]
54
            [% IF ( loop.first ) %]<table class="preferences"><thead><tr><th>[% t('Preference') %]</th><th>[% t('Value') %]</th></tr></thead><tbody>[% END %]
54
            <tr class="name-row">
55
            <tr class="name-row">
55
                <td class="name-cell">
56
                <td class="name-cell">
56
                    <code>
57
                    <code>
Lines 65-72 Link Here
65
							[% END %]
66
							[% END %]
66
67
67
                            [% IF NAME.overridden %]
68
                            [% IF NAME.overridden %]
68
                                <span class="overridden" title="The system preference [% NAME.name %] may have been overridden from this value by one or more virtual hosts.">
69
                                <span class="overridden" title="[% t('The system preference') %] [% NAME.name %] [% t('may have been overridden from this value by one or more virtual hosts.') %]">
69
                                    [Overridden]
70
                                    [% t('[Overridden]') %]
70
                                </span>
71
                                </span>
71
                            [% END %]
72
                            [% END %]
72
						</label>
73
						</label>
Lines 100-108 Link Here
100
                        [% IF ( CHUNK.type_htmlarea ) && ( Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
101
                        [% IF ( CHUNK.type_htmlarea ) && ( Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
101
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or 'short' %] mce" rows="20" cols="60">[% CHUNK.value %]</textarea>
102
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or 'short' %] mce" rows="20" cols="60">[% CHUNK.value %]</textarea>
102
                        [% ELSE %]
103
                        [% ELSE %]
103
                        <a class="expand-textarea" style="display: none" href="#">Click to Edit</a>
104
                        <a class="expand-textarea" style="display: none" href="#">[% t('Click to Edit') %]</a>
104
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or 'short' %]" rows="10" cols="40">[% CHUNK.value %]</textarea>
105
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or 'short' %]" rows="10" cols="40">[% CHUNK.value %]</textarea>
105
                        <a class="collapse-textarea" style="display:none" href="#">Click to collapse</br></a>
106
                        <a class="collapse-textarea" style="display:none" href="#">[% t('Click to collapse') %]</br></a>
106
                        [% END %]
107
                        [% END %]
107
                    [% ELSIF ( CHUNK.type_languages ) %]
108
                    [% ELSIF ( CHUNK.type_languages ) %]
108
                    <dl class="sortable">
109
                    <dl class="sortable">
Lines 116-124 Link Here
116
                        <dd>
117
                        <dd>
117
                            <label for="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]([% sublanguages_loo.rfc4646_subtag %])</label>
118
                            <label for="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]([% sublanguages_loo.rfc4646_subtag %])</label>
118
                            [% IF ( sublanguages_loo.enabled ) %]
119
                            [% IF ( sublanguages_loo.enabled ) %]
119
                            <input value="[% sublanguages_loo.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]" type="checkbox" checked="checked" class="preference preference-checkbox"/>
120
                            <input value="[% sublanguages_loo.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]" type="checkbox" checked="checked" class="preference preference-checkbox" />
120
                            [% ELSE %]
121
                            [% ELSE %]
121
                            <input value="[% sublanguages_loo.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]" type="checkbox" class="preference preference-checkbox"/>
122
                            <input value="[% sublanguages_loo.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% sublanguages_loo.rfc4646_subtag %]" type="checkbox" class="preference preference-checkbox" />
122
                            [% END %]
123
                            [% END %]
123
                        </dd>
124
                        </dd>
124
                        [% END %]
125
                        [% END %]
Lines 126-134 Link Here
126
                        <dt>
127
                        <dt>
127
                            <label for="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]">[% language.native_description %]([% language.rfc4646_subtag %])</label>
128
                            <label for="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]">[% language.native_description %]([% language.rfc4646_subtag %])</label>
128
                            [% IF ( language.group_enabled ) %]
129
                            [% IF ( language.group_enabled ) %]
129
                            <input value="[% language.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]" type="checkbox" checked="checked" class="preference preference-checkbox"/>
130
                            <input value="[% language.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]" type="checkbox" checked="checked" class="preference preference-checkbox" />
130
                            [% ELSE %]
131
                            [% ELSE %]
131
                            <input value="[% language.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]" type="checkbox" class="preference preference-checkbox"/>
132
                            <input value="[% language.rfc4646_subtag %]" name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]_[% language.rfc4646_subtag %]" type="checkbox" class="preference preference-checkbox" />
132
                            [% END %]
133
                            [% END %]
133
                        </dt>
134
                        </dt>
134
                        [% END %]
135
                        [% END %]
Lines 142-148 Link Here
142
            [% IF ( loop.last ) %]</tbody></table>[% END %]
143
            [% IF ( loop.last ) %]</tbody></table>[% END %]
143
            [% END %]
144
            [% END %]
144
        [% END %]
145
        [% END %]
145
        <fieldset class="action"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button> <a href="/cgi-bin/koha/admin/preferences.pl" class="force_reload cancel">Cancel</a></fieldset>
146
        <fieldset class="action"><button class="save-all submit" type="submit">[% t('Save all') %] [% TAB.tab_title %] [% t('preferences') %]</button> <a href="/cgi-bin/koha/admin/preferences.pl" class="force_reload cancel">[% t('Cancel') %]</a></fieldset>
146
    </form>
147
    </form>
147
    </div>
148
    </div>
148
    [% END %]
149
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/printers.tt (-39 / +40 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Administration &rsaquo;
4
<title>[% t('Koha › Administration ›') %]
4
[% IF ( add_form ) %][% IF ( searchfield ) %] Printers &rsaquo; Modify printer '[% searchfield %]'[% ELSE %] Printers &rsaquo; New printer[% END %][% END %]
5
[% IF ( add_form ) %][% IF ( searchfield ) %] [% t('Printers › Modify printer \'') %][% searchfield %]'[% ELSE %] [% t('Printers › New printer') %][% END %][% END %]
5
[% IF ( add_validate ) %] Printers &rsaquo; Printer added[% END %]
6
[% IF ( add_validate ) %] [% t('Printers › Printer added') %][% END %]
6
[% IF ( delete_confirm ) %] Printers &rsaquo; Confirm deletion of printer '[% searchfield %]'[% END %]
7
[% IF ( delete_confirm ) %] [% t('Printers › Confirm deletion of printer \'') %][% searchfield %]'[% END %]
7
[% IF ( delete_confirmed ) %] Printers &rsaquo; Printer deleted[% END %]
8
[% IF ( delete_confirmed ) %] [% t('Printers › Printer deleted') %][% END %]
8
[% IF ( else ) %]Printers[% END %]</title>
9
[% IF ( else ) %][% t('Printers') %][% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% IF ( loop ) %]
11
[% IF ( loop ) %]
11
[% Asset.css("css/datatables.css") %]
12
[% Asset.css("css/datatables.css") %]
Lines 29-39 Link Here
29
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'cat-search.inc' %]
31
[% INCLUDE 'cat-search.inc' %]
31
32
32
<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 ) %][% IF ( searchfield ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; Modify printer '[% searchfield %]'[% ELSE %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; New printer[% END %][% END %]
33
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF ( add_form ) %][% IF ( searchfield ) %] <a href="/cgi-bin/koha/admin/printers.pl">[% t('Printers') %]</a> [% t('› Modify printer \'') %][% searchfield %]'[% ELSE %] <a href="/cgi-bin/koha/admin/printers.pl">[% t('Printers') %]</a> [% t('› New printer') %][% END %][% END %]
33
[% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; Printer added[% END %]
34
[% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/printers.pl">[% t('Printers') %]</a> [% t('› Printer added') %][% END %]
34
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> &rsaquo; Confirm deletion of printer '[% searchfield %]'[% END %]
35
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/printers.pl">[% t('Printers') %]</a> [% t('› Confirm deletion of printer \'') %][% searchfield %]'[% END %]
35
[% 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">[% t('Printers') %]</a> [% t('› Printer deleted') %][% END %]
36
[% IF ( else ) %]Printers[% END %]</div>
37
[% IF ( else ) %][% t('Printers') %][% END %]</div>
37
38
38
<div id="doc3" class="yui-t2">
39
<div id="doc3" class="yui-t2">
39
   
40
   
Lines 44-52 Link Here
44
[% IF ( add_form ) %]
45
[% IF ( add_form ) %]
45
46
46
[% IF ( searchfield ) %]
47
[% IF ( searchfield ) %]
47
		<h1>Modify printer</h1>
48
		<h1>[% t('Modify printer') %]</h1>
48
	[% ELSE %]
49
	[% ELSE %]
49
		<h1>New printer</h1>
50
		<h1>[% t('New printer') %]</h1>
50
	[% END %]
51
	[% END %]
51
        <form action="[% script_name %]" name="Aform" method="post" class="validated">
52
        <form action="[% script_name %]" name="Aform" method="post" class="validated">
52
        <input type="hidden" name="op" value="add_validate" />
53
        <input type="hidden" name="op" value="add_validate" />
Lines 58-90 Link Here
58
	<fieldset class="rows">
59
	<fieldset class="rows">
59
<ol>	[% IF ( searchfield ) %]
60
<ol>	[% IF ( searchfield ) %]
60
		<li>
61
		<li>
61
            <span class="label">Printer name: </span>
62
            <span class="label">[% t('Printer name:') %] </span>
62
				<input type="hidden" name="printername" id="" value="[% searchfield %]" />[% searchfield %]
63
				<input type="hidden" name="printername" id="" value="[% searchfield %]" />[% searchfield %]
63
		</li>
64
		</li>
64
	[% ELSE %]
65
	[% ELSE %]
65
		<li>
66
		<li>
66
            <label for="printername" class="required">Printer name: </label>
67
            <label for="printername" class="required">[% t('Printer name:') %] </label>
67
                <input type="text" name="printername" id="printername" size="40" maxlength="40" class="required" required="required" />
68
                <input type="text" name="printername" id="printername" size="40" maxlength="40" class="required" required="required" />
68
                <span class="required">Required</span>
69
                <span class="required">[% t('Required') %]</span>
69
		</li>
70
		</li>
70
	[% END %]
71
	[% END %]
71
        	<li>
72
        	<li>
72
            <label for="printqueue" class="required">Queue: </label>
73
            <label for="printqueue" class="required">[% t('Queue:') %] </label>
73
            <input type="text" name="printqueue" id="printqueue" size="20" maxlength="20" value="[% printqueue %]"  class="required" required="required" />
74
            <input type="text" name="printqueue" id="printqueue" size="20" maxlength="20" value="[% printqueue %]" class="required" required="required" />
74
            <span class="required">Required</span>
75
            <span class="required">[% t('Required') %]</span>
75
		</li>
76
		</li>
76
        	<li>
77
        	<li>
77
			<label for="printtype">Type: </label>
78
			<label for="printtype">[% t('Type:') %] </label>
78
            <input type="text" name="printtype" id="printtype" size="20" maxlength="20" value="[% printtype %]" />
79
            <input type="text" name="printtype" id="printtype" size="20" maxlength="20" value="[% printtype %]" />
79
		</li></ol>
80
		</li></ol>
80
        </fieldset>
81
        </fieldset>
81
        <fieldset class="action"><input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">Cancel</a></fieldset>
82
        <fieldset class="action"><input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">[% t('Cancel') %]</a></fieldset>
82
        </form>
83
        </form>
83
84
84
[% END %]
85
[% END %]
85
86
86
[% IF ( add_validate ) %]
87
[% IF ( add_validate ) %]
87
<h3>Printer added</h3>
88
<h3>[% t('Printer added') %]</h3>
88
<form action="[% script_name %]" method="post">
89
<form action="[% script_name %]" method="post">
89
       <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
90
       <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
90
</form>
91
</form>
Lines 92-127 Link Here
92
93
93
[% IF ( delete_confirm ) %]
94
[% IF ( delete_confirm ) %]
94
    <div class="dialog alert">
95
    <div class="dialog alert">
95
        <h3>Confirm deletion of printer <em>[% searchfield %]</em></h3>
96
        <h3>[% t('Confirm deletion of printer') %] <em>[% searchfield %]</em></h3>
96
97
97
        <table>
98
        <table>
98
            <tr>
99
            <tr>
99
                <th scope="row">Printer: </th><td>[% searchfield %]</td>
100
                <th scope="row">[% t('Printer:') %] </th><td>[% searchfield %]</td>
100
            </tr>
101
            </tr>
101
            <tr>
102
            <tr>
102
                <th scope="row">Queue: </th><td>[% printqueue %]</td>
103
                <th scope="row">[% t('Queue:') %] </th><td>[% printqueue %]</td>
103
            </tr>
104
            </tr>
104
            <tr>
105
            <tr>
105
                <th scope="row">Type: </th><td>[% printtype %]</td>
106
                <th scope="row">[% t('Type:') %] </th><td>[% printtype %]</td>
106
            </tr>
107
            </tr>
107
        </table>
108
        </table>
108
109
109
        <form action="[% script_name %]" method="post">
110
        <form action="[% script_name %]" method="post">
110
            <input type="hidden" name="op" value="delete_confirmed" />
111
            <input type="hidden" name="op" value="delete_confirmed" />
111
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
112
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
112
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
113
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, delete') %]</button>
113
        </form>
114
        </form>
114
        <form action="/cgi-bin/koha/admin/printers.pl" method="get">
115
        <form action="/cgi-bin/koha/admin/printers.pl" method="get">
115
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
116
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> [% t('No, do not delete') %]</button>
116
        </form>
117
        </form>
117
    </div>
118
    </div>
118
[% END %]
119
[% END %]
119
120
120
[% IF ( delete_confirmed ) %]
121
[% IF ( delete_confirmed ) %]
121
    <div class="dialog message">
122
    <div class="dialog message">
122
        <h3>Printer deleted</h3>
123
        <h3>[% t('Printer deleted') %]</h3>
123
        <form action="[% script_name %]" method="post">
124
        <form action="[% script_name %]" method="post">
124
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
125
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('OK') %]</button>
125
        </form>
126
        </form>
126
    </div>
127
    </div>
127
128
Lines 130-151 Link Here
130
[% IF ( else ) %]
131
[% IF ( else ) %]
131
132
132
<div id="toolbar" class="btn-toolbar">
133
<div id="toolbar" class="btn-toolbar">
133
    <a class="btn btn-default btn-sm" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="fa fa-plus"></i> New printer</a>
134
    <a class="btn btn-default btn-sm" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="fa fa-plus"></i> [% t('New printer') %]</a>
134
</div>
135
</div>
135
136
136
<h2>Printers</h2>
137
<h2>[% t('Printers') %]</h2>
137
	[% IF ( searchfield ) %]
138
	[% IF ( searchfield ) %]
138
		You searched for [% searchfield %]</span>
139
		[% t('You searched for') %] [% searchfield %]</span>
139
	[% END %]
140
	[% END %]
140
141
141
[% IF ( loop ) %]
142
[% IF ( loop ) %]
142
    <table id="printerst">
143
    <table id="printerst">
143
        <thead>
144
        <thead>
144
            <tr>
145
            <tr>
145
                <th>Name</th>
146
                <th>[% t('Name') %]</th>
146
                <th>Queue</th>
147
                <th>[% t('Queue') %]</th>
147
                <th>Type</th>
148
                <th>[% t('Type') %]</th>
148
                <th>&nbsp;</th>
149
                <th> </th>
149
            </tr>
150
            </tr>
150
        </thead>
151
        </thead>
151
        <tbody>
152
        <tbody>
Lines 154-164 Link Here
154
			<td>[% loo.printername %]</td>
155
			<td>[% loo.printername %]</td>
155
			<td>[% loo.printqueue %]</td>
156
			<td>[% loo.printqueue %]</td>
156
			<td>[% loo.printtype %]</td>
157
			<td>[% loo.printtype %]</td>
157
            <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.script_name %]?op=add_form&amp;searchfield=[% loo.printername |uri %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="[% loo.script_name %]?op=delete_confirm&amp;searchfield=[% loo.printername |uri %]"><i class="fa fa-trash"></i> Delete</a></td>
158
            <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.script_name %]?op=add_form&searchfield=[% loo.printername |uri %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a> <a class="btn btn-default btn-xs" href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.printername |uri %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
158
		</tr>
159
		</tr>
159
		[% END %]
160
		[% END %]
160
        </tbody>
161
        </tbody>
161
    </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
162
    </table>[% ELSE %]<div class="dialog message">[% t('No printers defined.') %]</div>[% END %]
162
[% END %]
163
[% END %]
163
164
164
</div>
165
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-60 / +61 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Administration &rsaquo; Search engine configuration</title>
4
<title>[% t('Koha › Administration › Search engine configuration') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]
6
[% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]
6
<script type="text/javascript">
7
<script type="text/javascript">
Lines 63-69 a.add, a.delete { Link Here
63
[% INCLUDE 'header.inc' %]
64
[% INCLUDE 'header.inc' %]
64
[% INCLUDE 'prefs-admin-search.inc' %]
65
[% INCLUDE 'prefs-admin-search.inc' %]
65
66
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Search engine configuration') %]</div>
67
68
68
<div id="doc3" class="yui-t1">
69
<div id="doc3" class="yui-t1">
69
70
Lines 75-106 a.add, a.delete { Link Here
75
      <div class="dialog [% m.type %]">
76
      <div class="dialog [% m.type %]">
76
        [% SWITCH m.code %]
77
        [% SWITCH m.code %]
77
        [% CASE 'error_on_update' %]
78
        [% CASE 'error_on_update' %]
78
          An error occurred when updating mappings ([% m.message %]).
79
          [% t('An error occurred when updating mappings (') %][% m.message %]).
79
        [% CASE 'error_on_delete' %]
80
        [% CASE 'error_on_delete' %]
80
          An error occurred when deleting the existing mappings. Nothing has been changed!
81
          [% t('An error occurred when deleting the existing mappings. Nothing has been changed!') %]
81
          (search field [% m.values.field_name %] with mapping [% m.values.marc_field %].)
82
          [% t('(search field') %] [% m.values.field_name %] [% t('with mapping') %] [% m.values.marc_field %].)
82
        [% CASE 'success_on_update' %]
83
        [% CASE 'success_on_update' %]
83
          Mapping updated successfully.
84
          [% t('Mapping updated successfully.') %]
84
        [% CASE %]
85
        [% CASE %]
85
          [% m.code %]
86
          [% m.code %]
86
        [% END %]
87
        [% END %]
87
      </div>
88
      </div>
88
    [% END %]
89
    [% END %]
89
90
90
    <h1>Search engine configuration</h1>
91
    <h1>[% t('Search engine configuration') %]</h1>
91
    <div class="warning">
92
    <div class="warning">
92
        Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
93
        [% t('Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.') %]
93
    </div>
94
    </div>
94
    [% IF errors %]
95
    [% IF errors %]
95
        <div class="error">
96
        <div class="error">
96
        Changes have not been applied. Please check the following values:
97
        [% t('Changes have not been applied. Please check the following values:') %]
97
          <ul>
98
          <ul>
98
            [% FOREACH e IN errors %]
99
            [% FOREACH e IN errors %]
99
                <li>
100
                <li>
100
                    [% IF ( e.type == "malformed_mapping" ) %]
101
                    [% IF ( e.type == "malformed_mapping" ) %]
101
                        The value "[% e.value %]" is not supported for mappings
102
                        [% t('The value &#34;') %][% e.value %][% t('&#34; is not supported for mappings') %]
102
                    [% ELSIF ( e.type == "no_mapping" ) %]
103
                    [% ELSIF ( e.type == "no_mapping" ) %]
103
                        There is no mapping for the index [% e.value %]
104
                        [% t('There is no mapping for the index') %] [% e.value %]
104
                    [% END %]
105
                    [% END %]
105
                </li>
106
                </li>
106
            [% END %]
107
            [% END %]
Lines 112-122 a.add, a.delete { Link Here
112
        <input type="hidden" name="op" value="edit" />
113
        <input type="hidden" name="op" value="edit" />
113
        <div id="tabs" class="toptabs" style="clear:both">
114
        <div id="tabs" class="toptabs" style="clear:both">
114
            <ul>
115
            <ul>
115
                <li><a href="#search_fields">Search fields</a></li>
116
                <li><a href="#search_fields">[% t('Search fields') %]</a></li>
116
                [% FOREACH index IN indexes %]
117
                [% FOREACH index IN indexes %]
117
                    [% SWITCH index.index_name %]
118
                    [% SWITCH index.index_name %]
118
                        [% CASE 'biblios' %]<li><a href="#mapping_biblios">Biblios</a></li>
119
                        [% CASE 'biblios' %]<li><a href="#mapping_biblios">[% t('Biblios') %]</a></li>
119
                        [% CASE 'authorities' %]<li><a href="#mapping_authorities">Authorities</a></li>
120
                        [% CASE 'authorities' %]<li><a href="#mapping_authorities">[% t('Authorities') %]</a></li>
120
                    [% END %]
121
                    [% END %]
121
                [% END %]
122
                [% END %]
122
            </ul>
123
            </ul>
Lines 124-132 a.add, a.delete { Link Here
124
              <table class="search_fields">
125
              <table class="search_fields">
125
                <thead>
126
                <thead>
126
                  <tr>
127
                  <tr>
127
                    <th>Name</th>
128
                    <th>[% t('Name') %]</th>
128
                    <th>Label</th>
129
                    <th>[% t('Label') %]</th>
129
                    <th>Type</th>
130
                    <th>[% t('Type') %]</th>
130
                  </tr>
131
                  </tr>
131
                </thead>
132
                </thead>
132
                <tbody>
133
                <tbody>
Lines 140-168 a.add, a.delete { Link Here
140
                        <select name="search_field_type">
141
                        <select name="search_field_type">
141
                          <option value=""></option>
142
                          <option value=""></option>
142
                          [% IF search_field.type == "string" %]
143
                          [% IF search_field.type == "string" %]
143
                            <option value="string" selected="selected">String</option>
144
                            <option value="string" selected="selected">[% t('String') %]</option>
144
                          [% ELSE %]
145
                          [% ELSE %]
145
                            <option value="string">String</option>
146
                            <option value="string">[% t('String') %]</option>
146
                          [% END %]
147
                          [% END %]
147
                          [% IF search_field.type == "date" %]
148
                          [% IF search_field.type == "date" %]
148
                            <option value="date" selected="selected">Date</option>
149
                            <option value="date" selected="selected">[% t('Date') %]</option>
149
                          [% ELSE %]
150
                          [% ELSE %]
150
                            <option value="date">Date</option>
151
                            <option value="date">[% t('Date') %]</option>
151
                          [% END %]
152
                          [% END %]
152
                          [% IF search_field.type == "number" %]
153
                          [% IF search_field.type == "number" %]
153
                            <option value="number" selected="selected">Number</option>
154
                            <option value="number" selected="selected">[% t('Number') %]</option>
154
                          [% ELSE %]
155
                          [% ELSE %]
155
                            <option value="number">Number</option>
156
                            <option value="number">[% t('Number') %]</option>
156
                          [% END %]
157
                          [% END %]
157
                          [% IF search_field.type == "boolean" %]
158
                          [% IF search_field.type == "boolean" %]
158
                            <option value="boolean" selected="selected">Boolean</option>
159
                            <option value="boolean" selected="selected">[% t('Boolean') %]</option>
159
                          [% ELSE %]
160
                          [% ELSE %]
160
                            <option value="boolean">Boolean</option>
161
                            <option value="boolean">[% t('Boolean') %]</option>
161
                          [% END %]
162
                          [% END %]
162
                          [% IF search_field.type == "sum" %]
163
                          [% IF search_field.type == "sum" %]
163
                            <option value="sum" selected="selected">Sum</option>
164
                            <option value="sum" selected="selected">[% t('Sum') %]</option>
164
                          [% ELSE %]
165
                          [% ELSE %]
165
                            <option value="sum">Sum</option>
166
                            <option value="sum">[% t('Sum') %]</option>
166
                          [% END %]
167
                          [% END %]
167
                        </select>
168
                        </select>
168
                      </td>
169
                      </td>
Lines 176-186 a.add, a.delete { Link Here
176
                    <table class="mappings" data-index_name="[% index.index_name%]">
177
                    <table class="mappings" data-index_name="[% index.index_name%]">
177
                      <thead>
178
                      <thead>
178
                        <tr class="nodrag nodrop">
179
                        <tr class="nodrag nodrop">
179
                          <th>Search field</th>
180
                          <th>[% t('Search field') %]</th>
180
                          <th>Sortable</th>
181
                          <th>[% t('Sortable') %]</th>
181
                          <th>Facetable</th>
182
                          <th>[% t('Facetable') %]</th>
182
                          <th>Suggestible</th>
183
                          <th>[% t('Suggestible') %]</th>
183
                          <th>Mapping</th>
184
                          <th>[% t('Mapping') %]</th>
184
                          <th></th>
185
                          <th></th>
185
                        </tr>
186
                        </tr>
186
                      </thead>
187
                      </thead>
Lines 195-242 a.add, a.delete { Link Here
195
                            <td>
196
                            <td>
196
                              <select name="mapping_sort">
197
                              <select name="mapping_sort">
197
                                [% IF mapping.sort == 'undef' %]
198
                                [% IF mapping.sort == 'undef' %]
198
                                  <option value="undef" selected="selected">Undef</option>
199
                                  <option value="undef" selected="selected">[% t('Undef') %]</option>
199
                                [% ELSE %]
200
                                [% ELSE %]
200
                                  <option value="undef">Undef</option>
201
                                  <option value="undef">[% t('Undef') %]</option>
201
                                [% END %]
202
                                [% END %]
202
                                [% IF mapping.sort == 0 %]
203
                                [% IF mapping.sort == 0 %]
203
                                  <option value="0" selected="selected">0</option>
204
                                  <option value="0" selected="selected">[% t('0') %]</option>
204
                                [% ELSE %]
205
                                [% ELSE %]
205
                                  <option value="0">0</option>
206
                                  <option value="0">[% t('0') %]</option>
206
                                [% END %]
207
                                [% END %]
207
                                [% IF  mapping.sort == 1 %]
208
                                [% IF  mapping.sort == 1 %]
208
                                  <option value="1" selected="selected">1</option>
209
                                  <option value="1" selected="selected">[% t('1') %]</option>
209
                                [% ELSE %]
210
                                [% ELSE %]
210
                                  <option value="1">1</option>
211
                                  <option value="1">[% t('1') %]</option>
211
                                [% END %]
212
                                [% END %]
212
                              </select>
213
                              </select>
213
                            </td>
214
                            </td>
214
                            <td>
215
                            <td>
215
                              <select name="mapping_facet">
216
                              <select name="mapping_facet">
216
                                [% IF mapping.facet %]
217
                                [% IF mapping.facet %]
217
                                  <option value="0">No</option>
218
                                  <option value="0">[% t('No') %]</option>
218
                                  <option value="1" selected="selected">Yes</option>
219
                                  <option value="1" selected="selected">[% t('Yes') %]</option>
219
                                [% ELSE %]
220
                                [% ELSE %]
220
                                  <option value="0" selected="selected">No</option>
221
                                  <option value="0" selected="selected">[% t('No') %]</option>
221
                                  <option value="1">Yes</option>
222
                                  <option value="1">[% t('Yes') %]</option>
222
                                [% END %]
223
                                [% END %]
223
                              </select>
224
                              </select>
224
                            </td>
225
                            </td>
225
                            <td>
226
                            <td>
226
                              <select name="mapping_suggestible">
227
                              <select name="mapping_suggestible">
227
                                [% IF mapping.suggestible %]
228
                                [% IF mapping.suggestible %]
228
                                  <option value="0">No</option>
229
                                  <option value="0">[% t('No') %]</option>
229
                                  <option value="1" selected="selected">Yes</option>
230
                                  <option value="1" selected="selected">[% t('Yes') %]</option>
230
                                [% ELSE %]
231
                                [% ELSE %]
231
                                  <option value="0" selected="selected">No</option>
232
                                  <option value="0" selected="selected">[% t('No') %]</option>
232
                                  <option value="1">Yes</option>
233
                                  <option value="1">[% t('Yes') %]</option>
233
                                [% END %]
234
                                [% END %]
234
                              </select>
235
                              </select>
235
                            </td>
236
                            </td>
236
                            <td>
237
                            <td>
237
                                <input name="mapping_marc_field" type="text" value="[% mapping.marc_field %]" />
238
                                <input name="mapping_marc_field" type="text" value="[% mapping.marc_field %]" />
238
                            </td>
239
                            </td>
239
                            <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
240
                            <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
240
                          </tr>
241
                          </tr>
241
                        [% END %]
242
                        [% END %]
242
                      </tbody>
243
                      </tbody>
Lines 252-293 a.add, a.delete { Link Here
252
                          </td>
253
                          </td>
253
                          <td>
254
                          <td>
254
                            <select data-id="mapping_sort">
255
                            <select data-id="mapping_sort">
255
                              <option value="undef">Undef</option>
256
                              <option value="undef">[% t('Undef') %]</option>
256
                              <option value="0">0</option>
257
                              <option value="0">[% t('0') %]</option>
257
                              <option value="1">1</option>
258
                              <option value="1">[% t('1') %]</option>
258
                            </select>
259
                            </select>
259
                          </td>
260
                          </td>
260
                          <td>
261
                          <td>
261
                            <select data-id="mapping_facet">
262
                            <select data-id="mapping_facet">
262
                              [% IF mapping.facet %]
263
                              [% IF mapping.facet %]
263
                                <option value="0">No</option>
264
                                <option value="0">[% t('No') %]</option>
264
                                <option value="1" selected="selected">Yes</option>
265
                                <option value="1" selected="selected">[% t('Yes') %]</option>
265
                              [% ELSE %]
266
                              [% ELSE %]
266
                                <option value="0" selected="selected">No</option>
267
                                <option value="0" selected="selected">[% t('No') %]</option>
267
                                <option value="1">Yes</option>
268
                                <option value="1">[% t('Yes') %]</option>
268
                              [% END %]
269
                              [% END %]
269
                            </select>
270
                            </select>
270
                          </td>
271
                          </td>
271
                          <td>
272
                          <td>
272
                            <select data-id="mapping_suggestible">
273
                            <select data-id="mapping_suggestible">
273
                              [% IF mapping.suggestible %]
274
                              [% IF mapping.suggestible %]
274
                                <option value="0">No</option>
275
                                <option value="0">[% t('No') %]</option>
275
                                <option value="1" selected="selected">Yes</option>
276
                                <option value="1" selected="selected">[% t('Yes') %]</option>
276
                              [% ELSE %]
277
                              [% ELSE %]
277
                                <option value="0" selected="selected">No</option>
278
                                <option value="0" selected="selected">[% t('No') %]</option>
278
                                <option value="1">Yes</option>
279
                                <option value="1">[% t('Yes') %]</option>
279
                              [% END %]
280
                              [% END %]
280
                            </select>
281
                            </select>
281
                          </td>
282
                          </td>
282
                          <td><input data-id="mapping_marc_field" type="text" /></td>
283
                          <td><input data-id="mapping_marc_field" type="text" /></td>
283
                          <td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td>
284
                          <td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> [% t('Add') %]</a></td>
284
                        </tr>
285
                        </tr>
285
                      </tfoot>
286
                      </tfoot>
286
                    </table>
287
                    </table>
287
                </div>
288
                </div>
288
            [% END %]
289
            [% END %]
289
        </div>
290
        </div>
290
        <p><button class="btn btn-default" type="submit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button></p>
291
        <p><button class="btn btn-default" type="submit"><i class="fa fa-hdd-o" aria-hidden="true"></i> [% t('Save') %]</button></p>
291
    </form>
292
    </form>
292
</div>
293
</div>
293
294
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-228 / +229 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Circulation and fine rules</title>
6
<title>[% t('Koha › Administration › Circulation and fine rules') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
12
[% INCLUDE 'prefs-admin-search.inc' %]
12
13
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Circulation and fine rules') %]</div>
14
15
15
<div id="doc3" class="yui-t1">
16
<div id="doc3" class="yui-t1">
16
17
Lines 19-54 Link Here
19
    <div class="yui-b">
20
    <div class="yui-b">
20
    <h1 class="parameters">
21
    <h1 class="parameters">
21
        [% IF humanbranch %]
22
        [% IF humanbranch %]
22
            Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) %]"
23
            [% t('Defining circulation and fine rules for &#34;') %][% Branches.GetName( humanbranch ) %]"
23
        [% ELSE %]
24
        [% ELSE %]
24
            Defining circulation and fine rules for all libraries
25
            [% t('Defining circulation and fine rules for all libraries') %]
25
        [% END %]
26
        [% END %]
26
    </h1>
27
    </h1>
27
    <div class="help">
28
    <div class="help">
28
        <p>The rules are applied from most specific to less specific, using the first found in this order:</p>
29
        <p>[% t('The rules are applied from most specific to less specific, using the first found in this order:') %]</p>
29
        <ul>
30
        <ul>
30
            <li>same library, same patron category, same item type</li>
31
            <li>[% t('same library, same patron category, same item type') %]</li>
31
            <li>same library, same patron category, all item types</li>
32
            <li>[% t('same library, same patron category, all item types') %]</li>
32
            <li>same library, all patron categories, same item type</li>
33
            <li>[% t('same library, all patron categories, same item type') %]</li>
33
            <li>same library, all patron categories, all item types</li>
34
            <li>[% t('same library, all patron categories, all item types') %]</li>
34
            <li>default (all libraries), same patron category, same item type</li>
35
            <li>[% t('default (all libraries), same patron category, same item type') %]</li>
35
            <li>default (all libraries), same patron category, all item types</li>
36
            <li>[% t('default (all libraries), same patron category, all item types') %]</li>
36
            <li>default (all libraries), all patron categories, same item type</li>
37
            <li>[% t('default (all libraries), all patron categories, same item type') %]</li>
37
            <li>default (all libraries), all patron categories, all item types</li>
38
            <li>[% t('default (all libraries), all patron categories, all item types') %]</li>
38
        </ul>
39
        </ul>
39
        <p>To modify a rule, create a new one with the same patron category and item type.</p>
40
        <p>[% t('To modify a rule, create a new one with the same patron category and item type.') %]</p>
40
    </div>
41
    </div>
41
    <div>
42
    <div>
42
        <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
43
        <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
43
        Select a library :
44
        [% t('Select a library :') %]
44
            <select name="branch" id="branch" style="width:20em;">
45
            <select name="branch" id="branch" style="width:20em;">
45
                <option value="*">Standard rules for all libraries</option>
46
                <option value="*">[% t('Standard rules for all libraries') %]</option>
46
                [% PROCESS options_for_libraries libraries => Branches.all( selected => current_branch, unfiltered => 1 ) %]
47
                [% PROCESS options_for_libraries libraries => Branches.all( selected => current_branch, unfiltered => 1 ) %]
47
            </select>
48
            </select>
48
        </form>
49
        </form>
49
        [% IF ( definedbranch ) %]
50
        [% IF ( definedbranch ) %]
50
            <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
51
            <form action="/cgi-bin/koha/admin/clone-rules.pl" method="post">
51
                <label for="tobranch"><strong>Clone these rules to:</strong></label>
52
                <label for="tobranch"><strong>[% t('Clone these rules to:') %]</strong></label>
52
                <input type="hidden" name="frombranch" value="[% current_branch %]" />
53
                <input type="hidden" name="frombranch" value="[% current_branch %]" />
53
                <select name="tobranch" id="tobranch">
54
                <select name="tobranch" id="tobranch">
54
                    [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
55
                    [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
Lines 59-128 Link Here
59
60
60
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
61
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
61
            <input type="hidden" name="op" value="add" />
62
            <input type="hidden" name="op" value="add" />
62
            <input type="hidden" name="branch" value="[% current_branch %]"/>
63
            <input type="hidden" name="branch" value="[% current_branch %]" />
63
            <table id="default-circulation-rules">
64
            <table id="default-circulation-rules">
64
            <thead>
65
            <thead>
65
            <tr>
66
            <tr>
66
                <th>Patron category</th>
67
                <th>[% t('Patron category') %]</th>
67
                <th>Item type</th>
68
                <th>[% t('Item type') %]</th>
68
                <th>Actions</th>
69
                <th>[% t('Actions') %]</th>
69
                <th>Current checkouts allowed</th>
70
                <th>[% t('Current checkouts allowed') %]</th>
70
                <th>Current on-site checkouts allowed</th>
71
                <th>[% t('Current on-site checkouts allowed') %]</th>
71
                <th>Loan period</th>
72
                <th>[% t('Loan period') %]</th>
72
                <th>Unit</th>
73
                <th>[% t('Unit') %]</th>
73
                <th>Hard due date</th>
74
                <th>[% t('Hard due date') %]</th>
74
                <th>Fine amount</th>
75
                <th>[% t('Fine amount') %]</th>
75
                <th>Fine charging interval</th>
76
                <th>[% t('Fine charging interval') %]</th>
76
                <th>When to charge</th>
77
                <th>[% t('When to charge') %]</th>
77
                <th>Fine grace period</th>
78
                <th>[% t('Fine grace period') %]</th>
78
                <th>Overdue fines cap (amount)</th>
79
                <th>[% t('Overdue fines cap (amount)') %]</th>
79
                <th>Cap fine at replacement price</th>
80
                <th>[% t('Cap fine at replacement price') %]</th>
80
                <th>Suspension in days (day)</th>
81
                <th>[% t('Suspension in days (day)') %]</th>
81
                <th>Max. suspension duration (day)</th>
82
                <th>[% t('Max. suspension duration (day)') %]</th>
82
                <th>Suspension charging interval</th>
83
                <th>[% t('Suspension charging interval') %]</th>
83
                <th>Renewals allowed (count)</th>
84
                <th>[% t('Renewals allowed (count)') %]</th>
84
                <th>Renewal period</th>
85
                <th>[% t('Renewal period') %]</th>
85
                <th>No renewal before</th>
86
                <th>[% t('No renewal before') %]</th>
86
                <th>Automatic renewal</th>
87
                <th>[% t('Automatic renewal') %]</th>
87
                <th>No automatic renewal after</th>
88
                <th>[% t('No automatic renewal after') %]</th>
88
                <th>No automatic renewal after (hard limit)</th>
89
                <th>[% t('No automatic renewal after (hard limit)') %]</th>
89
                <th>Holds allowed (count)</th>
90
                <th>[% t('Holds allowed (count)') %]</th>
90
                <th>Holds per record (count)</th>
91
                <th>[% t('Holds per record (count)') %]</th>
91
                <th>On shelf holds allowed</th>
92
                <th>[% t('On shelf holds allowed') %]</th>
92
                <th>Item level holds</th>
93
                <th>[% t('Item level holds') %]</th>
93
                <th>Article requests</th>
94
                <th>[% t('Article requests') %]</th>
94
                <th>Rental discount (%)</th>
95
                <th>[% t('Rental discount (%)') %]</th>
95
                <th>Actions</th>
96
                <th>[% t('Actions') %]</th>
96
            </tr>
97
            </tr>
97
            </thead>
98
            </thead>
98
            <tbody>
99
            <tbody>
99
				[% FOREACH rule IN rules %]
100
				[% FOREACH rule IN rules %]
100
					<tr id="row_[% loop.count %]">
101
					<tr id="row_[% loop.count %]">
101
							<td>[% IF ( rule.default_humancategorycode ) %]
102
							<td>[% IF ( rule.default_humancategorycode ) %]
102
									<em>All</em>
103
									<em>[% t('All') %]</em>
103
								[% ELSE %]
104
								[% ELSE %]
104
									[% rule.humancategorycode %]
105
									[% rule.humancategorycode %]
105
								[% END %]
106
								[% END %]
106
							</td>
107
							</td>
107
                            <td>[% IF rule.default_translated_description %]
108
                            <td>[% IF rule.default_translated_description %]
108
									<em>All</em>
109
									<em>[% t('All') %]</em>
109
								[% ELSE %]
110
								[% ELSE %]
110
									[% rule.translated_description %]
111
									[% rule.translated_description %]
111
								[% END %]
112
								[% END %]
112
							</td>
113
							</td>
113
                                                        <td class="actions">
114
                                                        <td class="actions">
114
                                                          <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
115
                                                          <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
115
                                                          <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype %]&amp;categorycode=[% rule.categorycode %]&amp;branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a>
116
                                                          <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
116
                                                        </td>
117
                                                        </td>
117
118
118
							<td>[% IF ( rule.unlimited_maxissueqty ) %]
119
							<td>[% IF ( rule.unlimited_maxissueqty ) %]
119
									<span>Unlimited</span>
120
									<span>[% t('Unlimited') %]</span>
120
								[% ELSE %]
121
								[% ELSE %]
121
									[% rule.maxissueqty %]
122
									[% rule.maxissueqty %]
122
								[% END %]
123
								[% END %]
123
							</td>
124
							</td>
124
                            <td>[% IF rule.unlimited_maxonsiteissueqty %]
125
                            <td>[% IF rule.unlimited_maxonsiteissueqty %]
125
                                    <span>Unlimited</span>
126
                                    <span>[% t('Unlimited') %]</span>
126
                                [% ELSE %]
127
                                [% ELSE %]
127
                                    [% rule.maxonsiteissueqty %]
128
                                    [% rule.maxonsiteissueqty %]
128
                                [% END %]
129
                                [% END %]
Lines 134-159 Link Here
134
                            <td>
135
                            <td>
135
                              [% IF ( rule.hardduedate ) %]
136
                              [% IF ( rule.hardduedate ) %]
136
                                [% IF ( rule.hardduedatebefore ) %]
137
                                [% IF ( rule.hardduedatebefore ) %]
137
                                  before [% rule.hardduedate %]
138
                                  [% t('before') %] [% rule.hardduedate %]
138
                                  <input type="hidden" name="hardduedatecomparebackup" value="-1" />
139
                                  <input type="hidden" name="hardduedatecomparebackup" value="-1" />
139
                                [% ELSIF ( rule.hardduedateexact ) %]
140
                                [% ELSIF ( rule.hardduedateexact ) %]
140
                                  on [% rule.hardduedate %]
141
                                  [% t('on') %] [% rule.hardduedate %]
141
                                  <input type="hidden" name="hardduedatecomparebackup" value="0" />
142
                                  <input type="hidden" name="hardduedatecomparebackup" value="0" />
142
                                [% ELSIF ( rule.hardduedateafter ) %]
143
                                [% ELSIF ( rule.hardduedateafter ) %]
143
                                  after [% rule.hardduedate %]
144
                                  [% t('after') %] [% rule.hardduedate %]
144
                                  <input type="hidden" name="hardduedatecomparebackup" value="1" />
145
                                  <input type="hidden" name="hardduedatecomparebackup" value="1" />
145
                                [% END %]
146
                                [% END %]
146
                              [% ELSE %]
147
                              [% ELSE %]
147
                                <span>None defined</span>
148
                                <span>[% t('None defined') %]</span>
148
                              [% END %]
149
                              [% END %]
149
                            </td>
150
                            </td>
150
							<td>[% rule.fine %]</td>
151
							<td>[% rule.fine %]</td>
151
							<td>[% rule.chargeperiod %]</td>
152
							<td>[% rule.chargeperiod %]</td>
152
                            <td>
153
                            <td>
153
                                [% IF rule.chargeperiod_charge_at %]
154
                                [% IF rule.chargeperiod_charge_at %]
154
                                    <span>Start of interval</span>
155
                                    <span>[% t('Start of interval') %]</span>
155
                                [% ELSE %]
156
                                [% ELSE %]
156
                                    <span>End of interval</span>
157
                                    <span>[% t('End of interval') %]</span>
157
                                [% END %]
158
                                [% END %]
158
                            </td>
159
                            </td>
159
							<td>[% rule.firstremind %]</td>
160
							<td>[% rule.firstremind %]</td>
Lines 173-181 Link Here
173
                            <td>[% rule.norenewalbefore %]</td>
174
                            <td>[% rule.norenewalbefore %]</td>
174
                            <td>
175
                            <td>
175
                                [% IF ( rule.auto_renew ) %]
176
                                [% IF ( rule.auto_renew ) %]
176
                                    <span>Yes</span>
177
                                    <span>[% t('Yes') %]</span>
177
                                [% ELSE %]
178
                                [% ELSE %]
178
                                    <span>No</span>
179
                                    <span>[% t('No') %]</span>
179
                                [% END %]
180
                                [% END %]
180
                            </td>
181
                            </td>
181
                            <td>[% rule.no_auto_renewal_after %]</td>
182
                            <td>[% rule.no_auto_renewal_after %]</td>
Lines 184-220 Link Here
184
                                                        <td>[% rule.holds_per_record %]</td>
185
                                                        <td>[% rule.holds_per_record %]</td>
185
                                                        <td>
186
                                                        <td>
186
                                                            [% IF rule.onshelfholds == 1 %]
187
                                                            [% IF rule.onshelfholds == 1 %]
187
                                                                <span>Yes</span>
188
                                                                <span>[% t('Yes') %]</span>
188
                                                            [% ELSIF rule.onshelfholds == 2 %]
189
                                                            [% ELSIF rule.onshelfholds == 2 %]
189
                                                                <span>If all unavailable</span>
190
                                                                <span>[% t('If all unavailable') %]</span>
190
                                                            [% ELSE %]
191
                                                            [% ELSE %]
191
                                                                <span>If any unavailable</span>
192
                                                                <span>[% t('If any unavailable') %]</span>
192
                                                            [% END %]
193
                                                            [% END %]
193
                                                        </td>
194
                                                        </td>
194
                                                        <td>
195
                                                        <td>
195
                                                            [% IF rule.opacitemholds == 'F'%]
196
                                                            [% IF rule.opacitemholds == 'F'%]
196
                                                                <span>Force</span>
197
                                                                <span>[% t('Force') %]</span>
197
                                                            [% ELSIF rule.opacitemholds == 'Y'%]
198
                                                            [% ELSIF rule.opacitemholds == 'Y'%]
198
                                                                <span>Allow</span>
199
                                                                <span>[% t('Allow') %]</span>
199
                                                            [% ELSE %]
200
                                                            [% ELSE %]
200
                                                                <span>Don't allow</span>
201
                                                                <span>[% t('Don\'t allow') %]</span>
201
                                                            [% END %]
202
                                                            [% END %]
202
                                                        </td>
203
                                                        </td>
203
                                                        <td>
204
                                                        <td>
204
                                                            [% IF rule.article_requests == 'no' %]
205
                                                            [% IF rule.article_requests == 'no' %]
205
                                                                <span>No</span>
206
                                                                <span>[% t('No') %]</span>
206
                                                            [% ELSIF rule.article_requests == 'yes' %]
207
                                                            [% ELSIF rule.article_requests == 'yes' %]
207
                                                                <span>Yes</span>
208
                                                                <span>[% t('Yes') %]</span>
208
                                                            [% ELSIF rule.article_requests == 'bib_only' %]
209
                                                            [% ELSIF rule.article_requests == 'bib_only' %]
209
                                                                <span>Record only</span>
210
                                                                <span>[% t('Record only') %]</span>
210
                                                            [% ELSIF rule.article_requests == 'item_only' %]
211
                                                            [% ELSIF rule.article_requests == 'item_only' %]
211
                                                                <span>Item only</span>
212
                                                                <span>[% t('Item only') %]</span>
212
                                                            [% END %]
213
                                                            [% END %]
213
                                                        </td>
214
                                                        </td>
214
							<td>[% rule.rentaldiscount %]</td>
215
							<td>[% rule.rentaldiscount %]</td>
215
                                                        <td class="actions">
216
                                                        <td class="actions">
216
                                                          <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
217
                                                          <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
217
                                                          <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype %]&amp;categorycode=[% rule.categorycode %]&amp;branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a>
218
                                                          <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
218
                                                        </td>
219
                                                        </td>
219
220
220
                	</tr>
221
                	</tr>
Lines 222-228 Link Here
222
                <tr id="edit_row">
223
                <tr id="edit_row">
223
                    <td>
224
                    <td>
224
                        <select name="categorycode" id="categorycode">
225
                        <select name="categorycode" id="categorycode">
225
                            <option value="*">All</option>
226
                            <option value="*">[% t('All') %]</option>
226
                        [% FOREACH patron_category IN patron_categories%]
227
                        [% FOREACH patron_category IN patron_categories%]
227
                            <option value="[% patron_category.categorycode %]">[% patron_category.description %]</option>
228
                            <option value="[% patron_category.categorycode %]">[% patron_category.description %]</option>
228
                        [% END %]
229
                        [% END %]
Lines 230-260 Link Here
230
                    </td>
231
                    </td>
231
                    <td>
232
                    <td>
232
                        <select name="itemtype" id="matrixitemtype" style="width:13em;">
233
                        <select name="itemtype" id="matrixitemtype" style="width:13em;">
233
                            <option value="*">All</option>
234
                            <option value="*">[% t('All') %]</option>
234
                        [% FOREACH itemtypeloo IN itemtypeloop %]
235
                        [% FOREACH itemtypeloo IN itemtypeloop %]
235
                            <option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.translated_description %]</option>
236
                            <option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.translated_description %]</option>
236
                        [% END %]
237
                        [% END %]
237
                        </select>
238
                        </select>
238
                    </td>
239
                    </td>
239
                    <td class="actions">
240
                    <td class="actions">
240
                        <input type="hidden" name="branch" value="[% current_branch %]"/>
241
                        <input type="hidden" name="branch" value="[% current_branch %]" />
241
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
242
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> [% t('Save') %]</button>
242
                        <button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button>
243
                        <button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> [% t('Clear') %]</button>
243
                    </td>
244
                    </td>
244
                    <td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td>
245
                    <td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td>
245
                    <td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td>
246
                    <td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td>
246
                    <td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
247
                    <td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
247
                    <td>
248
                    <td>
248
                      <select name="lengthunit" id="lengthunit">
249
                      <select name="lengthunit" id="lengthunit">
249
                        <option value="days" selected="selected">Days</option>
250
                        <option value="days" selected="selected">[% t('Days') %]</option>
250
                        <option value="hours">Hours</option>
251
                        <option value="hours">[% t('Hours') %]</option>
251
                      </select>
252
                      </select>
252
                    </td>
253
                    </td>
253
                    <td>
254
                    <td>
254
                        <select name="hardduedatecompare" id="hardduedatecompare">
255
                        <select name="hardduedatecompare" id="hardduedatecompare">
255
                           <option value="-1">Before</option>
256
                           <option value="-1">[% t('Before') %]</option>
256
                           <option value="0">Exactly on</option>
257
                           <option value="0">[% t('Exactly on') %]</option>
257
                           <option value="1">After</option>
258
                           <option value="1">[% t('After') %]</option>
258
                        </select>
259
                        </select>
259
                        <input type="text" size="10" id="hardduedate" name="hardduedate" value="[% hardduedate %]" class="datepicker" />
260
                        <input type="text" size="10" id="hardduedate" name="hardduedate" value="[% hardduedate %]" class="datepicker" />
260
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
261
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
Lines 263-270 Link Here
263
                    <td><input type="text" name="chargeperiod" id="chargeperiod" size="2" /></td>
264
                    <td><input type="text" name="chargeperiod" id="chargeperiod" size="2" /></td>
264
                    <td>
265
                    <td>
265
                        <select name="chargeperiod_charge_at" id="chargeperiod_charge_at">
266
                        <select name="chargeperiod_charge_at" id="chargeperiod_charge_at">
266
                           <option value="0">End of interval</option>
267
                           <option value="0">[% t('End of interval') %]</option>
267
                           <option value="1">Start of interval</option>
268
                           <option value="1">[% t('Start of interval') %]</option>
268
                        </select>
269
                        </select>
269
                    </td>
270
                    </td>
270
                    <td><input type="text" name="firstremind" id="firstremind" size="2" /> </td>
271
                    <td><input type="text" name="firstremind" id="firstremind" size="2" /> </td>
Lines 278-355 Link Here
278
                    <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td>
279
                    <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td>
279
                    <td>
280
                    <td>
280
                        <select name="auto_renew" id="auto_renew">
281
                        <select name="auto_renew" id="auto_renew">
281
                            <option value="no" selected>No</option>
282
                            <option value="no" selected="">[% t('No') %]</option>
282
                            <option value="yes">Yes</option>
283
                            <option value="yes">[% t('Yes') %]</option>
283
                        </select>
284
                        </select>
284
                    </td>
285
                    </td>
285
                    <td><input type="text" name="no_auto_renewal_after" id="no_auto_renewal_after" size="3" /></td>
286
                    <td><input type="text" name="no_auto_renewal_after" id="no_auto_renewal_after" size="3" /></td>
286
                    <td>
287
                    <td>
287
                        <input type="text" size="10" name="no_auto_renewal_after_hard_limit" id="no_auto_renewal_after_hard_limit" value="[% no_auto_renewal_after_hard_limit %]" class="datepicker"/>
288
                        <input type="text" size="10" name="no_auto_renewal_after_hard_limit" id="no_auto_renewal_after_hard_limit" value="[% no_auto_renewal_after_hard_limit %]" class="datepicker" />
288
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
289
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
289
                    </td>
290
                    </td>
290
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
291
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
291
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
292
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
292
                    <td>
293
                    <td>
293
                        <select name="onshelfholds" id="onshelfholds">
294
                        <select name="onshelfholds" id="onshelfholds">
294
                            <option value="1">Yes</option>
295
                            <option value="1">[% t('Yes') %]</option>
295
                            <option value="0">If any unavailable</option>
296
                            <option value="0">[% t('If any unavailable') %]</option>
296
                            <option value="2">If all unavailable</option>
297
                            <option value="2">[% t('If all unavailable') %]</option>
297
                        </select>
298
                        </select>
298
                    </td>
299
                    </td>
299
                    <td>
300
                    <td>
300
                        <select id="opacitemholds" name="opacitemholds">
301
                        <select id="opacitemholds" name="opacitemholds">
301
                            <option value="N">Don't allow</option>
302
                            <option value="N">[% t('Don\'t allow') %]</option>
302
                            <option value="Y">Allow</option>
303
                            <option value="Y">[% t('Allow') %]</option>
303
                            <option value="F">Force</option>
304
                            <option value="F">[% t('Force') %]</option>
304
                        </select>
305
                        </select>
305
                    </td>
306
                    </td>
306
                    <td>
307
                    <td>
307
                        <select id="article_requests" name="article_requests">
308
                        <select id="article_requests" name="article_requests">
308
                            <option value="no">No</option>
309
                            <option value="no">[% t('No') %]</option>
309
                            <option value="yes">Yes</option>
310
                            <option value="yes">[% t('Yes') %]</option>
310
                            <option value="bib_only">Record only</option>
311
                            <option value="bib_only">[% t('Record only') %]</option>
311
                            <option value="item_only">Item only</option>
312
                            <option value="item_only">[% t('Item only') %]</option>
312
                        </select>
313
                        </select>
313
                    </td>
314
                    </td>
314
                    <td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td>
315
                    <td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td>
315
                    <td class="actions">
316
                    <td class="actions">
316
                        <input type="hidden" name="branch" value="[% current_branch %]"/>
317
                        <input type="hidden" name="branch" value="[% current_branch %]" />
317
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
318
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> [% t('Save') %]</button>
318
                        <button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button>
319
                        <button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> [% t('Clear') %]</button>
319
                    </td>
320
                    </td>
320
                </tr>
321
                </tr>
321
                <tfoot>
322
                <tfoot>
322
                    <tr>
323
                    <tr>
323
                      <th>Patron category</th>
324
                      <th>[% t('Patron category') %]</th>
324
                      <th>Item type</th>
325
                      <th>[% t('Item type') %]</th>
325
                      <th>&nbsp;</th>
326
                      <th> </th>
326
                      <th>Current checkouts allowed</th>
327
                      <th>[% t('Current checkouts allowed') %]</th>
327
                      <th>Current on-site checkouts allowed</th>
328
                      <th>[% t('Current on-site checkouts allowed') %]</th>
328
                      <th>Loan period</th>
329
                      <th>[% t('Loan period') %]</th>
329
                      <th>Unit</th>
330
                      <th>[% t('Unit') %]</th>
330
                      <th>Hard due date</th>
331
                      <th>[% t('Hard due date') %]</th>
331
                      <th>Fine amount</th>
332
                      <th>[% t('Fine amount') %]</th>
332
                      <th>Fine charging interval</th>
333
                      <th>[% t('Fine charging interval') %]</th>
333
                      <th>Charge when?</th>
334
                      <th>[% t('Charge when?') %]</th>
334
                      <th>Fine grace period</th>
335
                      <th>[% t('Fine grace period') %]</th>
335
                      <th>Overdue fines cap (amount)</th>
336
                      <th>[% t('Overdue fines cap (amount)') %]</th>
336
                      <th>Cap fine at replacement price</th>
337
                      <th>[% t('Cap fine at replacement price') %]</th>
337
                      <th>Suspension in days (day)</th>
338
                      <th>[% t('Suspension in days (day)') %]</th>
338
                      <th>Max. suspension duration (day)</th>
339
                      <th>[% t('Max. suspension duration (day)') %]</th>
339
                      <th>Suspension charging interval</th>
340
                      <th>[% t('Suspension charging interval') %]</th>
340
                      <th>Renewals allowed (count)</th>
341
                      <th>[% t('Renewals allowed (count)') %]</th>
341
                      <th>Renewal period</th>
342
                      <th>[% t('Renewal period') %]</th>
342
                      <th>No renewal before</th>
343
                      <th>[% t('No renewal before') %]</th>
343
                      <th>Automatic renewal</th>
344
                      <th>[% t('Automatic renewal') %]</th>
344
                      <th>No automatic renewal after</th>
345
                      <th>[% t('No automatic renewal after') %]</th>
345
                       <th>No automatic renewal after (hard limit)</th>
346
                       <th>[% t('No automatic renewal after (hard limit)') %]</th>
346
                      <th>Holds allowed (count)</th>
347
                      <th>[% t('Holds allowed (count)') %]</th>
347
                      <th>Holds per record (count)</th>
348
                      <th>[% t('Holds per record (count)') %]</th>
348
                      <th>On shelf holds allowed</th>
349
                      <th>[% t('On shelf holds allowed') %]</th>
349
                      <th>Item level holds</th>
350
                      <th>[% t('Item level holds') %]</th>
350
                      <th>Article requests</th>
351
                      <th>[% t('Article requests') %]</th>
351
                      <th>Rental discount (%)</th>
352
                      <th>[% t('Rental discount (%)') %]</th>
352
                      <th>&nbsp;</th>
353
                      <th> </th>
353
                    </tr>
354
                    </tr>
354
                  </tfoot>
355
                  </tfoot>
355
                </tbody>
356
                </tbody>
Lines 357-381 Link Here
357
        </form>
358
        </form>
358
    </div>
359
    </div>
359
    <div id="defaults-for-this-library" class="container">
360
    <div id="defaults-for-this-library" class="container">
360
    <h3>Default checkout, hold and return policy[% IF humanbranch %] for [% Branches.GetName( humanbranch ) %][% END %]</h3>
361
    <h3>[% t('Default checkout, hold and return policy') %][% IF humanbranch %] [% t('for') %] [% Branches.GetName( humanbranch ) %][% END %]</h3>
361
        <p>You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.</p>
362
        <p>[% t('You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.') %]</p>
362
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
363
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
363
            <input type="hidden" name="op" value="set-branch-defaults" />
364
            <input type="hidden" name="op" value="set-branch-defaults" />
364
            <input type="hidden" name="branch" value="[% current_branch %]"/>
365
            <input type="hidden" name="branch" value="[% current_branch %]" />
365
            <table>
366
            <table>
366
                <tr>
367
                <tr>
367
                    <th>&nbsp;</th>
368
                    <th> </th>
368
                    <th>Total current checkouts allowed</th>
369
                    <th>[% t('Total current checkouts allowed') %]</th>
369
                    <th>Total current on-site checkouts allowed</th>
370
                    <th>[% t('Total current on-site checkouts allowed') %]</th>
370
                    <th>Hold policy</th>
371
                    <th>[% t('Hold policy') %]</th>
371
                    <th>Hold pickup library match</th>
372
                    <th>[% t('Hold pickup library match') %]</th>
372
                    <th>Return policy</th>
373
                    <th>[% t('Return policy') %]</th>
373
                    <th>Actions</th>
374
                    <th>[% t('Actions') %]</th>
374
                </tr>
375
                </tr>
375
                <tr>
376
                <tr>
376
                    <td><em>Defaults[% UNLESS ( default_rules ) %] (not set)[% END %]</em></td>
377
                    <td><em>[% t('Defaults') %][% UNLESS ( default_rules ) %] [% t('(not set)') %][% END %]</em></td>
377
                    <td><input type="text" name="maxissueqty" size="3" value="[% default_maxissueqty %]"/></td>
378
                    <td><input type="text" name="maxissueqty" size="3" value="[% default_maxissueqty %]" /></td>
378
                    <td><input type="text" name="maxonsiteissueqty" size="3" value="[% default_maxonsiteissueqty %]"/></td>
379
                    <td><input type="text" name="maxonsiteissueqty" size="3" value="[% default_maxonsiteissueqty %]" /></td>
379
                    <td>
380
                    <td>
380
                        <select name="holdallowed">
381
                        <select name="holdallowed">
381
                            [% IF ( default_holdallowed_any ) %]
382
                            [% IF ( default_holdallowed_any ) %]
Lines 383-403 Link Here
383
                            [% ELSE %]
384
                            [% ELSE %]
384
                            <option value="2">
385
                            <option value="2">
385
                            [% END %]
386
                            [% END %]
386
                                From any library
387
                                [% t('From any library') %]
387
                            </option>
388
                            </option>
388
                            [% IF ( default_holdallowed_same ) %]
389
                            [% IF ( default_holdallowed_same ) %]
389
                            <option value="1" selected="selected">
390
                            <option value="1" selected="selected">
390
                            [% ELSE %]
391
                            [% ELSE %]
391
                            <option value="1">
392
                            <option value="1">
392
                            [% END %]
393
                            [% END %]
393
                                From home library
394
                                [% t('From home library') %]
394
                            </option>
395
                            </option>
395
                            [% IF ( default_holdallowed_none ) %]
396
                            [% IF ( default_holdallowed_none ) %]
396
                            <option value="0" selected="selected">
397
                            <option value="0" selected="selected">
397
                            [% ELSE %]
398
                            [% ELSE %]
398
                            <option value="0">
399
                            <option value="0">
399
                            [% END %]
400
                            [% END %]
400
                                No holds allowed
401
                                [% t('No holds allowed') %]
401
                            </option>
402
                            </option>
402
                        </select>
403
                        </select>
403
                    </td>
404
                    </td>
Lines 405-435 Link Here
405
                        <select name="hold_fulfillment_policy">
406
                        <select name="hold_fulfillment_policy">
406
                            [% IF default_hold_fulfillment_policy == 'any' %]
407
                            [% IF default_hold_fulfillment_policy == 'any' %]
407
                                <option value="any" selected="selected">
408
                                <option value="any" selected="selected">
408
                                    any library
409
                                    [% t('any library') %]
409
                                </option>
410
                                </option>
410
                            [% ELSE %]
411
                            [% ELSE %]
411
                                <option value="any">
412
                                <option value="any">
412
                                    any library
413
                                    [% t('any library') %]
413
                                </option>
414
                                </option>
414
                            [% END %]
415
                            [% END %]
415
416
416
                            [% IF default_hold_fulfillment_policy == 'homebranch' %]
417
                            [% IF default_hold_fulfillment_policy == 'homebranch' %]
417
                                <option value="homebranch" selected="selected">
418
                                <option value="homebranch" selected="selected">
418
                                    item's home library
419
                                    [% t('item\'s home library') %]
419
                                </option>
420
                                </option>
420
                            [% ELSE %]
421
                            [% ELSE %]
421
                                <option value="homebranch">
422
                                <option value="homebranch">
422
                                    item's home library
423
                                    [% t('item\'s home library') %]
423
                                </option>
424
                                </option>
424
                            [% END %]
425
                            [% END %]
425
426
426
                            [% IF default_hold_fulfillment_policy == 'holdingbranch' %]
427
                            [% IF default_hold_fulfillment_policy == 'holdingbranch' %]
427
                                <option value="holdingbranch" selected="selected">
428
                                <option value="holdingbranch" selected="selected">
428
                                    item's holding library
429
                                    [% t('item\'s holding library') %]
429
                                </option>
430
                                </option>
430
                            [% ELSE %]
431
                            [% ELSE %]
431
                                <option value="holdingbranch">
432
                                <option value="holdingbranch">
432
                                    item's holding library
433
                                    [% t('item\'s holding library') %]
433
                                </option>
434
                                </option>
434
                            [% END %]
435
                            [% END %]
435
                        </select>
436
                        </select>
Lines 441-467 Link Here
441
                            [% ELSE %]
442
                            [% ELSE %]
442
                            <option value="homebranch">
443
                            <option value="homebranch">
443
                            [% END %]
444
                            [% END %]
444
                                Item returns home
445
                                [% t('Item returns home') %]
445
                            </option>
446
                            </option>
446
                            [% IF ( default_returnbranch == 'holdingbranch' ) %]
447
                            [% IF ( default_returnbranch == 'holdingbranch' ) %]
447
                            <option value="holdingbranch" selected="selected">
448
                            <option value="holdingbranch" selected="selected">
448
                            [% ELSE %]
449
                            [% ELSE %]
449
                            <option value="holdingbranch">
450
                            <option value="holdingbranch">
450
                            [% END %]
451
                            [% END %]
451
                                Item returns to issuing library
452
                                [% t('Item returns to issuing library') %]
452
                            </option>
453
                            </option>
453
                            [% IF ( default_returnbranch == 'noreturn' ) %]
454
                            [% IF ( default_returnbranch == 'noreturn' ) %]
454
                            <option value="noreturn" selected="selected">
455
                            <option value="noreturn" selected="selected">
455
                            [% ELSE %]
456
                            [% ELSE %]
456
                            <option value="noreturn">
457
                            <option value="noreturn">
457
                            [% END %]
458
                            [% END %]
458
                                Item floats
459
                                [% t('Item floats') %]
459
                            </option>
460
                            </option>
460
                        </select>
461
                        </select>
461
                    </td>
462
                    </td>
462
                    <td class="actions">
463
                    <td class="actions">
463
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
464
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> [% t('Save') %]</button>
464
                        <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=*&amp;branch=[% current_branch %]" id="unset"><i class="fa fa-undo"></i> Unset</a>
465
                        <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=*&branch=[% current_branch %]" id="unset"><i class="fa fa-undo"></i> [% t('Unset') %]</a>
465
                    </td>
466
                    </td>
466
                </tr>
467
                </tr>
467
            </table>
468
            </table>
Lines 469-490 Link Here
469
    </div>
470
    </div>
470
    [% IF ( show_branch_cat_rule_form ) %]
471
    [% IF ( show_branch_cat_rule_form ) %]
471
    <div id="holds-policy-by-patron-category" class="container">
472
    <div id="holds-policy-by-patron-category" class="container">
472
    <h3>[% IF humanbranch %]Checkout limit by patron category for [% Branches.GetName( humanbranch ) %][% ELSE %]Default checkout limit by patron category[% END %]</h3>
473
    <h3>[% IF humanbranch %][% t('Checkout limit by patron category for') %] [% Branches.GetName( humanbranch ) %][% ELSE %][% t('Default checkout limit by patron category') %][% END %]</h3>
473
        <p>For this library, you can specify the maximum number of loans that
474
        <p>[% t('For this library, you can specify the maximum number of loans that') %]
474
            a patron of a given category can make, regardless of the item type.
475
            [% t('a patron of a given category can make, regardless of the item type.') %]
475
        </p>
476
        </p>
476
        <p>If the total amount loanable for a given patron category is left blank,
477
        <p>[% t('If the total amount loanable for a given patron category is left blank,') %]
477
           no limit applies, except possibly for a limit you define for a specific item type.
478
           [% t('no limit applies, except possibly for a limit you define for a specific item type.') %]
478
        </p>
479
        </p>
479
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
480
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
480
            <input type="hidden" name="op" value="add-branch-cat" />
481
            <input type="hidden" name="op" value="add-branch-cat" />
481
            <input type="hidden" name="branch" value="[% current_branch %]"/>
482
            <input type="hidden" name="branch" value="[% current_branch %]" />
482
            <table>
483
            <table>
483
                <tr>
484
                <tr>
484
                    <th>Patron category</th>
485
                    <th>[% t('Patron category') %]</th>
485
                    <th>Total current checkouts allowed</th>
486
                    <th>[% t('Total current checkouts allowed') %]</th>
486
                    <th>Total current on-site checkouts allowed</th>
487
                    <th>[% t('Total current on-site checkouts allowed') %]</th>
487
                    <th>&nbsp;</th>
488
                    <th> </th>
488
                </tr>
489
                </tr>
489
                [% FOREACH branch_cat_rule_loo IN branch_cat_rule_loop %]
490
                [% FOREACH branch_cat_rule_loo IN branch_cat_rule_loop %]
490
                    [% UNLESS ( loop.odd ) %]
491
                    [% UNLESS ( loop.odd ) %]
Lines 493-518 Link Here
493
                    <tr>
494
                    <tr>
494
                    [% END %]
495
                    [% END %]
495
                        <td>[% IF ( branch_cat_rule_loo.default_humancategorycode ) %]
496
                        <td>[% IF ( branch_cat_rule_loo.default_humancategorycode ) %]
496
                                <em>Default</em>
497
                                <em>[% t('Default') %]</em>
497
                            [% ELSE %]
498
                            [% ELSE %]
498
                                [% branch_cat_rule_loo.humancategorycode %]
499
                                [% branch_cat_rule_loo.humancategorycode %]
499
                            [% END %]
500
                            [% END %]
500
                        </td>
501
                        </td>
501
                        <td>[% IF ( branch_cat_rule_loo.unlimited_maxissueqty ) %]
502
                        <td>[% IF ( branch_cat_rule_loo.unlimited_maxissueqty ) %]
502
                                <span>Unlimited</span>
503
                                <span>[% t('Unlimited') %]</span>
503
                            [% ELSE %]
504
                            [% ELSE %]
504
                                [% branch_cat_rule_loo.maxissueqty %]
505
                                [% branch_cat_rule_loo.maxissueqty %]
505
                            [% END %]
506
                            [% END %]
506
                        </td>
507
                        </td>
507
                        <td>[% IF ( branch_cat_rule_loo.unlimited_maxonsiteissueqty ) %]
508
                        <td>[% IF ( branch_cat_rule_loo.unlimited_maxonsiteissueqty ) %]
508
                                <span>Unlimited</span>
509
                                <span>[% t('Unlimited') %]</span>
509
                            [% ELSE %]
510
                            [% ELSE %]
510
                                [% branch_cat_rule_loo.maxonsiteissueqty %]
511
                                [% branch_cat_rule_loo.maxonsiteissueqty %]
511
                            [% END %]
512
                            [% END %]
512
                        </td>
513
                        </td>
513
514
514
                        <td class="actions">
515
                        <td class="actions">
515
                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=[% branch_cat_rule_loo.categorycode %]&amp;branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a>
516
                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% branch_cat_rule_loo.categorycode %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
516
                        </td>
517
                        </td>
517
                    </tr>
518
                    </tr>
518
                [% END %]
519
                [% END %]
Lines 526-532 Link Here
526
                    </td>
527
                    </td>
527
                    <td><input name="maxissueqty" size="3" /></td>
528
                    <td><input name="maxissueqty" size="3" /></td>
528
                    <td><input name="maxonsiteissueqty" size="3" /></td>
529
                    <td><input name="maxonsiteissueqty" size="3" /></td>
529
                    <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td>
530
                    <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% t('Add') %]</td>
530
                </tr>
531
                </tr>
531
            </table>
532
            </table>
532
        </form>
533
        </form>
Lines 535-610 Link Here
535
536
536
    <div id="refund-lost-item-fee-on-return" class="container">
537
    <div id="refund-lost-item-fee-on-return" class="container">
537
  [% IF current_branch == '*' %]
538
  [% IF current_branch == '*' %]
538
    <h3>Default lost item fee refund on return policy</h3>
539
    <h3>[% t('Default lost item fee refund on return policy') %]</h3>
539
  [% ELSE %]
540
  [% ELSE %]
540
    <h3>Lost item fee refund on return policy for [% Branches.GetName(current_branch) %]</h3>
541
    <h3>[% t('Lost item fee refund on return policy for') %] [% Branches.GetName(current_branch) %]</h3>
541
  [% END %]
542
  [% END %]
542
        <p>Specify the default policy for lost item fees on return.
543
        <p>[% t('Specify the default policy for lost item fees on return.') %]
543
        </p>
544
        </p>
544
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
545
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
545
            <input type="hidden" name="op" value="mod-refund-lost-item-fee-rule" />
546
            <input type="hidden" name="op" value="mod-refund-lost-item-fee-rule" />
546
            <input type="hidden" name="branch" value="[% current_branch %]" />
547
            <input type="hidden" name="branch" value="[% current_branch %]" />
547
            <table>
548
            <table>
548
                <tr>
549
                <tr>
549
                    <th>Refund lost item fee</th>
550
                    <th>[% t('Refund lost item fee') %]</th>
550
                    <th>&nbsp;</th>
551
                    <th> </th>
551
                </tr>
552
                </tr>
552
                <tr>
553
                <tr>
553
                    <td>
554
                    <td>
554
                        <select name="refund">
555
                        <select name="refund">
555
                          [#% Default branch %#]
556
                          [% t('[#% Default branch %#]') %]
556
                          [% IF ( current_branch == '*' ) %]
557
                          [% IF ( current_branch == '*' ) %]
557
                            [% IF ( refundLostItemFeeRule.refund ) %]
558
                            [% IF ( refundLostItemFeeRule.refund ) %]
558
                            <option value="1" selected="selected">
559
                            <option value="1" selected="selected">
559
                            [% ELSE %]
560
                            [% ELSE %]
560
                            <option value="1">
561
                            <option value="1">
561
                            [% END %]
562
                            [% END %]
562
                                Yes
563
                                [% t('Yes') %]
563
                            </option>
564
                            </option>
564
                            [% IF ( not refundLostItemFeeRule.refund ) %]
565
                            [% IF ( not refundLostItemFeeRule.refund ) %]
565
                            <option value="0" selected="selected">
566
                            <option value="0" selected="selected">
566
                            [% ELSE %]
567
                            [% ELSE %]
567
                            <option value="0">
568
                            <option value="0">
568
                            [% END %]
569
                            [% END %]
569
                                No
570
                                [% t('No') %]
570
                            </option>
571
                            </option>
571
                          [% ELSE %]
572
                          [% ELSE %]
572
                          [#% Branch-specific %#]
573
                          [% t('[#% Branch-specific %#]') %]
573
                            [% IF ( not refundLostItemFeeRule ) %]
574
                            [% IF ( not refundLostItemFeeRule ) %]
574
                                <option value="*" selected="selected">
575
                                <option value="*" selected="selected">
575
                            [% ELSE %]
576
                            [% ELSE %]
576
                                <option value="*">
577
                                <option value="*">
577
                            [% END %]
578
                            [% END %]
578
                              [% IF defaultRefundRule %]
579
                              [% IF defaultRefundRule %]
579
                                Use default (Yes)
580
                                [% t('Use default (Yes)') %]
580
                              [% ELSE %]
581
                              [% ELSE %]
581
                                Use default (No)
582
                                [% t('Use default (No)') %]
582
                              [% END %]
583
                              [% END %]
583
                                </option>
584
                                </option>
584
                            [% IF ( not refundLostItemFeeRule ) %]
585
                            [% IF ( not refundLostItemFeeRule ) %]
585
                                <option value="1">Yes</option>
586
                                <option value="1">[% t('Yes') %]</option>
586
                                <option value="0">No</option>
587
                                <option value="0">[% t('No') %]</option>
587
                            [% ELSE %]
588
                            [% ELSE %]
588
                                [% IF ( refundLostItemFeeRule.refund ) %]
589
                                [% IF ( refundLostItemFeeRule.refund ) %]
589
                                <option value="1" selected="selected">
590
                                <option value="1" selected="selected">
590
                                [% ELSE %]
591
                                [% ELSE %]
591
                                <option value="1">
592
                                <option value="1">
592
                                [% END %]
593
                                [% END %]
593
                                    Yes
594
                                    [% t('Yes') %]
594
                                </option>
595
                                </option>
595
                                [% IF ( not refundLostItemFeeRule.refund ) %]
596
                                [% IF ( not refundLostItemFeeRule.refund ) %]
596
                                <option value="0" selected="selected">
597
                                <option value="0" selected="selected">
597
                                [% ELSE %]
598
                                [% ELSE %]
598
                                <option value="0">
599
                                <option value="0">
599
                                [% END %]
600
                                [% END %]
600
                                    No
601
                                    [% t('No') %]
601
                                </option>
602
                                </option>
602
                            [% END %]
603
                            [% END %]
603
                          [% END %]
604
                          [% END %]
604
                        </select>
605
                        </select>
605
                    </td>
606
                    </td>
606
                    <td class="actions">
607
                    <td class="actions">
607
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
608
                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> [% t('Save') %]</button>
608
                    </td>
609
                    </td>
609
                    </td>
610
                    </td>
610
                </tr>
611
                </tr>
Lines 613-646 Link Here
613
    </div>
614
    </div>
614
615
615
    <div id="holds-policy-by-item-type" class="container">
616
    <div id="holds-policy-by-item-type" class="container">
616
    <h3>[% IF humanbranch %]Holds policy by item type for [% Branches.GetName( humanbranch ) %][% ELSE %]Default holds policy by item type[% END %]</h3>
617
    <h3>[% IF humanbranch %][% t('Holds policy by item type for') %] [% Branches.GetName( humanbranch ) %][% ELSE %][% t('Default holds policy by item type') %][% END %]</h3>
617
        <p>
618
        <p>
618
            For this library, you can edit rules for given itemtypes, regardless
619
            [% t('For this library, you can edit rules for given itemtypes, regardless') %]
619
            of the patron's category.
620
            [% t('of the patron\'s category.') %]
620
        </p>
621
        </p>
621
        <p>
622
        <p>
622
            Currently, this means hold policies.
623
            [% t('Currently, this means hold policies.') %]
623
            The various policies have the following effects:
624
            [% t('The various policies have the following effects:') %]
624
        </p>
625
        </p>
625
        <ul>
626
        <ul>
626
            <li><strong>From any library:</strong> Patrons from any library may put this item on hold. <cite>(default if none is defined)</cite></li>
627
            <li><strong>[% t('From any library:') %]</strong> [% t('Patrons from any library may put this item on hold.') %] <cite>[% t('(default if none is defined)') %]</cite></li>
627
            <li><strong>From home library:</strong> Only patrons from the item's home library may put this book on hold.</li>
628
            <li><strong>[% t('From home library:') %]</strong> [% t('Only patrons from the item\'s home library may put this book on hold.') %]</li>
628
            <li><strong>No holds allowed:</strong> No patron may put this book on hold.</li>
629
            <li><strong>[% t('No holds allowed:') %]</strong> [% t('No patron may put this book on hold.') %]</li>
629
        </ul>
630
        </ul>
630
        <p><strong>Note: </strong>If the system preference 'AllowHoldPolicyOverride' is enabled, these policies can be overridden by your circulation staff.</br />
631
        <p><strong>[% t('Note:') %] </strong>[% t('If the system preference \'AllowHoldPolicyOverride\' is enabled, these policies can be overridden by your circulation staff.') %]</br>
631
            <strong>Important: </strong>The policies are based on the patron's home library, not the library where the hold is being placed.
632
            <strong>[% t('Important:') %] </strong>[% t('The policies are based on the patron\'s home library, not the library where the hold is being placed.') %]
632
        </p>
633
        </p>
633
634
634
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
635
        <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
635
            <input type="hidden" name="op" value="add-branch-item" />
636
            <input type="hidden" name="op" value="add-branch-item" />
636
            <input type="hidden" name="branch" value="[% current_branch %]"/>
637
            <input type="hidden" name="branch" value="[% current_branch %]" />
637
            <table>
638
            <table>
638
                <tr>
639
                <tr>
639
                    <th>Item type</th>
640
                    <th>[% t('Item type') %]</th>
640
                    <th>Hold policy</th>
641
                    <th>[% t('Hold policy') %]</th>
641
                    <th>Hold pickup library match</th>
642
                    <th>[% t('Hold pickup library match') %]</th>
642
                    <th>Return policy</th>
643
                    <th>[% t('Return policy') %]</th>
643
                    <th>&nbsp;</th>
644
                    <th> </th>
644
                </tr>
645
                </tr>
645
                [% FOREACH branch_item_rule_loo IN branch_item_rule_loop %]
646
                [% FOREACH branch_item_rule_loo IN branch_item_rule_loop %]
646
                    [% UNLESS ( loop.odd ) %]
647
                    [% UNLESS ( loop.odd ) %]
Lines 649-687 Link Here
649
                    <tr>
650
                    <tr>
650
                    [% END %]
651
                    [% END %]
651
                        <td>[% IF ( branch_item_rule_loo.default_translated_description ) %]
652
                        <td>[% IF ( branch_item_rule_loo.default_translated_description ) %]
652
                                <em>Default</em>
653
                                <em>[% t('Default') %]</em>
653
                            [% ELSE %]
654
                            [% ELSE %]
654
                                [% branch_item_rule_loo.translated_description %]
655
                                [% branch_item_rule_loo.translated_description %]
655
                            [% END %]
656
                            [% END %]
656
                        </td>
657
                        </td>
657
                        <td>[% IF ( branch_item_rule_loo.holdallowed_any ) %]
658
                        <td>[% IF ( branch_item_rule_loo.holdallowed_any ) %]
658
                                <span>From any library</span>
659
                                <span>[% t('From any library') %]</span>
659
                            [% ELSIF ( branch_item_rule_loo.holdallowed_same ) %]
660
                            [% ELSIF ( branch_item_rule_loo.holdallowed_same ) %]
660
                                <span>From home library</span>
661
                                <span>[% t('From home library') %]</span>
661
                            [% ELSE %]
662
                            [% ELSE %]
662
                                <span>No holds allowed</span>
663
                                <span>[% t('No holds allowed') %]</span>
663
                            [% END %]
664
                            [% END %]
664
                        </td>
665
                        </td>
665
                        <td>[% IF ( branch_item_rule_loo.hold_fulfillment_policy == 'any' ) %]
666
                        <td>[% IF ( branch_item_rule_loo.hold_fulfillment_policy == 'any' ) %]
666
                                <span>any library</span>
667
                                <span>[% t('any library') %]</span>
667
                            [% ELSIF ( branch_item_rule_loo.hold_fulfillment_policy == 'homebranch' ) %]
668
                            [% ELSIF ( branch_item_rule_loo.hold_fulfillment_policy == 'homebranch' ) %]
668
                                <span>item's home library</span>
669
                                <span>[% t('item\'s home library') %]</span>
669
                            [% ELSIF ( branch_item_rule_loo.hold_fulfillment_policy == 'holdingbranch' ) %]
670
                            [% ELSIF ( branch_item_rule_loo.hold_fulfillment_policy == 'holdingbranch' ) %]
670
                                <span>item's holding library</span>
671
                                <span>[% t('item\'s holding library') %]</span>
671
                            [% END %]
672
                            [% END %]
672
                        </td>
673
                        </td>
673
                        <td>[% IF ( branch_item_rule_loo.returnbranch == 'homebranch' ) %]
674
                        <td>[% IF ( branch_item_rule_loo.returnbranch == 'homebranch' ) %]
674
                                <span>Item returns home</span>
675
                                <span>[% t('Item returns home') %]</span>
675
                            [% ELSIF ( branch_item_rule_loo.returnbranch == 'holdingbranch' ) %]
676
                            [% ELSIF ( branch_item_rule_loo.returnbranch == 'holdingbranch' ) %]
676
                                <span>Item returns to issuing branch</span>
677
                                <span>[% t('Item returns to issuing branch') %]</span>
677
                            [% ELSIF ( branch_item_rule_loo.returnbranch == 'noreturn' ) %]
678
                            [% ELSIF ( branch_item_rule_loo.returnbranch == 'noreturn' ) %]
678
                                <span>Item floats</span>
679
                                <span>[% t('Item floats') %]</span>
679
                            [% ELSE %]
680
                            [% ELSE %]
680
                                <span>Error - unknown option</span>
681
                                <span>[% t('Error - unknown option') %]</span>
681
                            [% END %]
682
                            [% END %]
682
                        </td>
683
                        </td>
683
                        <td class="actions">
684
                        <td class="actions">
684
                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&amp;itemtype=[% branch_item_rule_loo.itemtype %]&amp;branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a>
685
                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&itemtype=[% branch_item_rule_loo.itemtype %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
685
                        </td>
686
                        </td>
686
                    </tr>
687
                    </tr>
687
                [% END %]
688
                [% END %]
Lines 695-728 Link Here
695
                    </td>
696
                    </td>
696
                    <td>
697
                    <td>
697
                        <select name="holdallowed">
698
                        <select name="holdallowed">
698
                            <option value="2">From any library</option>
699
                            <option value="2">[% t('From any library') %]</option>
699
                            <option value="1">From home library</option>
700
                            <option value="1">[% t('From home library') %]</option>
700
                            <option value="0">No holds allowed</option>
701
                            <option value="0">[% t('No holds allowed') %]</option>
701
                        </select>
702
                        </select>
702
                    </td>
703
                    </td>
703
                    <td>
704
                    <td>
704
                        <select name="hold_fulfillment_policy">
705
                        <select name="hold_fulfillment_policy">
705
                            <option value="any">
706
                            <option value="any">
706
                                any library
707
                                [% t('any library') %]
707
                            </option>
708
                            </option>
708
709
709
                            <option value="homebranch">
710
                            <option value="homebranch">
710
                                item's home library
711
                                [% t('item\'s home library') %]
711
                            </option>
712
                            </option>
712
713
713
                            <option value="holdingbranch">
714
                            <option value="holdingbranch">
714
                                item's holding library
715
                                [% t('item\'s holding library') %]
715
                            </option>
716
                            </option>
716
                        </select>
717
                        </select>
717
                    </td>
718
                    </td>
718
                    <td>
719
                    <td>
719
                        <select name="returnbranch">
720
                        <select name="returnbranch">
720
                            <option value="homebranch">Item returns home</option>
721
                            <option value="homebranch">[% t('Item returns home') %]</option>
721
                            <option value="holdingbranch">Item returns to issuing library</option>
722
                            <option value="holdingbranch">[% t('Item returns to issuing library') %]</option>
722
                            <option value="noreturn">Item floats</option>
723
                            <option value="noreturn">[% t('Item floats') %]</option>
723
                        </select>
724
                        </select>
724
                    </td>
725
                    </td>
725
                    <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td>
726
                    <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% t('Add') %]</button></td>
726
                </tr>
727
                </tr>
727
            </table>
728
            </table>
728
        </form>
729
        </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt (-18 / +19 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; SMS cellular providers</title>
5
<title>[% t('Koha › Administration › SMS cellular providers') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'prefs-admin-search.inc' %]
11
[% INCLUDE 'prefs-admin-search.inc' %]
11
12
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› SMS cellular providers') %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
    <div id="bd">
16
    <div id="bd">
Lines 17-36 Link Here
17
            <div class="yui-b">
18
            <div class="yui-b">
18
19
19
                <div id="toolbar" class="btn-toolbar">
20
                <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>
21
                    <a class="btn btn-default btn-sm" id="new_provider" href="#"><i class="fa fa-plus"></i> [% t('New SMS provider') %]</a>
21
                </div>
22
                </div>
22
23
23
                <h2>SMS cellular providers</h2>
24
                <h2>[% t('SMS cellular providers') %]</h2>
24
25
25
                [% IF providers.size %]
26
                [% IF providers.size %]
26
27
27
                    <table id="providerst">
28
                    <table id="providerst">
28
                        <thead>
29
                        <thead>
29
                            <tr>
30
                            <tr>
30
                                <th>Name</th>
31
                                <th>[% t('Name') %]</th>
31
                                <th>Domain</th>
32
                                <th>[% t('Domain') %]</th>
32
                                <th title="Patrons using this provider">Patrons</th>
33
                                <th title="[% t('Patrons using this provider') %]">[% t('Patrons') %]</th>
33
                                <th>&nbsp;</th>
34
                                <th> </th>
34
                            </tr>
35
                            </tr>
35
                        </thead>
36
                        </thead>
36
37
Lines 42-51 Link Here
42
                                    <td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td>
43
                                    <td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td>
43
                                    <td class="actions">
44
                                    <td class="actions">
44
                                        <a class="btn btn-default btn-xs edit" href="#" id="edit_[% p.id %]" data-providerid="[% p.id %]">
45
                                        <a class="btn btn-default btn-xs edit" href="#" id="edit_[% p.id %]" data-providerid="[% p.id %]">
45
                                            <i class="fa fa-pencil"></i> Edit
46
                                            <i class="fa fa-pencil"></i> [% t('Edit') %]
46
                                        </a>
47
                                        </a>
47
                                        <a class="btn btn-default btn-xs delete" href="#" data-providerid="[% p.id %]" data-patrons_using="[% p.patrons_using %]" id="delete_[% p.id %]">
48
                                        <a class="btn btn-default btn-xs delete" href="#" data-providerid="[% p.id %]" data-patrons_using="[% p.patrons_using %]" id="delete_[% p.id %]">
48
                                            <i class="fa fa-trash"></i> Delete
49
                                            <i class="fa fa-trash"></i> [% t('Delete') %]
49
                                        </a>
50
                                        </a>
50
                                    </td>
51
                                    </td>
51
                                </tr>
52
                                </tr>
Lines 56-62 Link Here
56
                [% ELSE %]
57
                [% ELSE %]
57
58
58
                    <div class="dialog message">
59
                    <div class="dialog message">
59
                        There are no SMS cellular providers defined.
60
                        [% t('There are no SMS cellular providers defined.') %]
60
                    </div>
61
                    </div>
61
62
62
                [% END %]
63
                [% END %]
Lines 64-89 Link Here
64
                <div id="sms_add_form">
65
                <div id="sms_add_form">
65
                    <form id="sms_form" action="sms_providers.pl" method="post" class="validated">
66
                    <form id="sms_form" action="sms_providers.pl" method="post" class="validated">
66
                        <fieldset class="rows">
67
                        <fieldset class="rows">
67
                            <legend>Add an SMS cellular provider</legend>
68
                            <legend>[% t('Add an SMS cellular provider') %]</legend>
68
                            <input type="hidden" id="id" name="id" value="" />
69
                            <input type="hidden" id="id" name="id" value="" />
69
                            <input type="hidden" id="op" name="op" value="add_update" />
70
                            <input type="hidden" id="op" name="op" value="add_update" />
70
                            <ol>
71
                            <ol>
71
                                <li>
72
                                <li>
72
                                    <label for="name" class="required">Name: </label>
73
                                    <label for="name" class="required">[% t('Name:') %] </label>
73
                                    <input type="text" id="name" name="name" required="required" />
74
                                    <input type="text" id="name" name="name" required="required" />
74
                                    <span class="required">Required</span>
75
                                    <span class="required">[% t('Required') %]</span>
75
                                </li>
76
                                </li>
76
                                <li>
77
                                <li>
77
                                    <label for="domain" class="required">Domain: </label>
78
                                    <label for="domain" class="required">[% t('Domain:') %] </label>
78
                                    <input type="text" id="domain" name="domain" required="required" size="40"/>
79
                                    <input type="text" id="domain" name="domain" required="required" size="40" />
79
                                    <span class="required">Required</span>
80
                                    <span class="required">[% t('Required') %]</span>
80
                                </li>
81
                                </li>
81
                            </ol>
82
                            </ol>
82
                        </fieldset>
83
                        </fieldset>
83
                        <fieldset class="action">
84
                        <fieldset class="action">
84
                            <input type="submit" id="submit_save" value="Submit" />
85
                            <input type="submit" id="submit_save" value="Submit" />
85
                            <input type="submit" value="Submit" id="submit_update" />
86
                            <input type="submit" value="Submit" id="submit_update" />
86
                            <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">Cancel</a>
87
                            <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">[% t('Cancel') %]</a>
87
                        </fieldset>
88
                        </fieldset>
88
                    </form>
89
                    </form>
89
                </div>
90
                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt (-13 / +14 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; SRU search fields mapping</title>
5
<title>[% t('Koha › SRU search fields mapping') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 10-39 Link Here
10
<div id="custom-doc" class="yui-t7">
11
<div id="custom-doc" class="yui-t7">
11
12
12
    <div id="bd">
13
    <div id="bd">
13
        <h1>Modify SRU search fields mapping</h1>
14
        <h1>[% t('Modify SRU search fields mapping') %]</h1>
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">
17
                    <div class="yui-u first">
18
                    <div class="yui-u first">
18
                        <ol>
19
                        <ol>
19
                            <li>
20
                            <li>
20
                                <label for="title">Title: </label>
21
                                <label for="title">[% t('Title:') %] </label>
21
                                <input id="title" type="text" value="[% mapping.title %]" />
22
                                <input id="title" type="text" value="[% mapping.title %]" />
22
                            </li>
23
                            </li>
23
                            <li>
24
                            <li>
24
                                <label for="isbn">ISBN: </label>
25
                                <label for="isbn">[% t('ISBN:') %] </label>
25
                                <input id="isbn" type="text" value="[% mapping.isbn %]" />
26
                                <input id="isbn" type="text" value="[% mapping.isbn %]" />
26
                            </li>
27
                            </li>
27
                            <li>
28
                            <li>
28
                                <label for="lccall">LC call number: </label>
29
                                <label for="lccall">[% t('LC call number:') %] </label>
29
                                <input id="lccall" type="text" value="[% mapping.lccall %]" />
30
                                <input id="lccall" type="text" value="[% mapping.lccall %]" />
30
                            </li>
31
                            </li>
31
                            <li>
32
                            <li>
32
                                <label for="controlnumber">Control number: </label>
33
                                <label for="controlnumber">[% t('Control number:') %] </label>
33
                                <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
34
                                <input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
34
                            </li>
35
                            </li>
35
                            <li>
36
                            <li>
36
                                <label for="srchany">Any: </label>
37
                                <label for="srchany">[% t('Any:') %] </label>
37
                                <input id="srchany" type="text" value="[% mapping.srchany %]" />
38
                                <input id="srchany" type="text" value="[% mapping.srchany %]" />
38
                            </li>
39
                            </li>
39
                        </ol>
40
                        </ol>
Lines 41-63 Link Here
41
                    <div class="yui-u">
42
                    <div class="yui-u">
42
                        <ol>
43
                        <ol>
43
                            <li>
44
                            <li>
44
                                <label for="author">Author: </label>
45
                                <label for="author">[% t('Author:') %] </label>
45
                                <input id="author" type="text" value="[% mapping.author %]" />
46
                                <input id="author" type="text" value="[% mapping.author %]" />
46
                            </li>
47
                            </li>
47
                            <li>
48
                            <li>
48
                                <label for="issn">ISSN: </label>
49
                                <label for="issn">[% t('ISSN:') %] </label>
49
                                <input id="issn" type="text" value="[% mapping.issn %]" />
50
                                <input id="issn" type="text" value="[% mapping.issn %]" />
50
                            </li>
51
                            </li>
51
                            <li>
52
                            <li>
52
                                <label for="subject">Subject: </label>
53
                                <label for="subject">[% t('Subject:') %] </label>
53
                                <input id="subject" type="text" value="[% mapping.subject %]" />
54
                                <input id="subject" type="text" value="[% mapping.subject %]" />
54
                            </li>
55
                            </li>
55
                            <li>
56
                            <li>
56
                                <label for="dewey">Dewey: </label>
57
                                <label for="dewey">[% t('Dewey:') %] </label>
57
                                <input id="dewey" type="text" value="[% mapping.dewey %]" />
58
                                <input id="dewey" type="text" value="[% mapping.dewey %]" />
58
                            </li>
59
                            </li>
59
                            <li>
60
                            <li>
60
                                <label for="stdid">Standard ID: </label>
61
                                <label for="stdid">[% t('Standard ID:') %] </label>
61
                                <input id="stdid" type="text" value="[% mapping.stdid %]" />
62
                                <input id="stdid" type="text" value="[% mapping.stdid %]" />
62
                            </li>
63
                            </li>
63
                        </ol>
64
                        </ol>
Lines 66-72 Link Here
66
            </fieldset>
67
            </fieldset>
67
            <fieldset class="action">
68
            <fieldset class="action">
68
                <input type="submit" value="Save" class="submit" />
69
                <input type="submit" value="Save" class="submit" />
69
                <a class="close cancel" href="#">Cancel</a>
70
                <a class="close cancel" href="#">[% t('Cancel') %]</a>
70
            </fieldset>
71
            </fieldset>
71
        </form>
72
        </form>
72
    </div>
73
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt (-60 / +61 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; [% IF ( add_form ) %] System preferences &rsaquo; [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] System preferences &rsaquo; Data added[% END %]
6
<title>[% t('Koha › Administration ›') %] [% IF ( add_form ) %] [% t('System preferences ›') %] [% IF ( modify ) %][% t('Modify system preference \'') %][% searchfield %]'[% ELSE %][% t('Add a system preference') %][% END %][% END %][% IF ( add_validate ) %] [% t('System preferences › Data added') %][% END %]
6
[% IF ( delete_confirm ) %] System preferences &rsaquo; [% searchfield %] &rsaquo; Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] System preferences &rsaquo; Parameter deleted[% END %][% IF ( else ) %]System preferences[% END %]</title>
7
[% IF ( delete_confirm ) %] [% t('System preferences ›') %] [% searchfield %] [% t('› Confirm deletion of parameter \'') %][% searchfield %]'[% END %][% IF ( delete_confirmed ) %] [% t('System preferences › Parameter deleted') %][% END %][% IF ( else ) %][% t('System preferences') %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
</head>
10
</head>
Lines 12-19 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'prefs-admin-search.inc' %]
14
[% INCLUDE 'prefs-admin-search.inc' %]
14
15
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> › [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">[% t('System preferences') %]</a> › [% IF ( modify ) %][% t('Modify system preference \'') %][% searchfield %]'[% ELSE %][% t('Add a system preference') %][% END %][% END %][% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">[% t('System preferences') %]</a> [% t('› 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>
17
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">[% t('System Preferences') %]</a> › <a href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form&searchfield=[% searchfield %]">[% searchfield %]</a> [% t('› Confirm deletion of parameter \'') %][% searchfield %]'[% END %][% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/systempreferences.pl">[% t('System preferences') %]</a> [% t('› Parameter deleted') %][% END %][% IF ( else ) %][% t('System preferences') %][% END %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   
20
   
Lines 28-40 Link Here
28
            <form action="[% script_name %]" name="Aform" method="post">
29
            <form action="[% script_name %]" name="Aform" method="post">
29
        [% END %]
30
        [% END %]
30
        <fieldset class="rows"><legend>
31
        <fieldset class="rows"><legend>
31
        [% IF ( modify ) %]Modify
32
        [% IF ( modify ) %][% t('Modify') %]
32
        [% ELSE %]Add
33
        [% ELSE %][% t('Add') %]
33
        [% END %] a system preference</legend><ol>
34
        [% END %] [% t('a system preference') %]</legend><ol>
34
            <li><label for="explanation">Explanation: </label><input type="text" name="explanation" id="explanation" size="60" value="[% explanation |html %]" /><input type="hidden" name="op" value="add_validate" /></li>
35
            <li><label for="explanation">[% t('Explanation:') %] </label><input type="text" name="explanation" id="explanation" size="60" value="[% explanation |html %]" /><input type="hidden" name="op" value="add_validate" /></li>
35
            <li>[% IF ( searchfield ) %]<span class="label">Variable: </span>[% searchfield %]<input type="hidden" name="variable" value="[% searchfield %]" />
36
            <li>[% IF ( searchfield ) %]<span class="label">[% t('Variable:') %] </span>[% searchfield %]<input type="hidden" name="variable" value="[% searchfield %]" />
36
            [% ELSE %]<label for="variable">Variable: </label><input type="text" name="variable" id="variable" size="60" />[% END %]</li>
37
            [% ELSE %]<label for="variable">[% t('Variable:') %] </label><input type="text" name="variable" id="variable" size="60" />[% END %]</li>
37
            <li><label for="value">Value: </label>
38
            <li><label for="value">[% t('Value:') %] </label>
38
                [% IF ( type_free ) %]
39
                [% IF ( type_free ) %]
39
                    <textarea id="value" name="value" cols="[% fieldlength %]">[% value |html %]</textarea>
40
                    <textarea id="value" name="value" cols="[% fieldlength %]">[% value |html %]</textarea>
40
                [% ELSIF ( type_upload ) %]
41
                [% ELSIF ( type_upload ) %]
Lines 114-199 Link Here
114
                    [% IF ( value_yes ) %]
115
                    [% IF ( value_yes ) %]
115
                        <input type="radio" name="value" id="value" value="1" checked="checked" />[% ELSE %]<input type="radio" name="value" id="value" value="1" />
116
                        <input type="radio" name="value" id="value" value="1" checked="checked" />[% ELSE %]<input type="radio" name="value" id="value" value="1" />
116
                    [% END %]
117
                    [% END %]
117
                    <label for="value" class="yesno">ON</label>
118
                    <label for="value" class="yesno">[% t('ON') %]</label>
118
                    [% IF ( value_no ) %]
119
                    [% IF ( value_no ) %]
119
                        <input type="radio" name="value" id="value-no" value="0" checked="checked" />[% ELSE %]<input type="radio" name="value" id="value-no" value="0" />
120
                        <input type="radio" name="value" id="value-no" value="0" checked="checked" />[% ELSE %]<input type="radio" name="value" id="value-no" value="0" />
120
                    [% END %]
121
                    [% END %]
121
                    <label for="value-no" class="yesno">OFF</label>
122
                    <label for="value-no" class="yesno">[% t('OFF') %]</label>
122
                [% END %]
123
                [% END %]
123
                </li>
124
                </li>
124
        </ol></fieldset>
125
        </ol></fieldset>
125
        <fieldset class="action"><input type="submit" value="Save" /> 
126
        <fieldset class="action"><input type="submit" value="Save" /> 
126
          [% IF ( return_tab ) %]
127
          [% IF ( return_tab ) %]
127
            <a class="cancel" href="/cgi-bin/koha/admin/systempreferences.pl?tab=[% return_tab %]">Cancel</a>
128
            <a class="cancel" href="/cgi-bin/koha/admin/systempreferences.pl?tab=[% return_tab %]">[% t('Cancel') %]</a>
128
          [% ELSE %]
129
          [% ELSE %]
129
            <a class="cancel" href="/cgi-bin/koha/admin/systempreferences.pl">Cancel</a>
130
            <a class="cancel" href="/cgi-bin/koha/admin/systempreferences.pl">[% t('Cancel') %]</a>
130
          [% END %]
131
          [% END %]
131
        </fieldset>
132
        </fieldset>
132
        
133
        
133
        <fieldset class="brief">
134
        <fieldset class="brief">
134
        <legend>Koha internal</legend>
135
        <legend>[% t('Koha internal') %]</legend>
135
        <div class="hint">Note: change the variable type to one of the dropdown values as needed</div>
136
        <div class="hint">[% t('Note: change the variable type to one of the dropdown values as needed') %]</div>
136
        <ol>
137
        <ol>
137
        <li><label for="preftype">Variable type:</label>
138
        <li><label for="preftype">[% t('Variable type:') %]</label>
138
        <select name="preftype" id="preftype">
139
        <select name="preftype" id="preftype">
139
        [%- IF (preftype && preftype == 'Free') || !preftype -%]
140
        [%- IF (preftype && preftype == 'Free') || !preftype -%]
140
            <option value="Free" selected>Free</option>
141
            <option value="Free" selected="">[% t('Free') %]</option>
141
        [%- ELSE -%]
142
        [%- ELSE -%]
142
            <option value="Free">Free</option>
143
            <option value="Free">[% t('Free') %]</option>
143
        [% END %]
144
        [% END %]
144
        [%- IF (preftype && preftype == 'Choice') -%]
145
        [%- IF (preftype && preftype == 'Choice') -%]
145
            <option value="Choice" selected>Choice</option>
146
            <option value="Choice" selected="">[% t('Choice') %]</option>
146
        [%- ELSE -%]
147
        [%- ELSE -%]
147
            <option value="Choice">Choice</option>
148
            <option value="Choice">[% t('Choice') %]</option>
148
        [% END %]
149
        [% END %]
149
        [%- IF (preftype && preftype == 'YesNo') -%]
150
        [%- IF (preftype && preftype == 'YesNo') -%]
150
            <option value="YesNo" selected>YesNo</option>
151
            <option value="YesNo" selected="">[% t('YesNo') %]</option>
151
        [%- ELSE -%]
152
        [%- ELSE -%]
152
            <option value="YesNo">YesNo</option>
153
            <option value="YesNo">[% t('YesNo') %]</option>
153
        [% END %]
154
        [% END %]
154
        [%- IF (preftype && preftype == 'Integer') -%]
155
        [%- IF (preftype && preftype == 'Integer') -%]
155
            <option value="Integer" selected>Integer</option>
156
            <option value="Integer" selected="">[% t('Integer') %]</option>
156
        [%- ELSE -%]
157
        [%- ELSE -%]
157
            <option value="Integer">Integer</option>
158
            <option value="Integer">[% t('Integer') %]</option>
158
        [% END %]
159
        [% END %]
159
        [%- IF (preftype && preftype == 'Textarea') -%]
160
        [%- IF (preftype && preftype == 'Textarea') -%]
160
            <option value="Textarea" selected>Textarea</option>
161
            <option value="Textarea" selected="">[% t('Textarea') %]</option>
161
        [%- ELSE -%]
162
        [%- ELSE -%]
162
            <option value="Textarea">Textarea</option>
163
            <option value="Textarea">[% t('Textarea') %]</option>
163
        [% END %]
164
        [% END %]
164
        [%- IF (preftype && preftype == 'Htmlarea') -%]
165
        [%- IF (preftype && preftype == 'Htmlarea') -%]
165
            <option value="Htmlarea" selected>Htmlarea</option>
166
            <option value="Htmlarea" selected="">[% t('Htmlarea') %]</option>
166
        [%- ELSE -%]
167
        [%- ELSE -%]
167
            <option value="Htmlarea">Htmlarea</option>
168
            <option value="Htmlarea">[% t('Htmlarea') %]</option>
168
        [% END %]
169
        [% END %]
169
        [%- IF (preftype && preftype == 'Float') -%]
170
        [%- IF (preftype && preftype == 'Float') -%]
170
            <option value="Float" selected>Float</option>
171
            <option value="Float" selected="">[% t('Float') %]</option>
171
        [%- ELSE -%]
172
        [%- ELSE -%]
172
            <option value="Float">Float</option>
173
            <option value="Float">[% t('Float') %]</option>
173
        [% END %]
174
        [% END %]
174
        [%- IF (preftype && preftype == 'Themes') -%]
175
        [%- IF (preftype && preftype == 'Themes') -%]
175
            <option value="Themes" selected>Themes</option>
176
            <option value="Themes" selected="">[% t('Themes') %]</option>
176
        [%- ELSE -%]
177
        [%- ELSE -%]
177
            <option value="Themes">Themes</option>
178
            <option value="Themes">[% t('Themes') %]</option>
178
        [% END %]
179
        [% END %]
179
        [%- IF (preftype && preftype == 'Languages') -%]
180
        [%- IF (preftype && preftype == 'Languages') -%]
180
            <option value="Languages" selected>Languages</option>
181
            <option value="Languages" selected="">[% t('Languages') %]</option>
181
        [%- ELSE -%]
182
        [%- ELSE -%]
182
            <option value="Languages">Languages</option>
183
            <option value="Languages">[% t('Languages') %]</option>
183
        [% END %]
184
        [% END %]
184
        [%- IF (preftype && preftype == 'Upload') -%]
185
        [%- IF (preftype && preftype == 'Upload') -%]
185
            <option value="Upload" selected>Upload</option>
186
            <option value="Upload" selected="">[% t('Upload') %]</option>
186
        [%- ELSE -%]
187
        [%- ELSE -%]
187
            <option value="Upload">Upload</option>
188
            <option value="Upload">[% t('Upload') %]</option>
188
        [% END %]
189
        [% END %]
189
        [%- IF (preftype && preftype == 'ClassSources') -%]
190
        [%- IF (preftype && preftype == 'ClassSources') -%]
190
            <option value="ClassSources" selected>ClassSources</option>
191
            <option value="ClassSources" selected="">[% t('ClassSources') %]</option>
191
        [%- ELSE -%]
192
        [%- ELSE -%]
192
            <option value="ClassSources">ClassSources</option>
193
            <option value="ClassSources">[% t('ClassSources') %]</option>
193
        [% END %]
194
        [% END %]
194
        </select>
195
        </select>
195
        <li><label for="prefoptions">Variable options:</label>
196
        <li><label for="prefoptions">[% t('Variable options:') %]</label>
196
        <div class="hint">(a choice list for choice (separated by |) or cols|rows for texarea)</div>
197
        <div class="hint">[% t('(a choice list for choice (separated by |) or cols|rows for texarea)') %]</div>
197
        <input type="text" name="prefoptions" id="prefoptions" value="[% prefoptions %]" size="60" maxlength="80" /></li>
198
        <input type="text" name="prefoptions" id="prefoptions" value="[% prefoptions %]" size="60" maxlength="80" /></li>
198
        </ol>
199
        </ol>
199
        </fieldset>
200
        </fieldset>
Lines 201-207 Link Here
201
    [% END %]
202
    [% END %]
202
    
203
    
203
    [% IF ( add_validate ) %]
204
    [% IF ( add_validate ) %]
204
        <h3>Data recorded</h3>
205
        <h3>[% t('Data recorded') %]</h3>
205
        
206
        
206
        <form action="[% script_name %]" method="post">
207
        <form action="[% script_name %]" method="post">
207
        <input type="submit" value="OK" />
208
        <input type="submit" value="OK" />
Lines 210-233 Link Here
210
    
211
    
211
    [% IF ( delete_confirm ) %]
212
    [% IF ( delete_confirm ) %]
212
    <table>
213
    <table>
213
        <caption>Confirm deletion of [% searchfield %]?</caption>
214
        <caption>[% t('Confirm deletion of') %] [% searchfield %]?</caption>
214
        <tr>
215
        <tr>
215
            <th>Variable name:</th>
216
            <th>[% t('Variable name:') %]</th>
216
            <td>[% searchfield %]</td>
217
            <td>[% searchfield %]</td>
217
        </tr>
218
        </tr>
218
        <tr><th>Value: </th><td>
219
        <tr><th>[% t('Value:') %] </th><td>
219
        [% Tvalue %]
220
        [% Tvalue %]
220
        </td></tr></table>
221
        </td></tr></table>
221
        <form class="inline" action="[% script_name %]" method="post">
222
        <form class="inline" action="[% script_name %]" method="post">
222
        <input type="hidden" name="op" value="delete_confirmed" />
223
        <input type="hidden" name="op" value="delete_confirmed" />
223
        <input type="hidden" name="searchfield" value="[% searchfield %]" />
224
        <input type="hidden" name="searchfield" value="[% searchfield %]" />
224
        <input type="hidden" name="Tvalue" value="[% Tvalue %]" />
225
        <input type="hidden" name="Tvalue" value="[% Tvalue %]" />
225
        <input type="submit"  value="Yes, delete" /></form>
226
        <input type="submit" value="Yes, delete" /></form>
226
        <form class="inline" action="[% script_name %]" method="post"><input type="submit" value="No, do not delete" /></form>
227
        <form class="inline" action="[% script_name %]" method="post"><input type="submit" value="No, do not delete" /></form>
227
    [% END %]
228
    [% END %]
228
    
229
    
229
    [% IF ( delete_confirmed ) %]
230
    [% IF ( delete_confirmed ) %]
230
        <h3>Data deleted</h3>
231
        <h3>[% t('Data deleted') %]</h3>
231
        <form action="[% script_name %]" method="post">
232
        <form action="[% script_name %]" method="post">
232
            <input type="submit" value="Back to System Preferences" />
233
            <input type="submit" value="Back to System Preferences" />
233
        </form>
234
        </form>
Lines 236-255 Link Here
236
    [% IF ( else ) %]
237
    [% IF ( else ) %]
237
238
238
    <div id="toolbar" class="btn-toolbar">
239
    <div id="toolbar" class="btn-toolbar">
239
        <a class="btn btn-default btn-sm" id="newstopword" href="[% script_name %]?op=add_form"><i class="fa fa-plus"></i> New preference</a>
240
        <a class="btn btn-default btn-sm" id="newstopword" href="[% script_name %]?op=add_form"><i class="fa fa-plus"></i> [% t('New preference') %]</a>
240
    </div>
241
    </div>
241
242
242
    [% IF ( tab != 'local_use' ) %]
243
    [% IF ( tab != 'local_use' ) %]
243
        <p>Please click on one of the tabs at the left side of this form.</p>
244
        <p>[% t('Please click on one of the tabs at the left side of this form.') %]</p>
244
        <table>
245
        <table>
245
    [% ELSE %]
246
    [% ELSE %]
246
        <h1>Local use preferences</h1>
247
        <h1>[% t('Local use preferences') %]</h1>
247
        <table width="80%" id="sysprefst">
248
        <table width="80%" id="sysprefst">
248
        <thead><tr>
249
        <thead><tr>
249
        <th>Preference</th>
250
        <th>[% t('Preference') %]</th>
250
        <th>Explanation</th>
251
        <th>[% t('Explanation') %]</th>
251
        <th>Value</th>
252
        <th>[% t('Value') %]</th>
252
        <th>Actions</th>
253
        <th>[% t('Actions') %]</th>
253
        </tr></thead>
254
        </tr></thead>
254
    [% END %]
255
    [% END %]
255
    <tbody>[% FOREACH loo IN loop %]
256
    <tbody>[% FOREACH loo IN loop %]
Lines 276-282 Link Here
276
                    [% IF ( loo.type_htmlarea ) && ( Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
277
                    [% IF ( loo.type_htmlarea ) && ( Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
277
                        <textarea class="mce" name="value" rows="[% loo.rows %]" cols="[% loo.cols %]">[% loo.value |html %]</textarea>
278
                        <textarea class="mce" name="value" rows="[% loo.rows %]" cols="[% loo.cols %]">[% loo.value |html %]</textarea>
278
                    [% ELSE %]
279
                    [% ELSE %]
279
                        <a class="expand-textarea" style="display: none" href="#">Click to edit</a>
280
                        <a class="expand-textarea" style="display: none" href="#">[% t('Click to edit') %]</a>
280
                        <textarea name="value" rows="[% loo.rows %]" cols="[% loo.cols %]">[% loo.value |html %]</textarea>
281
                        <textarea name="value" rows="[% loo.rows %]" cols="[% loo.cols %]">[% loo.value |html %]</textarea>
281
                    [% END %]
282
                    [% END %]
282
                [% END %]
283
                [% END %]
Lines 349-370 Link Here
349
                    [% IF ( loo.value_yes ) %]
350
                    [% IF ( loo.value_yes ) %]
350
                        <input type="radio" name="value" value="1" checked="checked" />[% ELSE %]<input type="radio" name="value" value="1" />
351
                        <input type="radio" name="value" value="1" checked="checked" />[% ELSE %]<input type="radio" name="value" value="1" />
351
                    [% END %]
352
                    [% END %]
352
                    <label for="value" class="yesno">ON</label>
353
                    <label for="value" class="yesno">[% t('ON') %]</label>
353
                    [% IF ( loo.value_no ) %]
354
                    [% IF ( loo.value_no ) %]
354
                        <input type="radio" name="value" value="0" checked="checked" />[% ELSE %]<input type="radio" name="value" value="0" />
355
                        <input type="radio" name="value" value="0" checked="checked" />[% ELSE %]<input type="radio" name="value" value="0" />
355
                    [% END %]
356
                    [% END %]
356
                    <label for="value-no" class="yesno">OFF</label>
357
                    <label for="value-no" class="yesno">[% t('OFF') %]</label>
357
                [% END %]
358
                [% END %]
358
                <input type="hidden" name="op" value="add_validate" />
359
                <input type="hidden" name="op" value="add_validate" />
359
                <input type="hidden" name="variable" value="[% loo.variable %]" />
360
                <input type="hidden" name="variable" value="[% loo.variable %]" />
360
                <input type="hidden" name="prefoptions" value="[% loo.prefoptions |html %]" />
361
                <input type="hidden" name="prefoptions" value="[% loo.prefoptions |html %]" />
361
                <input type="hidden" name="preftype" value="[% loo.type %]" />
362
                <input type="hidden" name="preftype" value="[% loo.type %]" />
362
                <input type="hidden" name="explanation" value="[% loo.explanation |html %]" />
363
                <input type="hidden" name="explanation" value="[% loo.explanation |html %]" />
363
                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button>
364
                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> [% t('Save') %]</button>
364
            </form>
365
            </form>
365
        </td>
366
        </td>
366
367
367
        <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></td>
368
        <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.edit %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a> <a class="btn btn-default btn-xs" href="[% loo.delete %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></td>
368
    </tr>
369
    </tr>
369
    [% END %]</tbody>
370
    [% END %]</tbody>
370
    </table>
371
    </table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-13 / +14 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Transport cost matrix</title>
6
<title>[% t('Koha › Administration › Transport cost matrix') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
8
.disabled-transfer {
9
.disabled-transfer {
Lines 15-21 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'prefs-admin-search.inc' %]
17
[% INCLUDE 'prefs-admin-search.inc' %]
17
18
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Transport cost matrix') %]</div>
19
20
20
<div id="doc3" class="yui-t1">
21
<div id="doc3" class="yui-t1">
21
22
Lines 23-39 Link Here
23
    <div id="yui-main">
24
    <div id="yui-main">
24
    <div class="yui-b">
25
    <div class="yui-b">
25
    <h1 class="parameters">
26
    <h1 class="parameters">
26
            Defining transport costs between libraries
27
            [% t('Defining transport costs between libraries') %]
27
    </h1>
28
    </h1>
28
[% IF ( WARNING_transport_cost_matrix_off ) %]
29
[% IF ( WARNING_transport_cost_matrix_off ) %]
29
<div class="dialog message">Because the "UseTransportCostMatrix" system preference is currently not enabled, the transport cost matrix is not being used.  Go <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=UseTransportCostMatrix">here</a> if you wish to enable this feature.</div>
30
<div class="dialog message">[% t('Because the &#34;UseTransportCostMatrix&#34; system preference is currently not enabled, the transport cost matrix is not being used.') %]  [% t('Go') %] <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseTransportCostMatrix">[% t('here') %]</a> [% t('if you wish to enable this feature.') %]</div>
30
[% END %]
31
[% END %]
31
32
32
    [% IF ( errors ) %]<div class="dialog alert">
33
    [% IF ( errors ) %]<div class="dialog alert">
33
        <h4>There were problems with your submission</h4>
34
        <h4>[% t('There were problems with your submission') %]</h4>
34
        <ul>
35
        <ul>
35
            [% FOR e IN errors %]
36
            [% FOR e IN errors %]
36
                <li>Invalid value for [% e %]</li>
37
                <li>[% t('Invalid value for') %] [% e %]</li>
37
            [% END %]
38
            [% END %]
38
        </ul>
39
        </ul>
39
    </div>[% END %]
40
    </div>[% END %]
Lines 42-55 Link Here
42
            <input type="hidden" name="op" value="set-cost-matrix" />
43
            <input type="hidden" name="op" value="set-cost-matrix" />
43
            <fieldset id="transport-cost-matrix">
44
            <fieldset id="transport-cost-matrix">
44
                <div class="help">
45
                <div class="help">
45
                    <p>Costs are decimal values between some arbitrary maximum value (e.g. 1 or 100) and 0 which is the minimum (no) cost.</p>
46
                    <p>[% t('Costs are decimal values between some arbitrary maximum value (e.g. 1 or 100) and 0 which is the minimum (no) cost.') %]</p>
46
                    <p>Red cells signify no transfer allowed.</p>
47
                    <p>[% t('Red cells signify no transfer allowed.') %]</p>
47
                    <p>Click on individual cells to edit.</p>
48
                    <p>[% t('Click on individual cells to edit.') %]</p>
48
                </div>
49
                </div>
49
50
50
                <table>
51
                <table>
51
                    <tr>
52
                    <tr>
52
                        <th>From \ To</th>
53
                        <th>[% t('From \ To') %]</th>
53
                        [% FOR b IN Branches.all() %]
54
                        [% FOR b IN Branches.all() %]
54
                        <th>[% b.branchname %]</th>
55
                        <th>[% b.branchname %]</th>
55
                        [% END %]
56
                        [% END %]
Lines 60-73 Link Here
60
                    [% FOR bt IN bf.branchtoloop %]
61
                    [% FOR bt IN bf.branchtoloop %]
61
                        <td>
62
                        <td>
62
                        [% IF bt.skip %]
63
                        [% IF bt.skip %]
63
                            &nbsp;
64
                             
64
                        [% ELSE %]
65
                        [% ELSE %]
65
                            [% IF bt.disabled %]
66
                            [% IF bt.disabled %]
66
                            <div id="celldiv_[% bt.id %]" class="disabled-transfer">
67
                            <div id="celldiv_[% bt.id %]" class="disabled-transfer">
67
                            [% ELSE %]
68
                            [% ELSE %]
68
                            <div id="celldiv_[% bt.id %]">
69
                            <div id="celldiv_[% bt.id %]">
69
                            [% END %]
70
                            [% END %]
70
                            <div class="enable_cost_input" data-cost-id="[% bt.id %]">[% bt.disabled ? '&nbsp;' : bt.value %]</div>
71
                            <div class="enable_cost_input" data-cost-id="[% bt.id %]">[% bt.disabled ? ' ' : bt.value %]</div>
71
                            <input type="hidden" name="cost_[% bt.id %]" value="[% bt.value %]" />
72
                            <input type="hidden" name="cost_[% bt.id %]" value="[% bt.value %]" />
72
                            [% IF bt.disabled %]
73
                            [% IF bt.disabled %]
73
                            <input type="hidden" name="disable_[% bt.id %]" value="1" />
74
                            <input type="hidden" name="disable_[% bt.id %]" value="1" />
Lines 81-87 Link Here
81
                </table>
82
                </table>
82
            </fieldset>
83
            </fieldset>
83
            <fieldset class="action">
84
            <fieldset class="action">
84
                <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">[% t('Cancel') %]</a>
85
            </fieldset>
86
            </fieldset>
86
        </form>
87
        </form>
87
    </div>
88
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt (-61 / +62 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% USE Koha %]
4
[% USE Koha %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% USE Price %]
6
[% USE Price %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Administration &rsaquo; Koha usage statistics</title>
8
<title>[% t('Koha › Administration › Koha usage statistics') %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("lib/leaflet/leaflet.css") %]
10
[% Asset.css("lib/leaflet/leaflet.css") %]
10
</head>
11
</head>
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
16
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
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> [% t('› Usage statistics') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   <div id="bd">
20
   <div id="bd">
Lines 24-42 Link Here
24
    <div class="dialog [% m.type %]">
25
    <div class="dialog [% m.type %]">
25
        [% SWITCH m.code %]
26
        [% SWITCH m.code %]
26
        [% CASE 'error_on_update' %]
27
        [% CASE 'error_on_update' %]
27
            An error occurred when updating this patron category. Perhaps it already exists.
28
            [% t('An error occurred when updating this patron category. Perhaps it already exists.') %]
28
        [% CASE 'error_on_insert' %]
29
        [% CASE 'error_on_insert' %]
29
            An error occurred when inserting this patron category. The patron category might already exist.
30
            [% t('An error occurred when inserting this patron category. The patron category might already exist.') %]
30
        [% CASE 'error_on_delete' %]
31
        [% CASE 'error_on_delete' %]
31
            An error occurred when deleting this patron category. Check the logs.
32
            [% t('An error occurred when deleting this patron category. Check the logs.') %]
32
        [% CASE 'success_on_update' %]
33
        [% CASE 'success_on_update' %]
33
            Patron category updated successfully.
34
            [% t('Patron category updated successfully.') %]
34
        [% CASE 'success_on_insert' %]
35
        [% CASE 'success_on_insert' %]
35
            Patron category inserted successfully.
36
            [% t('Patron category inserted successfully.') %]
36
        [% CASE 'success_on_delete' %]
37
        [% CASE 'success_on_delete' %]
37
            Patron category deleted successfully.
38
            [% t('Patron category deleted successfully.') %]
38
        [% CASE 'already_exists' %]
39
        [% CASE 'already_exists' %]
39
            This patron category already exists.
40
            [% t('This patron category already exists.') %]
40
        [% CASE %]
41
        [% CASE %]
41
            [% m.code %]
42
            [% m.code %]
42
        [% END %]
43
        [% END %]
Lines 44-70 Link Here
44
[% END %]
45
[% END %]
45
46
46
[% IF NOT Koha.Preference('UsageStats') %]
47
[% IF NOT Koha.Preference('UsageStats') %]
47
    <div class="dialog message">You are not sharing any data with the Koha community</div>
48
    <div class="dialog message">[% t('You are not sharing any data with the Koha community') %]</div>
48
[% END %]
49
[% END %]
49
50
50
    <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">
51
        <h1>Modify the statistics you share with the Koha community</h1>
52
        <h1>[% t('Modify the statistics you share with the Koha community') %]</h1>
52
        <fieldset class="rows">
53
        <fieldset class="rows">
53
            <ol style="float:left;">
54
            <ol style="float:left;">
54
                <li>
55
                <li>
55
                    <label for="UsageStats">Share my Koha usage statistics: </label>
56
                    <label for="UsageStats">[% t('Share my Koha usage statistics:') %] </label>
56
                    <select name="UsageStats" id="UsageStats">
57
                    <select name="UsageStats" id="UsageStats">
57
                    [% IF Koha.Preference('UsageStats') %]
58
                    [% IF Koha.Preference('UsageStats') %]
58
                        <option value="1" selected="selected">Yes</option>
59
                        <option value="1" selected="selected">[% t('Yes') %]</option>
59
                        <option value="0">No</option>
60
                        <option value="0">[% t('No') %]</option>
60
                    [% ELSE %]
61
                    [% ELSE %]
61
                        <option value="1">Yes</option>
62
                        <option value="1">[% t('Yes') %]</option>
62
                        <option value="0" selected="selected">No</option>
63
                        <option value="0" selected="selected">[% t('No') %]</option>
63
                    [% END %]
64
                    [% END %]
64
                    </select>
65
                    </select>
65
                </li>
66
                </li>
66
                <li>
67
                <li>
67
                    <label for="UsageStatsCountry">Your country: </label>
68
                    <label for="UsageStatsCountry">[% t('Your country:') %] </label>
68
                    [% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
69
                    [% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
69
                    [% SET IsUsageStatsCountryValid = 0 %]
70
                    [% SET IsUsageStatsCountryValid = 0 %]
70
                    [% IF NOT UsageStatsCountry %]
71
                    [% IF NOT UsageStatsCountry %]
Lines 72-78 Link Here
72
                    [% END %]
73
                    [% END %]
73
                    [% PROCESS 'country-list.inc' %]
74
                    [% PROCESS 'country-list.inc' %]
74
                    <select name="UsageStatsCountry" id="UsageStatsCountry">
75
                    <select name="UsageStatsCountry" id="UsageStatsCountry">
75
                        <option value="">&nbsp;</option>
76
                        <option value=""> </option>
76
                        [% FOR country IN countries %]
77
                        [% FOR country IN countries %]
77
                            [% IF country == UsageStatsCountry %]
78
                            [% IF country == UsageStatsCountry %]
78
                                <option value="[% country %]" selected="selected">[% country %]</option>
79
                                <option value="[% country %]" selected="selected">[% country %]</option>
Lines 83-197 Link Here
83
                        [% END %]
84
                        [% END %]
84
                    </select>
85
                    </select>
85
                    [% UNLESS IsUsageStatsCountryValid %]
86
                    [% UNLESS IsUsageStatsCountryValid %]
86
                        Note: The value of your system preference 'UsageStatsCountry' is not valid ([% UsageStatsCountry %]).
87
                        [% t('Note: The value of your system preference \'UsageStatsCountry\' is not valid (') %][% UsageStatsCountry %]).
87
                        Please select a valid one.
88
                        [% t('Please select a valid one.') %]
88
                    [% END %]
89
                    [% END %]
89
                </li>
90
                </li>
90
                <li>
91
                <li>
91
                    <label for="UsageStatsLibraryName">Library name: </label>
92
                    <label for="UsageStatsLibraryName">[% t('Library name:') %] </label>
92
                    <input type="text" value="[% Koha.Preference('UsageStatsLibraryName') | html %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
93
                    <input type="text" value="[% Koha.Preference('UsageStatsLibraryName') | html %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
93
                </li>
94
                </li>
94
                <li>
95
                <li>
95
                    <label for="UsageStatsLibraryType">Library type: </label>
96
                    <label for="UsageStatsLibraryType">[% t('Library type:') %] </label>
96
                    [% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
97
                    [% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
97
                    <select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
98
                    <select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
98
                        <option value="">&nbsp;</option>
99
                        <option value=""> </option>
99
                        [% IF UsageStatsLibraryType == 'public' %]
100
                        [% IF UsageStatsLibraryType == 'public' %]
100
                            <option value="public" selected="selected">Public</option>
101
                            <option value="public" selected="selected">[% t('Public') %]</option>
101
                        [% ELSE %]
102
                        [% ELSE %]
102
                            <option value="public">Public</option>
103
                            <option value="public">[% t('Public') %]</option>
103
                        [% END %]
104
                        [% END %]
104
105
105
                        [% IF UsageStatsLibraryType == 'school' %]
106
                        [% IF UsageStatsLibraryType == 'school' %]
106
                            <option value="school" selected="selected">School</option>
107
                            <option value="school" selected="selected">[% t('School') %]</option>
107
                        [% ELSE %]
108
                        [% ELSE %]
108
                            <option value="school">School</option>
109
                            <option value="school">[% t('School') %]</option>
109
                        [% END %]
110
                        [% END %]
110
                        [% IF UsageStatsLibraryType == 'academic' %]
111
                        [% IF UsageStatsLibraryType == 'academic' %]
111
                            <option value="academic" selected="selected">Academic</option>
112
                            <option value="academic" selected="selected">[% t('Academic') %]</option>
112
                        [% ELSE %]
113
                        [% ELSE %]
113
                            <option value="academic">Academic</option>
114
                            <option value="academic">[% t('Academic') %]</option>
114
                        [% END %]
115
                        [% END %]
115
                        [% IF UsageStatsLibraryType == 'research' %]
116
                        [% IF UsageStatsLibraryType == 'research' %]
116
                            <option value="research" selected="selected">Research</option>
117
                            <option value="research" selected="selected">[% t('Research') %]</option>
117
                        [% ELSE %]
118
                        [% ELSE %]
118
                            <option value="research">Research</option>
119
                            <option value="research">[% t('Research') %]</option>
119
                        [% END %]
120
                        [% END %]
120
                        [% IF UsageStatsLibraryType == 'private' %]
121
                        [% IF UsageStatsLibraryType == 'private' %]
121
                            <option value="private" selected="selected">Private</option>
122
                            <option value="private" selected="selected">[% t('Private') %]</option>
122
                        [% ELSE %]
123
                        [% ELSE %]
123
                            <option value="private">Private</option>
124
                            <option value="private">[% t('Private') %]</option>
124
                        [% END %]
125
                        [% END %]
125
                        [% IF UsageStatsLibraryType == 'societyAssociation' %]
126
                        [% IF UsageStatsLibraryType == 'societyAssociation' %]
126
                            <option value="societyAssociation" selected="selected">Society or association</option>
127
                            <option value="societyAssociation" selected="selected">[% t('Society or association') %]</option>
127
                        [% ELSE %]
128
                        [% ELSE %]
128
                            <option value="societyAssociation">Society or association</option>
129
                            <option value="societyAssociation">[% t('Society or association') %]</option>
129
                        [% END %]
130
                        [% END %]
130
                        [% IF UsageStatsLibraryType == 'corporate' %]
131
                        [% IF UsageStatsLibraryType == 'corporate' %]
131
                            <option value="corporate" selected="selected">Corporate</option>
132
                            <option value="corporate" selected="selected">[% t('Corporate') %]</option>
132
                        [% ELSE %]
133
                        [% ELSE %]
133
                            <option value="corporate">Corporate</option>
134
                            <option value="corporate">[% t('Corporate') %]</option>
134
                        [% END %]
135
                        [% END %]
135
                        [% IF UsageStatsLibraryType == 'government' %]
136
                        [% IF UsageStatsLibraryType == 'government' %]
136
                            <option value="government" selected="selected">Government</option>
137
                            <option value="government" selected="selected">[% t('Government') %]</option>
137
                        [% ELSE %]
138
                        [% ELSE %]
138
                            <option value="government">Government</option>
139
                            <option value="government">[% t('Government') %]</option>
139
                        [% END %]
140
                        [% END %]
140
                        [% IF UsageStatsLibraryType == 'religiousOrg' %]
141
                        [% IF UsageStatsLibraryType == 'religiousOrg' %]
141
                            <option value="religiousOrg" selected="selected">Religious organization</option>
142
                            <option value="religiousOrg" selected="selected">[% t('Religious organization') %]</option>
142
                        [% ELSE %]
143
                        [% ELSE %]
143
                            <option value="religiousOrg">Religious organization</option>
144
                            <option value="religiousOrg">[% t('Religious organization') %]</option>
144
                        [% END %]
145
                        [% END %]
145
                        [% IF UsageStatsLibraryType == 'subscription' %]
146
                        [% IF UsageStatsLibraryType == 'subscription' %]
146
                            <option value="subscription" selected="selected">Subscription</option>
147
                            <option value="subscription" selected="selected">[% t('Subscription') %]</option>
147
                        [% ELSE %]
148
                        [% ELSE %]
148
                            <option value="subscription">Subscription</option>
149
                            <option value="subscription">[% t('Subscription') %]</option>
149
                        [% END %]
150
                        [% END %]
150
                    </select>
151
                    </select>
151
                </li>
152
                </li>
152
                <li>
153
                <li>
153
                    <label for="UsageStatsLibraryUrl">Library URL: </label>
154
                    <label for="UsageStatsLibraryUrl">[% t('Library URL:') %] </label>
154
                    <input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
155
                    <input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
155
                </li>
156
                </li>
156
                <li>
157
                <li>
157
                    <span class="label">Last update: </span>
158
                    <span class="label">[% t('Last update:') %] </span>
158
                    [% IF UsageStatsLastUpdateTime %]
159
                    [% IF UsageStatsLastUpdateTime %]
159
                        [% UsageStatsLastUpdateTime %]
160
                        [% UsageStatsLastUpdateTime %]
160
                    [% ELSE %]
161
                    [% ELSE %]
161
                        Your data have never been shared
162
                        [% t('Your data have never been shared') %]
162
                    [% END %]
163
                    [% END %]
163
                </li>
164
                </li>
164
                <li>
165
                <li>
165
                    <label for="UsageStatsGeolocation">Geolocation: </label>
166
                    <label for="UsageStatsGeolocation">[% t('Geolocation:') %] </label>
166
                    <input id="UsageStatsGeolocation" name="UsageStatsGeolocation" value="[% Koha.Preference('UsageStatsGeolocation') %]" type="text" value="[% Koha.Preference('UsageStatsLibrariesInfo') %]" size="35" readonly="readonly" />
167
                    <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>
168
                    <a href="#" class="change_geolocation" data-branchname="" data-id="UsageStatsGeolocation"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="[% t('Set geolocation') %]" style="max-height: 2em;" /></a>
168
                </li>
169
                </li>
169
                <li>
170
                <li>
170
                    <label for="UsageStatsLibrariesInfo">Libraries informations: </label>
171
                    <label for="UsageStatsLibrariesInfo">[% t('Libraries informations:') %] </label>
171
                    <select name="UsageStatsLibrariesInfo" id="UsageStatsLibrariesInfo">
172
                    <select name="UsageStatsLibrariesInfo" id="UsageStatsLibrariesInfo">
172
                        [% IF Koha.Preference('UsageStatsLibrariesInfo') %]
173
                        [% IF Koha.Preference('UsageStatsLibrariesInfo') %]
173
                            <option value="1" selected="selected">Yes</option>
174
                            <option value="1" selected="selected">[% t('Yes') %]</option>
174
                            <option value="0">No</option>
175
                            <option value="0">[% t('No') %]</option>
175
                        [% ELSE %]
176
                        [% ELSE %]
176
                            <option value="1">Yes</option>
177
                            <option value="1">[% t('Yes') %]</option>
177
                            <option value="0" selected="selected">No</option>
178
                            <option value="0" selected="selected">[% t('No') %]</option>
178
                        [% END %]
179
                        [% END %]
179
                    </select>
180
                    </select>
180
                </li>
181
                </li>
181
182
182
                <li id="libraries_info">
183
                <li id="libraries_info">
183
                    <fieldset class="rows">
184
                    <fieldset class="rows">
184
                    <legend>Libraries</legend>
185
                    <legend>[% t('Libraries') %]</legend>
185
                    <ol>
186
                    <ol>
186
                        [% FOR l IN libraries %]
187
                        [% FOR l IN libraries %]
187
                        <li>
188
                        <li>
188
                            <label for="[% l.branchcode %]">[% l.branchname %]: </label>
189
                            <label for="[% l.branchcode %]">[% l.branchname %]: </label>
189
                            <div style="float:left;">
190
                            <div style="float:left;">
190
                                <div>Country: [% l.branchcountry %]</div>
191
                                <div>[% t('Country:') %] [% l.branchcountry %]</div>
191
                                <div>Url: [% l.branchurl %]</div>
192
                                <div>[% t('Url:') %] [% l.branchurl %]</div>
192
                                <div>
193
                                <div>
193
                                    Geolocation: <input type="text" id="geolocation_[% l.branchcode %]" name="geolocation_[% l.branchcode %]" value="[% l.geolocation %]" size="35" readonly="readonly" />
194
                                    [% t('Geolocation:') %] <input type="text" id="geolocation_[% l.branchcode %]" name="geolocation_[% l.branchcode %]" value="[% l.geolocation %]" size="35" readonly="readonly" />
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>
195
                                    <a href="#" class="change_geolocation" data-branchname="[% l.branchname %]" data-id="geolocation_[% l.branchcode %]"><img src="[% interface %]/lib/leaflet/images/marker-icon.png" title="[% t('Set geolocation for') %] [% l.branchname %]" style="max-height: 2em;" /></a>
195
                                </div>
196
                                </div>
196
                            </div>
197
                            </div>
197
                        </li>
198
                        </li>
Lines 200-211 Link Here
200
                    </fieldset>
201
                    </fieldset>
201
                </li>
202
                </li>
202
                <li>
203
                <li>
203
                    <label for="MyPublicLink">See your public page: </label>
204
                    <label for="MyPublicLink">[% t('See your public page:') %] </label>
204
                    [% IF Koha.Preference('UsageStatsPublicID') %]
205
                    [% IF Koha.Preference('UsageStatsPublicID') %]
205
                        [% SET my_url = 'https://hea.koha-community.org/libraries/' _  Koha.Preference('UsageStatsPublicID') %]
206
                        [% SET my_url = 'https://hea.koha-community.org/libraries/' _  Koha.Preference('UsageStatsPublicID') %]
206
                        <a href="[% my_url %]">[% my_url %]</a>
207
                        <a href="[% my_url %]">[% my_url %]</a>
207
                    [% ELSE %]
208
                    [% ELSE %]
208
                        You do not have anything public yet.
209
                        [% t('You do not have anything public yet.') %]
209
                    [% END %]
210
                    [% END %]
210
                </li>
211
                </li>
211
212
Lines 217-223 Link Here
217
        <fieldset class="action">
218
        <fieldset class="action">
218
            <input type="hidden" name="op" value="update" />
219
            <input type="hidden" name="op" value="update" />
219
            <input type="submit" value="Update your statistics usage" />
220
            <input type="submit" value="Update your statistics usage" />
220
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
221
            <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">[% t('Cancel') %]</a>
221
        </fieldset>
222
        </fieldset>
222
    </form>
223
    </form>
223
</div>
224
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt (-71 / +71 lines)
Lines 1-18 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
5
5
[% BLOCK ServerType %]
6
[% BLOCK ServerType %]
6
    [% IF (server.servertype||type) == 'sru' %]
7
    [% IF (server.servertype||type) == 'sru' %]
7
        SRU
8
        [% t('SRU') %]
8
    [% ELSIF (server.servertype||type) == 'zed' %]
9
    [% ELSIF (server.servertype||type) == 'zed' %]
9
        Z39.50
10
        [% t('Z39.50') %]
10
    [% END %]
11
    [% END %]
11
[% END %]
12
[% END %]
12
13
13
<title>Koha &rsaquo; Administration &rsaquo; Z39.50/SRU servers
14
<title>[% t('Koha › Administration › Z39.50/SRU servers') %]
14
[% IF op == 'edit' %] &rsaquo; Modify [% PROCESS ServerType %] server [% server.servername %][% END %]
15
[% IF op == 'edit' %] [% t('› Modify') %] [% PROCESS ServerType %] [% t('server') %] [% server.servername %][% END %]
15
[% IF op ==  'add' %] &rsaquo; New [% PROCESS ServerType %] server[% END %]
16
[% IF op ==  'add' %] [% t('› New') %] [% PROCESS ServerType %] [% t('server') %][% END %]
16
</title>
17
</title>
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
18
19
Lines 25-34 Link Here
25
[% INCLUDE 'header.inc' %]
26
[% INCLUDE 'header.inc' %]
26
[% INCLUDE 'z3950-admin-search.inc' %]
27
[% INCLUDE 'z3950-admin-search.inc' %]
27
28
28
<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;
29
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">[% t('Administration') %]</a> ›
29
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a>
30
<a href="/cgi-bin/koha/admin/z3950servers.pl">[% t('Z39.50/SRU servers') %]</a>
30
[% IF op == 'edit' %]&rsaquo; Modify [% PROCESS ServerType %] server [% server.servername %][% END %]
31
[% IF op == 'edit' %][% t('› Modify') %] [% PROCESS ServerType %] [% t('server') %] [% server.servername %][% END %]
31
[% IF op ==  'add' %]&rsaquo; New [% PROCESS ServerType %] server[% END %]
32
[% IF op ==  'add' %][% t('› New') %] [% PROCESS ServerType %] [% t('server') %][% END %]
32
</div>
33
</div>
33
34
34
<div id="doc3" class="yui-t2">
35
<div id="doc3" class="yui-t2">
Lines 37-112 Link Here
37
<div class="yui-b">
38
<div class="yui-b">
38
39
39
[% IF msg_deleted %]
40
[% IF msg_deleted %]
40
    <div class="dialog alert">Z39.50/SRU server deleted ([% msg_add %])</div>
41
    <div class="dialog alert">[% t('Z39.50/SRU server deleted (') %][% msg_add %])</div>
41
[% ELSIF msg_updated %]
42
[% ELSIF msg_updated %]
42
    <div class="dialog message">Z39.50/SRU server updated ([% msg_add %])</div>
43
    <div class="dialog message">[% t('Z39.50/SRU server updated (') %][% msg_add %])</div>
43
[% ELSIF msg_added %]
44
[% ELSIF msg_added %]
44
    <div class="dialog message">Z39.50/SRU server added ([% msg_add %])</div>
45
    <div class="dialog message">[% t('Z39.50/SRU server added (') %][% msg_add %])</div>
45
[% ELSIF msg_notfound %]
46
[% ELSIF msg_notfound %]
46
    <div class="dialog alert">Error: Server with id [% msg_add %] not found</div>
47
    <div class="dialog alert">[% t('Error: Server with id') %] [% msg_add %] [% t('not found') %]</div>
47
[% END %]
48
[% END %]
48
49
49
[% IF ( add_form ) %]
50
[% IF ( add_form ) %]
50
    <form action="[% script_name %]" name="Aform" method="post" id="serverentry">
51
    <form action="[% script_name %]" name="Aform" method="post" id="serverentry">
51
        <input type="hidden" name="op" value="add_validated" />
52
        <input type="hidden" name="op" value="add_validated" />
52
        <input type="hidden" name="servertype" value="[% server.servertype||type||'zed' %]"/>
53
        <input type="hidden" name="servertype" value="[% server.servertype||type||'zed' %]" />
53
        [% IF op == 'edit' %]
54
        [% IF op == 'edit' %]
54
            <h1>Modify [% PROCESS ServerType %] server</h1>
55
            <h1>[% t('Modify') %] [% PROCESS ServerType %] [% t('server') %]</h1>
55
            <input type="hidden" name="id" value="[% server.id %]" />
56
            <input type="hidden" name="id" value="[% server.id %]" />
56
        [% ELSE %]
57
        [% ELSE %]
57
            <h1>New [% PROCESS ServerType %] server</h1>
58
            <h1>[% t('New') %] [% PROCESS ServerType %] [% t('server') %]</h1>
58
        [% END %]
59
        [% END %]
59
        <fieldset class="rows">
60
        <fieldset class="rows">
60
        <ol>
61
        <ol>
61
        <li><label for="name" class="required">Server name: </label>
62
        <li><label for="name" class="required">[% t('Server name:') %] </label>
62
            <input type="text" name="servername" id="servername" size="65" maxlength="100" value="[% server.servername | html %]" required="required" /> <span class="required">Required</span>
63
            <input type="text" name="servername" id="servername" size="65" maxlength="100" value="[% server.servername | html %]" required="required" /> <span class="required">[% t('Required') %]</span>
63
        </li>
64
        </li>
64
65
65
        <li><label for="host" class="required">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">Required</span>
66
        <li><label for="host" class="required">[% t('Hostname:') %] </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">[% t('Required') %]</span>
66
            [% IF (server.servertype||type) == 'sru' %]
67
            [% IF (server.servertype||type) == 'sru' %]
67
                <div class="hint">Includes the domain part, but the path part of the URL should go into Database.</div>
68
                <div class="hint">[% t('Includes the domain part, but the path part of the URL should go into Database.') %]</div>
68
            [% END %]
69
            [% END %]
69
        </li>
70
        </li>
70
        <li><label for="port" class="required">Port: </label> <input type="text" name="port" id="port" size="5" value="[% server.port %]" required="required" /> <span class="required">Required</span>
71
        <li><label for="port" class="required">[% t('Port:') %] </label> <input type="text" name="port" id="port" size="5" value="[% server.port %]" required="required" /> <span class="required">[% t('Required') %]</span>
71
        </li>
72
        </li>
72
        <li><label for="db" class="required">Database: </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">Required</span>
73
        <li><label for="db" class="required">[% t('Database:') %] </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">[% t('Required') %]</span>
73
        </li>
74
        </li>
74
        <li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% server.userid %]" />
75
        <li><label for="userid">[% t('Userid:') %] </label> <input type="text" name="userid" id="userid" value="[% server.userid %]" />
75
        </li>
76
        </li>
76
        <li><label for="password">Password: </label> <input type="text" name="password" id="password" value="[% server.password %]" />
77
        <li><label for="password">[% t('Password:') %] </label> <input type="text" name="password" id="password" value="[% server.password %]" />
77
        </li>
78
        </li>
78
        <li><label for="checked">Preselected (searched by default): </label>
79
        <li><label for="checked">[% t('Preselected (searched by default):') %] </label>
79
        [% IF ( server.checked ) %]
80
        [% IF ( server.checked ) %]
80
            <input type="checkbox" name="checked" id="checked" value="1" checked="checked" />
81
            <input type="checkbox" name="checked" id="checked" value="1" checked="checked" />
81
        [% ELSE %]
82
        [% ELSE %]
82
            <input type="checkbox" name="checked" id="checked" value="1" />
83
            <input type="checkbox" name="checked" id="checked" value="1" />
83
        [% END %]
84
        [% END %]
84
        </li>
85
        </li>
85
        <li><label for="rank">Rank (display order): </label> <input type="text" name="rank" id="rank" size="4" value="[% server.rank %]" />
86
        <li><label for="rank">[% t('Rank (display order):') %] </label> <input type="text" name="rank" id="rank" size="4" value="[% server.rank %]" />
86
        </li>
87
        </li>
87
88
88
        <li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label>
89
        <li><label for="syntax">[% t('Syntax (z3950 can send') %]<br /> [% t('records in various format. Choose one):') %] </label>
89
        <select name="syntax" id="syntax">
90
        <select name="syntax" id="syntax">
90
            <option value="UNIMARC">UNIMARC</option>
91
            <option value="UNIMARC">[% t('UNIMARC') %]</option>
91
            <option value="INTERMARC">INTERMARC</option>
92
            <option value="INTERMARC">[% t('INTERMARC') %]</option>
92
            <option value="CCF">CCF</option>
93
            <option value="CCF">[% t('CCF') %]</option>
93
            <option value="USMARC">MARC21/USMARC</option>
94
            <option value="USMARC">[% t('MARC21/USMARC') %]</option>
94
            <option value="UKMARC">UKMARC</option>
95
            <option value="UKMARC">[% t('UKMARC') %]</option>
95
            <option value="NORMARC">NORMARC</option>
96
            <option value="NORMARC">[% t('NORMARC') %]</option>
96
            <option value="LIBRISMARC">LIBRISMARC</option>
97
            <option value="LIBRISMARC">[% t('LIBRISMARC') %]</option>
97
            <option value="DANMARC">DANMARC</option>
98
            <option value="DANMARC">[% t('DANMARC') %]</option>
98
            <option value="FINMARC">FINMARC</option>
99
            <option value="FINMARC">[% t('FINMARC') %]</option>
99
            <option value="CANMARC">CANMARC</option>
100
            <option value="CANMARC">[% t('CANMARC') %]</option>
100
            <option value="SBN">SBN</option>
101
            <option value="SBN">[% t('SBN') %]</option>
101
            <option value="PICAMARC">PICAMARC</option>
102
            <option value="PICAMARC">[% t('PICAMARC') %]</option>
102
            <option value="AUSMARC">AUSMARC</option>
103
            <option value="AUSMARC">[% t('AUSMARC') %]</option>
103
            <option value="IBERMARC">IBERMARC</option>
104
            <option value="IBERMARC">[% t('IBERMARC') %]</option>
104
            <option value="CATMARC">CATMARC</option>
105
            <option value="CATMARC">[% t('CATMARC') %]</option>
105
            <option value="MALMARC">MALMARC</option>
106
            <option value="MALMARC">[% t('MALMARC') %]</option>
106
        </select>
107
        </select>
107
        </li>
108
        </li>
108
109
109
        <li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label>
110
        <li><label for="encoding">[% t('Encoding (z3950 can send') %]<br /> [% t('records in various encodings. Choose one):') %] </label>
110
        <select name="encoding" id="encoding">
111
        <select name="encoding" id="encoding">
111
            [% FOREACH enc IN [ 'utf8' 'EUC-KR' 'ISO_5426' 'ISO_6937' 'ISO_8859-1' 'MARC-8' ] %]
112
            [% FOREACH enc IN [ 'utf8' 'EUC-KR' 'ISO_5426' 'ISO_6937' 'ISO_8859-1' 'MARC-8' ] %]
112
                <option value="[% enc %]">[% enc %]</option>
113
                <option value="[% enc %]">[% enc %]</option>
Lines 114-187 Link Here
114
        </select>
115
        </select>
115
        </li>
116
        </li>
116
117
117
        <li><label for="timeout">Timeout (0 its like not set): </label>
118
        <li><label for="timeout">[% t('Timeout (0 its like not set):') %] </label>
118
        <input type="text" name="timeout" id="timeout" size="4" value="[% server.timeout %]" /> seconds
119
        <input type="text" name="timeout" id="timeout" size="4" value="[% server.timeout %]" /> [% t('seconds') %]
119
        </li>
120
        </li>
120
        <li><label for="recordtype">Record type: </label>
121
        <li><label for="recordtype">[% t('Record type:') %] </label>
121
        <select name="recordtype" id="recordtype">
122
        <select name="recordtype" id="recordtype">
122
            <option value="biblio">Bibliographic</option>
123
            <option value="biblio">[% t('Bibliographic') %]</option>
123
            <option value="authority">Authority</option>
124
            <option value="authority">[% t('Authority') %]</option>
124
        </select>
125
        </select>
125
        </li>
126
        </li>
126
        [% IF (server.servertype||type) == 'sru' %]
127
        [% IF (server.servertype||type) == 'sru' %]
127
        <li>
128
        <li>
128
        <label for="sru_options">Additional SRU options: </label>
129
        <label for="sru_options">[% t('Additional SRU options:') %] </label>
129
        <input type="text" name="sru_options" id="sru_options" size="50" value="[% server.sru_options %]"/>
130
        <input type="text" name="sru_options" id="sru_options" size="50" value="[% server.sru_options %]" />
130
        <div class="hint">Separate options by commas. Example: sru=get,sru_version=1.1. See also http://www.indexdata.com/yaz/doc/zoom.html.</div>
131
        <div class="hint">[% t('Separate options by commas. Example: sru=get,sru_version=1.1. See also http://www.indexdata.com/yaz/doc/zoom.html.') %]</div>
131
        </li>
132
        </li>
132
        <li>
133
        <li>
133
        <label for="sru_fields">SRU Search fields mapping: </label>
134
        <label for="sru_fields">[% t('SRU Search fields mapping:') %] </label>
134
        <input type="hidden" name="sru_fields" id="sru_fields" value="[% server.sru_fields %]" />
135
        <input type="hidden" name="sru_fields" id="sru_fields" value="[% server.sru_fields %]" />
135
            <input type="text" name="show_sru_fields" id="show_sru_fields" size="100" value="[% server.sru_fields %]" disabled="disabled" /> <input type="button" id="modify_sru_fields" value="Modify" />
136
            <input type="text" name="show_sru_fields" id="show_sru_fields" size="100" value="[% server.sru_fields %]" disabled="disabled" /> <input type="button" id="modify_sru_fields" value="Modify" />
136
        </li>
137
        </li>
137
        [% END %]
138
        [% END %]
138
        <li>
139
        <li>
139
        <label for="add_xslt">XSLT File(s) for transforming results: </label>
140
        <label for="add_xslt">[% t('XSLT File(s) for transforming results:') %] </label>
140
        <input type="text" name="add_xslt" id="add_xslt" size="100" value="[% server.add_xslt %]"/>
141
        <input type="text" name="add_xslt" id="add_xslt" size="100" value="[% server.add_xslt %]" />
141
        <div class="hint">Separate multiple filenames by commas.</span>
142
        <div class="hint">[% t('Separate multiple filenames by commas.') %]</span>
142
        </li>
143
        </li>
143
144
144
        </ol>
145
        </ol>
145
        </fieldset>
146
        </fieldset>
146
147
147
        <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">Cancel</a></fieldset>
148
        <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">[% t('Cancel') %]</a></fieldset>
148
    </form>
149
    </form>
149
[% END %]
150
[% END %]
150
151
151
[% IF op == 'list' %]
152
[% IF op == 'list' %]
152
    <div id="toolbar" class="btn-toolbar">
153
    <div id="toolbar" class="btn-toolbar">
153
        <a id="newserver" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=zed"><i class="fa fa-plus"></i> New Z39.50 server</a>
154
        <a id="newserver" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=zed"><i class="fa fa-plus"></i> [% t('New Z39.50 server') %]</a>
154
        <a id="newserver" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=sru"><i class="fa fa-plus"></i> New SRU server</a>
155
        <a id="newserver" class="btn btn-default btn-sm" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=sru"><i class="fa fa-plus"></i> [% t('New SRU server') %]</a>
155
    </div>
156
    </div>
156
    <h3>Z39.50/SRU servers administration</h3>
157
    <h3>[% t('Z39.50/SRU servers administration') %]</h3>
157
    [% IF id %]
158
    [% IF id %]
158
        You searched for record [% id %]
159
        [% t('You searched for record') %] [% id %]
159
    [% ELSIF searchfield %]
160
    [% ELSIF searchfield %]
160
        You searched for [% searchfield |html %]
161
        [% t('You searched for') %] [% searchfield |html %]
161
    [% END %]
162
    [% END %]
162
    <table id="serverst">
163
    <table id="serverst">
163
        <thead><tr><th>Target</th><th>Hostname/Port</th><th>Database</th><th>Userid</th><th>Password</th><th>Preselected</th><th>Rank</th><th>Syntax</th><th>Encoding</th><th>Timeout</th><th>Record type</th><th></th>
164
        <thead><tr><th>[% t('Target') %]</th><th>[% t('Hostname/Port') %]</th><th>[% t('Database') %]</th><th>[% t('Userid') %]</th><th>[% t('Password') %]</th><th>[% t('Preselected') %]</th><th>[% t('Rank') %]</th><th>[% t('Syntax') %]</th><th>[% t('Encoding') %]</th><th>[% t('Timeout') %]</th><th>[% t('Record type') %]</th><th></th>
164
        </tr></thead>
165
        </tr></thead>
165
        <tbody>
166
        <tbody>
166
        [% FOREACH loo IN loop %]
167
        [% FOREACH loo IN loop %]
167
            <tr>
168
            <tr>
168
            <td><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&amp;id=[% loo.id %]">[% loo.servername %]</a></td><td>[% loo.host %]:[% loo.port %]</td><td>[% loo.db %]</td><td>[% loo.userid %]</td><td>[% IF loo.password %]########[% END %]</td><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank %]</td>
169
            <td><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&id=[% loo.id %]">[% loo.servername %]</a></td><td>[% loo.host %]:[% loo.port %]</td><td>[% loo.db %]</td><td>[% loo.userid %]</td><td>[% IF loo.password %]########[% END %]</td><td>[% IF ( loo.checked ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</td><td>[% loo.rank %]</td>
169
            <td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td>
170
            <td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td>
170
            <td>[% IF ( loo.recordtype == 'biblio' )  %]
171
            <td>[% IF ( loo.recordtype == 'biblio' )  %]
171
                <span>Bibliographic</span>
172
                <span>[% t('Bibliographic') %]</span>
172
                [% ELSIF ( loo.recordtype == 'authority' ) %]
173
                [% ELSIF ( loo.recordtype == 'authority' ) %]
173
                <span>Authority</span>
174
                <span>[% t('Authority') %]</span>
174
                [% END %]
175
                [% END %]
175
            </td>
176
            </td>
176
            <td>
177
            <td>
177
                <div class="dropdown">
178
                <div class="dropdown">
178
                    <a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id %]" role="button" data-toggle="dropdown" href="#">
179
                    <a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id %]" role="button" data-toggle="dropdown" href="#">
179
                        Actions <b class="caret"></b>
180
                        [% t('Actions') %] <b class="caret"></b>
180
                    </a>
181
                    </a>
181
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id %]">
182
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reportactions[% savedreport.id %]">
182
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&amp;id=[% loo.id %]"><i class="fa fa-pencil"></i> Edit</a></li>
183
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&id=[% loo.id %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
183
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=add&amp;id=[% loo.id %]"><i class="fa fa-copy"></i> Copy</a></li>
184
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=add&id=[% loo.id %]"><i class="fa fa-copy"></i> [% t('Copy') %]</a></li>
184
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=delete_confirmed&amp;id=[% loo.id %]" class="delete" data-servername="[% loo.servername %]"><i class="fa fa-trash"></i> Delete</a></li>
185
                        <li><a href="/cgi-bin/koha/admin/z3950servers.pl?op=delete_confirmed&id=[% loo.id %]" class="delete" data-servername="[% loo.servername %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
185
                    </ul>
186
                    </ul>
186
                </div>
187
                </div>
187
            </td>
188
            </td>
188
- 

Return to bug 20988