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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-4 / +4 lines)
Lines 146-152 function displayMoreConstraint(numlayer){ Link Here
146
                                <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
146
                                <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
147
                                [% FOREACH value IN loo.kohafield.values %]
147
                                [% FOREACH value IN loo.kohafield.values %]
148
                                    [% IF ( value == loo.kohafield.default ) %]
148
                                    [% IF ( value == loo.kohafield.default ) %]
149
                                    <option value="[% value %]" selected>[% value %]</option>
149
                                    <option value="[% value %]" selected="selected">[% value %]</option>
150
                                    [% ELSE %]
150
                                    [% ELSE %]
151
                                    <option value="[% value %]">[% value %]</option>
151
                                    <option value="[% value %]">[% value %]</option>
152
                                    [% END %]
152
                                    [% END %]
Lines 158-164 function displayMoreConstraint(numlayer){ Link Here
158
                                <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
158
                                <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
159
                                [% FOREACH value IN loo.authorised_value.values %]
159
                                [% FOREACH value IN loo.authorised_value.values %]
160
                                    [% IF ( value == loo.authorised_value.default ) %]
160
                                    [% IF ( value == loo.authorised_value.default ) %]
161
                                    <option value="[% value %]" selected>[% value %]</option>
161
                                    <option value="[% value %]" selected="selected">[% value %]</option>
162
                                    [% ELSE %]
162
                                    [% ELSE %]
163
                                    <option value="[% value %]">[% value %]</option>
163
                                    <option value="[% value %]">[% value %]</option>
164
                                    [% END %]
164
                                    [% END %]
Lines 170-176 function displayMoreConstraint(numlayer){ Link Here
170
                                <select name="frameworkcode" id="[% loo.frameworkcode.id %]" size="1">
170
                                <select name="frameworkcode" id="[% loo.frameworkcode.id %]" size="1">
171
                                [% FOREACH value IN loo.frameworkcode.values %]
171
                                [% FOREACH value IN loo.frameworkcode.values %]
172
                                    [% IF ( value == loo.frameworkcode.default ) %]
172
                                    [% IF ( value == loo.frameworkcode.default ) %]
173
                                    <option value="[% value %]" selected>[% value %]</option>
173
                                    <option value="[% value %]" selected="selected">[% value %]</option>
174
                                    [% ELSE %]
174
                                    [% ELSE %]
175
                                    <option value="[% value %]">[% value %]</option>
175
                                    <option value="[% value %]">[% value %]</option>
176
                                    [% END %]
176
                                    [% END %]
Lines 182-188 function displayMoreConstraint(numlayer){ Link Here
182
                                <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
182
                                <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
183
                                [% FOREACH value IN loo.value_builder.values %]
183
                                [% FOREACH value IN loo.value_builder.values %]
184
                                    [% IF ( value == loo.value_builder.default ) %]
184
                                    [% IF ( value == loo.value_builder.default ) %]
185
                                    <option value="[% value %]" selected>[% value %]</option>
185
                                    <option value="[% value %]" selected="selected">[% value %]</option>
186
                                    [% ELSE %]
186
                                    [% ELSE %]
187
                                    <option value="[% value %]">[% value %]</option>
187
                                    <option value="[% value %]">[% value %]</option>
188
                                    [% END %]
188
                                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-1 / +1 lines)
Lines 113-119 Link Here
113
            <select name="authorised_value" id="authorised_value" size="1">
113
            <select name="authorised_value" id="authorised_value" size="1">
114
            [% FOREACH value IN authorised_value.values %]
114
            [% FOREACH value IN authorised_value.values %]
115
                [% IF ( value == authorised_value.default ) %]
115
                [% IF ( value == authorised_value.default ) %]
116
                    <option value="[% value %]" selected>[% value %]</option>
116
                    <option value="[% value %]" selected="selected">[% value %]</option>
117
                [% ELSE %]
117
                [% ELSE %]
118
                    <option value="[% value %]">[% value %]</option>
118
                    <option value="[% value %]">[% value %]</option>
119
                [% END %]
119
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt (-3 / +3 lines)
Lines 41-47 Link Here
41
                <select name="marc" id="marc" size="1" width="570" style="width: 570px;">
41
                <select name="marc" id="marc" size="1" width="570" style="width: 570px;">
42
                    [% FOREACH value IN $marclist.values %]
42
                    [% FOREACH value IN $marclist.values %]
43
                        [% IF ( value == $marclist.default ) %]
43
                        [% IF ( value == $marclist.default ) %]
44
                            <option value="[% value %]" selected>[% value %]</option>
44
                            <option value="[% value %]" selected="selected">[% value %]</option>
45
                        [% ELSE %]
45
                        [% ELSE %]
46
                            <option value="[% value %]">[% value %]</option>
46
                            <option value="[% value %]">[% value %]</option>
47
                        [% END %]
47
                        [% END %]
Lines 74-82 Link Here
74
    <select name="tablename" id="tablename" size="1">
74
    <select name="tablename" id="tablename" size="1">
75
    [% FOREACH value IN tablename.values %]
75
    [% FOREACH value IN tablename.values %]
76
        [% IF ( value == tablename.default ) %]
76
        [% IF ( value == tablename.default ) %]
77
        <option value=[% value %] selected>[% value %]</option>
77
        <option value="[% value %]" selected="selected">[% value %]</option>
78
        [% ELSE %]
78
        [% ELSE %]
79
        <option value=[% value %]>[% value %]</option>
79
        <option value="[% value %]">[% value %]</option>
80
        [% END %]
80
        [% END %]
81
    [% END %]
81
    [% END %]
82
    </select>
82
    </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-4 / +4 lines)
Lines 282-288 function populateHiddenCheckboxes(tab) { Link Here
282
                    <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
282
                    <select name="kohafield" id="[% loo.kohafield.id %]" size="1">
283
                    [% FOREACH value IN loo.kohafield.values %]
283
                    [% FOREACH value IN loo.kohafield.values %]
284
                      [% IF ( value == loo.kohafield.default ) %]
284
                      [% IF ( value == loo.kohafield.default ) %]
285
                        <option value="[% value %]" selected>[% value %]</option>
285
                        <option value="[% value %]" selected="selected">[% value %]</option>
286
                      [% ELSE %]
286
                      [% ELSE %]
287
                        <option value="[% value %]">[% value %]</option>
287
                        <option value="[% value %]">[% value %]</option>
288
                      [% END %]
288
                      [% END %]
Lines 301-307 function populateHiddenCheckboxes(tab) { Link Here
301
                                <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
301
                                <select name="authorised_value" id="[% loo.authorised_value.id %]" size="1">
302
                                [% FOREACH value IN loo.authorised_value.values %]
302
                                [% FOREACH value IN loo.authorised_value.values %]
303
                                    [% IF ( value == loo.authorised_value.default ) %]
303
                                    [% IF ( value == loo.authorised_value.default ) %]
304
                                    <option value="[% value %]" selected>[% value %]</option>
304
                                    <option value="[% value %]" selected="selected">[% value %]</option>
305
                                    [% ELSE %]
305
                                    [% ELSE %]
306
                                    <option value="[% value %]">[% value %]</option>
306
                                    <option value="[% value %]">[% value %]</option>
307
                                    [% END %]
307
                                    [% END %]
Lines 313-319 function populateHiddenCheckboxes(tab) { Link Here
313
                                <select name="authtypecode" id="[% loo.authtypes.id %]" size="1">
313
                                <select name="authtypecode" id="[% loo.authtypes.id %]" size="1">
314
                                [% FOREACH value IN loo.authtypes.values %]
314
                                [% FOREACH value IN loo.authtypes.values %]
315
                                    [% IF ( value == loo.authtypes.default ) %]
315
                                    [% IF ( value == loo.authtypes.default ) %]
316
                                    <option value="[% value %]" selected>[% value %]</option>
316
                                    <option value="[% value %]" selected="selected">[% value %]</option>
317
                                    [% ELSE %]
317
                                    [% ELSE %]
318
                                    <option value="[% value %]">[% value %]</option>
318
                                    <option value="[% value %]">[% value %]</option>
319
                                    [% END %]
319
                                    [% END %]
Lines 325-331 function populateHiddenCheckboxes(tab) { Link Here
325
                                <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
325
                                <select name="value_builder" id="[% loo.value_builder.id %]" size="1">
326
                                [% FOREACH value IN loo.value_builder.values %]
326
                                [% FOREACH value IN loo.value_builder.values %]
327
                                    [% IF ( value == loo.value_builder.default ) %]
327
                                    [% IF ( value == loo.value_builder.default ) %]
328
                                    <option value="[% value %]" selected>[% value %]</option>
328
                                    <option value="[% value %]" selected="selected">[% value %]</option>
329
                                    [% ELSE %]
329
                                    [% ELSE %]
330
                                    <option value="[% value %]">[% value %]</option>
330
                                    <option value="[% value %]">[% value %]</option>
331
                                    [% END %]
331
                                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt (-2 / +2 lines)
Lines 80-90 function hideDialogBox() { Link Here
80
                  <td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield %]" /></td>
80
                  <td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield %]" /></td>
81
                  <td><select name=operator>
81
                  <td><select name=operator>
82
                      [% IF mapping.operator == 'equal' %]
82
                      [% IF mapping.operator == 'equal' %]
83
                        <option selected value="equal">is equal to</option>
83
                        <option value="equal" selected="selected">is equal to</option>
84
                        <option value="notequal">not equal to</option>
84
                        <option value="notequal">not equal to</option>
85
                      [% ELSE %]
85
                      [% ELSE %]
86
                        <option value="equal">is equal to</option>
86
                        <option value="equal">is equal to</option>
87
                        <option selected value="notequal">not equal to</option>
87
                        <option value="notequal" selected="selected">not equal to</option>
88
                      [% END %]
88
                      [% END %]
89
                      </select></td>
89
                      </select></td>
90
                  <td><input type="text" name="marcvalue" value="[% mapping.marcvalue %]" /></td>
90
                  <td><input type="text" name="marcvalue" value="[% mapping.marcvalue %]" /></td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +1 lines)
Lines 242-248 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
242
                    <td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
242
                    <td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
243
                    <td>
243
                    <td>
244
                      <select name="lengthunit" id="lengthunit">
244
                      <select name="lengthunit" id="lengthunit">
245
                        <option value="days" selected>Days</option>
245
                        <option value="days" selected="selected">Days</option>
246
                        <option value="hours">Hours</option>
246
                        <option value="hours">Hours</option>
247
                      </select>
247
                      </select>
248
                    </td>
248
                    </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-16 / +16 lines)
Lines 78-102 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
78
            <label for="lang">Display location</label>
78
            <label for="lang">Display location</label>
79
            <select id="lang" name="lang">
79
            <select id="lang" name="lang">
80
                [% IF ( default_lang == "" ) %]
80
                [% IF ( default_lang == "" ) %]
81
                <option value=""     selected>All</option>
81
                <option value="" selected="selected">All</option>
82
                [% ELSE %]
82
                [% ELSE %]
83
                <option value=""             >All</option>
83
                <option value=""                    >All</option>
84
                [% END %]
84
                [% END %]
85
                [% IF ( default_lang == "koha" ) %]
85
                [% IF ( default_lang == "koha" ) %]
86
                <option value="koha" selected>Librarian interface</option>
86
                <option value="koha" selected="selected">Librarian interface</option>
87
                [% ELSE %]
87
                [% ELSE %]
88
                <option value="koha"         >Librarian interface</option>
88
                <option value="koha"                    >Librarian interface</option>
89
                [% END %]
89
                [% END %]
90
                [% IF ( default_lang == "slip" ) %]
90
                [% IF ( default_lang == "slip" ) %]
91
                <option value="slip" selected>Slip</option>
91
                <option value="slip" selected="selected">Slip</option>
92
                [% ELSE %]
92
                [% ELSE %]
93
                <option value="slip"         >Slip</option>
93
                <option value="slip"                    >Slip</option>
94
                [% END %]
94
                [% END %]
95
                [% FOREACH lang_lis IN lang_list %]
95
                [% FOREACH lang_lis IN lang_list %]
96
                [% IF ( lang_lis.language == default_lang ) %]
96
                [% IF ( lang_lis.language == default_lang ) %]
97
                    <option value="[% lang_lis.language %]" selected>OPAC ([% lang_lis.language %])</option>
97
                    <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
98
                [% ELSE %]
98
                [% ELSE %]
99
                    <option value="[% lang_lis.language %]"         >OPAC ([% lang_lis.language %])</option>
99
                    <option value="[% lang_lis.language %]"                    >OPAC ([% lang_lis.language %])</option>
100
                [% END %]
100
                [% END %]
101
                [% END %]
101
                [% END %]
102
            </select>
102
            </select>
Lines 105-117 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
105
                <label for="branch">Library: </label>
105
                <label for="branch">Library: </label>
106
                <select id="branch" name="branch">
106
                <select id="branch" name="branch">
107
                [% IF ( new_detail.branchcode == '' ) %]
107
                [% IF ( new_detail.branchcode == '' ) %]
108
                    <option value="" selected>All Libraries</option>
108
                    <option value="" selected="selected">All Libraries</option>
109
                [% ELSE %]
109
                [% ELSE %]
110
                    <option value=""         >All Libraries</option>
110
                    <option value=""         >All Libraries</option>
111
                [% END %]
111
                [% END %]
112
                [% FOREACH branch_item IN branch_list %]
112
                [% FOREACH branch_item IN branch_list %]
113
                [% IF ( branch_item.value.branchcode == new_detail.branchcode ) %]
113
                [% IF ( branch_item.value.branchcode == new_detail.branchcode ) %]
114
                    <option value="[% branch_item.value.branchcode %]" selected>[% branch_item.value.branchname %]</option>
114
                    <option value="[% branch_item.value.branchcode %]" selected="selected">[% branch_item.value.branchname %]</option>
115
                [% ELSE %]
115
                [% ELSE %]
116
                    <option value="[% branch_item.value.branchcode %]">[% branch_item.value.branchname %]</option>
116
                    <option value="[% branch_item.value.branchcode %]">[% branch_item.value.branchname %]</option>
117
                [% END %]
117
                [% END %]
Lines 153-175 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
153
            <label for="lang">Display location:</label>
153
            <label for="lang">Display location:</label>
154
            <select name="lang" id="lang">
154
            <select name="lang" id="lang">
155
            [% IF ( lang == "" ) %]
155
            [% IF ( lang == "" ) %]
156
            <option value=""     selected>All</option>
156
            <option value=""     selected="selected">All</option>
157
            [% ELSE %]
157
            [% ELSE %]
158
            <option value=""             >All</option>
158
            <option value=""             >All</option>
159
            [% END %]
159
            [% END %]
160
            [% IF ( lang == "koha" ) %]
160
            [% IF ( lang == "koha" ) %]
161
            <option value="koha" selected>Librarian interface</option>
161
            <option value="koha" selected="selected">Librarian interface</option>
162
            [% ELSE %]
162
            [% ELSE %]
163
            <option value="koha"         >Librarian interface</option>
163
            <option value="koha"         >Librarian interface</option>
164
            [% END %]
164
            [% END %]
165
            [% IF ( lang == "slip" ) %]
165
            [% IF ( lang == "slip" ) %]
166
            <option value="slip" selected>Slip</option>
166
            <option value="slip" selected="selected">Slip</option>
167
            [% ELSE %]
167
            [% ELSE %]
168
            <option value="slip"         >Slip</option>
168
            <option value="slip"         >Slip</option>
169
            [% END %]
169
            [% END %]
170
                [% FOREACH lang_lis IN lang_list %]
170
                [% FOREACH lang_lis IN lang_list %]
171
                [% IF ( lang_lis.language == lang ) %]
171
                [% IF ( lang_lis.language == lang ) %]
172
                    <option value="[% lang_lis.language %]" selected>OPAC ([% lang_lis.language %])</option>
172
                    <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
173
                [% ELSE %]
173
                [% ELSE %]
174
                    <option value="[% lang_lis.language %]"         >OPAC ([% lang_lis.language %])</option>
174
                    <option value="[% lang_lis.language %]"         >OPAC ([% lang_lis.language %])</option>
175
                [% END %]
175
                [% END %]
Lines 178-191 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
178
            <label for="branch">Library: </label>
178
            <label for="branch">Library: </label>
179
            <select id="branch" name="branch">
179
            <select id="branch" name="branch">
180
                [% IF ( branchcode == "" ) %]
180
                [% IF ( branchcode == "" ) %]
181
                <option value="" selected>All Libraries</option>
181
                <option value="" selected="selected">All Libraries</option>
182
                [% ELSE %]
182
                [% ELSE %]
183
                <option value=""         >All Libraries</option>
183
                <option value=""         >All Libraries</option>
184
                [% END %]
184
                [% END %]
185
                [% FOREACH branch_item IN branch_list %]
185
                [% FOREACH branch_item IN branch_list %]
186
                [% IF ( branch_item.value.branchcode == branchcode ) %]
186
                [% IF ( branch_item.value.branchcode == branchcode ) %]
187
                    <option value="[% branch_item.value.branchcode %]"
187
                    <option value="[% branch_item.value.branchcode %]"
188
                            selected>[% branch_item.value.branchname %]
188
                            selected="selected">[% branch_item.value.branchname %]
189
                    </option>
189
                    </option>
190
                [% ELSE %]
190
                [% ELSE %]
191
                    <option value="[% branch_item.value.branchcode %]"
191
                    <option value="[% branch_item.value.branchcode %]"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-2 / +1 lines)
Lines 455-461 function setSelectByValue( selectId, value ) { Link Here
455
                        <p/>
455
                        <p/>
456
456
457
                        <select name="conditional" id="conditional" onchange="onConditionalChange(this);">
457
                        <select name="conditional" id="conditional" onchange="onConditionalChange(this);">
458
                            <option value="" selected />
458
                            <option value="" selected="selected" />
459
                            <option value="if">if</option>
459
                            <option value="if">if</option>
460
                            <option value="unless">unless</option>
460
                            <option value="unless">unless</option>
461
                        </select>
461
                        </select>
462
- 

Return to bug 12686