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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt (-2 / +3 lines)
Lines 1-14 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; Cataloging authority plugin</title>
5
<title>[% t('Koha › Cataloging authority plugin') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
8
<body id="auth_auth_finder" class="auth">
9
<body id="auth_auth_finder" class="auth">
9
    <div class="container-fluid">
10
    <div class="container-fluid">
10
11
11
<h1>Authority search</h1>
12
<h1>[% t('Authority search') %]</h1>
12
[% INCLUDE 'auth-finder-search.inc' %]
13
[% INCLUDE 'auth-finder-search.inc' %]
13
14
14
[% MACRO jsinclude BLOCK %]
15
[% MACRO jsinclude BLOCK %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt (-2 / +3 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Authorities</title>
4
<title>[% t('Koha › Authorities') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-14 Link Here
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'authorities-search.inc' %]
10
[% INCLUDE 'authorities-search.inc' %]
10
11
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Authorities</div>
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Authorities') %]</div>
12
13
13
<div class="main container-fluid">
14
<div class="main container-fluid">
14
    <div class="row">
15
    <div class="row">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-83 / +36 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; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority ([% authtypetext %])[% END %]</title>
4
<title>[% t('Koha › Authorities ›') %] [% IF ( authid ) %][% t('Modify authority #') %][% authid %] ([% authtypetext %])[% ELSE %][% t('Adding authority (') %][% authtypetext %])[% END %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
6
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
6
[% Asset.js("js/cataloging.js") %]
7
[% Asset.js("js/cataloging.js") %]
Lines 169-202 function confirmnotdup(redirect){ Link Here
169
<body id="auth_authorities" class="auth">
170
<body id="auth_authorities" class="auth">
170
171
171
<div id="loading">
172
<div id="loading">
172
   <div>Loading, please wait...</div>
173
   <div>[% t('Loading, please wait...') %]</div>
173
</div>
174
</div>
174
175
175
[% INCLUDE 'header.inc' %]
176
[% INCLUDE 'header.inc' %]
176
177
177
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority [% authtypetext %][% END %]  </div>
178
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">[% t('Authorities') %]</a> › [% IF ( authid ) %][% t('Modify authority #') %][% authid %] ([% authtypetext %])[% ELSE %][% t('Adding authority') %] [% authtypetext %][% END %]  </div>
178
179
179
<div class="main container-fluid">
180
<div class="main container-fluid">
180
    <div class="row">
181
    <div class="row">
181
        <div class="col-md-8 col-md-offset-2">
182
        <div class="col-md-8 col-md-offset-2">
182
183
183
[% IF ( authid ) %]
184
[% IF ( authid ) %]
184
<h1>Modify authority #[% authid %] [% authtypetext %]</h1>
185
<h1>[% t('Modify authority #') %][% authid %] [% authtypetext %]</h1>
185
[% ELSE %]
186
[% ELSE %]
186
<h1>Adding authority [% authtypetext %]</h1>
187
<h1>[% t('Adding authority') %] [% authtypetext %]</h1>
187
[% END %]
188
[% END %]
188
189
189
[% IF ( duplicateauthid ) %]
190
[% IF ( duplicateauthid ) %]
190
        <div class="dialog alert">
191
        <div class="dialog alert">
191
                <h3>Duplicate record suspected</h3>
192
                <h3>[% t('Duplicate record suspected') %]</h3>
192
                <p>Is this a duplicate of <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]" class="popup" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]&amp;popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue %]</a> ?</p>
193
                <p>[% t('Is this a duplicate of') %] <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]" class="popup" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]&popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue %]</a> ?</p>
193
194
194
                <form action="authorities.pl" method="get">
195
                <form action="authorities.pl" method="get">
195
                    <input type="hidden" name="authid" value="[% duplicateauthid %]" />
196
                    <input type="hidden" name="authid" value="[% duplicateauthid %]" />
196
                    <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
197
                    <button type="submit" class="new"><i class="fa fa-pencil"></i> [% t('Yes: Edit existing authority') %]</button>
197
                </form>
198
                </form>
198
                <form action="authorities.pl" method="get">
199
                <form action="authorities.pl" method="get">
199
                    <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
200
                    <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> [% t('No: Save as new authority') %]</button>
200
                </form>
201
                </form>
201
        </div>
202
        </div>
202
[% END %]
203
[% END %]
Lines 211-219 function confirmnotdup(redirect){ Link Here
211
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
212
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
212
213
213
    <div id="toolbar" class="btn-toolbar">
214
    <div id="toolbar" class="btn-toolbar">
214
        <div class="btn-group"><a href="#" id="addauth" class="btn btn-default btn-sm" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
215
        <div class="btn-group"><a href="#" id="addauth" class="btn btn-default btn-sm" accesskey="w"><i class="fa fa-save"></i> [% t('Save') %]</a></div>
215
        <div class="btn-group">
216
        <div class="btn-group">
216
            <a class="btn btn-default btn-sm" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50 search</a>
217
            <a class="btn btn-default btn-sm" id="z3950submit" href="#"><i class="fa fa-search"></i> [% t('Z39.50 search') %]</a>
217
        </div>
218
        </div>
218
    </div>
219
    </div>
219
220
Lines 233-308 function confirmnotdup(redirect){ Link Here
233
        <div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
234
        <div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
234
        [% UNLESS hide_marc %]
235
        [% UNLESS hide_marc %]
235
            [% IF advancedMARCEditor %]
236
            [% IF advancedMARCEditor %]
236
                <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a>
237
                <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] [% t('- Click to Expand this Tag') %]" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a>
237
            [% ELSE %]
238
            [% ELSE %]
238
                <span title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span>
239
                <span title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span>
239
            [% END %]
240
            [% END %]
240
                [% IF ( innerloo.fixedfield ) %]
241
                [% IF ( innerloo.fixedfield ) %]
241
                    <input type="text"
242
                    <input type="text" tabindex="1" class="indicator flat" style="display:none;" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator1 %]" />
242
                        tabindex="1"
243
                    <input type="text" tabindex="1" class="indicator flat" style="display:none;" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator2 %]" />
243
                        class="indicator flat"
244
                        style="display:none;"
245
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
246
                        size="1"
247
                        maxlength="1"
248
                        value="[% innerloo.indicator1 %]" />
249
                    <input type="text"
250
                        tabindex="1"
251
                        class="indicator flat"
252
                        style="display:none;"
253
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
254
                        size="1"
255
                        maxlength="1"
256
                        value="[% innerloo.indicator2 %]" />
257
                [% ELSE %]
244
                [% ELSE %]
258
                    <input type="text"
245
                    <input type="text" tabindex="1" class="indicator flat" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator1 %]" />
259
                        tabindex="1"
246
                    <input type="text" tabindex="1" class="indicator flat" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator2 %]" />
260
                        class="indicator flat"
261
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
262
                        size="1"
263
                        maxlength="1"
264
                        value="[% innerloo.indicator1 %]" />
265
                    <input type="text"
266
                        tabindex="1"
267
                        class="indicator flat"
268
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
269
                        size="1"
270
                        maxlength="1"
271
                        value="[% innerloo.indicator2 %]" />
272
                [% END %] -
247
                [% END %] -
273
        [% ELSE %]
248
        [% ELSE %]
274
                [% IF ( innerloo.fixedfield ) %]
249
                [% IF ( innerloo.fixedfield ) %]
275
                    <input type="hidden"
250
                    <input type="hidden" tabindex="1" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator1 %]" />
276
                        tabindex="1"
251
                    <input type="hidden" tabindex="1" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator2 %]" />
277
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
278
                        value="[% innerloo.indicator1 %]" />
279
                    <input type="hidden"
280
                        tabindex="1"
281
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
282
                        value="[% innerloo.indicator2 %]" />
283
                [% ELSE %]
252
                [% ELSE %]
284
                    <input type="hidden"
253
                    <input type="hidden" tabindex="1" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator1 %]" />
285
                        tabindex="1"
254
                    <input type="hidden" tabindex="1" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator2 %]" />
286
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
287
                        value="[% innerloo.indicator1 %]" />
288
                    <input type="hidden"
289
                        tabindex="1"
290
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
291
                        value="[% innerloo.indicator2 %]" />
292
                [% END %]
255
                [% END %]
293
        [% END %]
256
        [% END %]
294
257
295
            [% UNLESS advancedMARCEditor %]
258
            [% UNLESS advancedMARCEditor %]
296
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib %]</a>
259
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="[% t('Click to Expand this Tag') %]">[% innerloo.tag_lib %]</a>
297
            [% END %]
260
            [% END %]
298
                <span class="field_controls">
261
                <span class="field_controls">
299
                [% IF ( innerloo.repeatable ) %]
262
                [% IF ( innerloo.repeatable ) %]
300
                    <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','[% hide_marc %]','[% advancedMARCEditor %]'); return false;" title="Repeat this Tag">
263
                    <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]','[% hide_marc %]','[% advancedMARCEditor %]'); return false;" title="[% t('Repeat this Tag') %]">
301
                        <img src="[% interface %]/[% theme %]/img/repeat-tag.png" alt="Repeat this Tag" />
264
                        <img src="[% interface %]/[% theme %]/img/repeat-tag.png" alt="[% t('Repeat this Tag') %]" />
302
                    </a>
265
                    </a>
303
                [% END %]
266
                [% END %]
304
                    <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Delete this Tag">
267
                    <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="[% t('Delete this Tag') %]">
305
                        <img src="[% interface %]/[% theme %]/img/delete-tag.png" alt="Delete this Tag" />
268
                        <img src="[% interface %]/[% theme %]/img/delete-tag.png" alt="[% t('Delete this Tag') %]" />
306
                    </a>
269
                    </a>
307
                </span>
270
                </span>
308
271
Lines 321-350 function confirmnotdup(redirect){ Link Here
321
                [% UNLESS hide_marc %]
284
                [% UNLESS hide_marc %]
322
                <span class="subfieldcode">
285
                <span class="subfieldcode">
323
                    [% IF ( subfield_loo.fixedfield ) %]
286
                    [% IF ( subfield_loo.fixedfield ) %]
324
                        <img class="buttonUp" style="display:none;" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" />
287
                        <img class="buttonUp" style="display:none;" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="[% t('Move Up') %]" title="[% t('Move Up') %]" />
325
                    [% ELSE %]
288
                    [% ELSE %]
326
                        <img class="buttonUp" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="Move Up" title="Move Up" />
289
                        <img class="buttonUp" src="[% interface %]/[% theme %]/img/up.png" onclick="upSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]')" alt="[% t('Move Up') %]" title="[% t('Move Up') %]" />
327
                    [% END %]
290
                    [% END %]
328
                        <input type="text"
291
                        <input type="text" title="[% subfield_loo.marc_lib %]" style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" value="[% subfield_loo.subfield %]" size="1" maxlength="1" class="flat" tabindex="0" />
329
                            title="[% subfield_loo.marc_lib %]"
330
                            style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
331
                            name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]"
332
                            value="[% subfield_loo.subfield %]"
333
                            size="1"
334
                            maxlength="1"
335
                            class="flat"
336
                            tabindex="0" />
337
                </span>
292
                </span>
338
                [% ELSE %]
293
                [% ELSE %]
339
                    <input type="hidden"
294
                    <input type="hidden" name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]" value="[% subfield_loo.subfield %]" />
340
                        name="tag_[% subfield_loo.tag %]_code_[% subfield_loo.subfield %]_[% subfield_loo.index %]_[% subfield_loo.index_subfield %]"
341
                        value="[% subfield_loo.subfield %]" />
342
                [% END %]
295
                [% END %]
343
296
344
                [% UNLESS advancedMARCEditor %]
297
                [% UNLESS advancedMARCEditor %]
345
                    [% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %]
298
                    [% IF ( subfield_loo.mandatory ) %]<span class="subfield subfield_mandatory">[% ELSE %]<span class="subfield">[% END %]
346
                        [% subfield_loo.marc_lib %]
299
                        [% subfield_loo.marc_lib %]
347
                        [% IF ( subfield_loo.mandatory ) %]<span class="mandatory_marker" title="This field is mandatory">*</span>[% END %]
300
                        [% IF ( subfield_loo.mandatory ) %]<span class="mandatory_marker" title="[% t('This field is mandatory') %]">*</span>[% END %]
348
                    </span>
301
                    </span>
349
                    </label>
302
                    </label>
350
                [% END %]
303
                [% END %]
Lines 362-374 function confirmnotdup(redirect){ Link Here
362
                     </select>
315
                     </select>
363
                [% ELSIF ( mv.type == 'text1' ) %]
316
                [% ELSIF ( mv.type == 'text1' ) %]
364
                    <input type="text" id="[%- mv.id -%]" name="[%- mv.id -%]" value="[%- mv.value -%]" class="input_marceditor" tabindex="1" />
317
                    <input type="text" id="[%- mv.id -%]" name="[%- mv.id -%]" value="[%- mv.value -%]" class="input_marceditor" tabindex="1" />
365
                    <a href="#" class="buttonDot" onclick="openAuth(this.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode -%]','auth'); return false;" tabindex="1" title="Tag editor">...</a>
318
                    <a href="#" class="buttonDot" onclick="openAuth(this.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode -%]','auth'); return false;" tabindex="1" title="[% t('Tag editor') %]">...</a>
366
                [% ELSIF ( mv.type == 'text2' ) %]
319
                [% ELSIF ( mv.type == 'text2' ) %]
367
                    <input type="text" id="[%- mv.id -%]" size="67" maxlength="[%- mv.maxlength -%]" name="[%- mv.name -%]" value="[%- mv.value -%]" class="input_marceditor" />
320
                    <input type="text" id="[%- mv.id -%]" size="67" maxlength="[%- mv.maxlength -%]" name="[%- mv.name -%]" value="[%- mv.value -%]" class="input_marceditor" />
368
                    [% IF mv.noclick %]
321
                    [% IF mv.noclick %]
369
                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
322
                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="[% t('No popup') %]">...</a>
370
                    [% ELSE %]
323
                    [% ELSE %]
371
                        <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot tag_editor" title="Tag editor">...</a>
324
                        <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot tag_editor" title="[% t('Tag editor') %]">...</a>
372
                    [% END %]
325
                    [% END %]
373
                    [% mv.javascript %]
326
                    [% mv.javascript %]
374
                [% ELSIF ( mv.type == 'text' ) %]
327
                [% ELSIF ( mv.type == 'text' ) %]
Lines 384-393 function confirmnotdup(redirect){ Link Here
384
                <span class="subfield_controls">
337
                <span class="subfield_controls">
385
                [% IF ( subfield_loo.repeatable ) %]
338
                [% IF ( subfield_loo.repeatable ) %]
386
                    <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]','[% advancedMARCEditor %]'); return false;">
339
                    <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]','[% advancedMARCEditor %]'); return false;">
387
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
340
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="[% t('Clone') %]" title="[% t('Clone this subfield') %]" />
388
                    </a>
341
                    </a>
389
                    <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]'); return false;">
342
                    <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag %][% subfield_loo.subfield %][% subfield_loo.random %]'); return false;">
390
                        <img src="[% interface %]/[% theme %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
343
                        <img src="[% interface %]/[% theme %]/img/delete-subfield.png" alt="[% t('Delete') %]" title="[% t('Delete this subfield') %]" />
391
                    </a>
344
                    </a>
392
                [% END %]
345
                [% END %]
393
                </span>
346
                </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt (-2 / +3 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Authority details</title>
4
<title>[% t('Koha › Authority details') %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 10-16 Link Here
10
        <div class="row">
11
        <div class="row">
11
            <div class="col-md-8 col-md-offset-2">
12
            <div class="col-md-8 col-md-offset-2">
12
13
13
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
14
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
14
15
15
            </div>
16
            </div>
16
        </div>
17
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-14 / +15 lines)
Lines 1-12 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% PROCESS 'authorities.inc' %]
4
[% PROCESS 'authorities.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Authorities &rsaquo;
6
<title>[% t('Koha › Authorities ›') %]
6
    [% IF ( unknownauthid ) %]
7
    [% IF ( unknownauthid ) %]
7
      Unknown authority record
8
      [% t('Unknown authority record') %]
8
    [% ELSE %]
9
    [% ELSE %]
9
      Details for authority #[% authid %] ([% authtypetext %])
10
      [% t('Details for authority #') %][% authid %] ([% authtypetext %])
10
    [% END %]
11
    [% END %]
11
</title>
12
</title>
12
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 15-25 Link Here
15
<body id="auth_detail" class="auth">
16
<body id="auth_detail" class="auth">
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'authorities-search.inc' %]
18
[% INCLUDE 'authorities-search.inc' %]
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo;
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">[% t('Authorities') %]</a> ›
19
    [% IF ( unknownauthid ) %]
20
    [% IF ( unknownauthid ) %]
20
      Unknown authority record
21
      [% t('Unknown authority record') %]
21
    [% ELSE %]
22
    [% ELSE %]
22
      Details for authority #[% authid %] ([% authtypetext %])
23
      [% t('Details for authority #') %][% authid %] ([% authtypetext %])
23
    [% END %]
24
    [% END %]
24
</div>
25
</div>
25
26
Lines 37-51 Link Here
37
38
38
39
39
[% IF ( unknownauthid ) %]
40
[% IF ( unknownauthid ) %]
40
    <div class="dialog message">The authority record you requested does not exist ([% errauthid %]).</div>
41
    <div class="dialog message">[% t('The authority record you requested does not exist (') %][% errauthid %]).</div>
41
[% ELSE %]
42
[% ELSE %]
42
<h1>Authority #[% authid %] ([% authtypetext %])</h1>
43
<h1>[% t('Authority #') %][% authid %] ([% authtypetext %])</h1>
43
44
44
<div id="action">
45
<div id="action">
45
    [% IF count %]
46
    [% IF count %]
46
        Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an=[% authid %]">[% count %] record(s)</a>
47
        [% t('Used in') %] <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an=[% authid %]">[% count %] [% t('record(s)') %]</a>
47
    [% ELSE %]
48
    [% ELSE %]
48
        This authority is not used in any records.
49
        [% t('This authority is not used in any records.') %]
49
    [% END %]
50
    [% END %]
50
</div>
51
</div>
51
52
Lines 71-87 Link Here
71
        [% END %]
72
        [% END %]
72
        [% FOREACH subfiel IN innerloo.subfield %]
73
        [% FOREACH subfiel IN innerloo.subfield %]
73
            <p>
74
            <p>
74
                <label class="labelsubfield">&nbsp;
75
                <label class="labelsubfield"> 
75
                [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
76
                [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
76
                <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></label>
77
                <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></label>
77
                [% subfiel.marc_value %]
78
                [% subfiel.marc_value %]
78
                [% IF ( subfiel.link ) %]
79
                [% IF ( subfiel.link ) %]
79
                    <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;marclist=[% subfiel.link %]&amp;operator==&amp;type=intranet&amp;value=[% subfiel.marc_value |url %]">
80
                    <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&marclist=[% subfiel.link %]&operator==&type=intranet&value=[% subfiel.marc_value |url %]">
80
                        <img src="[% interface %]/[% theme %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value %]">
81
                        <img src="[% interface %]/[% theme %]/images/filefind.png" height="15" title="[% t('Search on') %] [% subfiel.marc_value %]">
81
                    </a>
82
                    </a>
82
                [% END %]
83
                [% END %]
83
                [% IF ( subfiel.authority ) %]
84
                [% IF ( subfiel.authority ) %]
84
                    <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
85
                    <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">[% t('Auth') %]</a>
85
                [% END %]
86
                [% END %]
86
            </p>
87
            </p>
87
        [% END %]
88
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt (-14 / +15 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% PROCESS 'merge-record.inc' %]
3
[% PROCESS 'merge-record.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Cataloging &rsaquo; Merging records</title>
6
<title>[% t('Koha › Cataloging › Merging records') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
8
div.record ul, div.record li { float:none; display:block; }
9
div.record ul, div.record li { float:none; display:block; }
Lines 14-41 div#result { margin-top: 1em; } Link Here
14
<body id="auth_merge" class="cat">
15
<body id="auth_merge" class="cat">
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'authorities-search.inc' %]
17
[% INCLUDE 'authorities-search.inc' %]
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>  &rsaquo; Merging records</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">[% t('Authorities') %]</a>  [% t('› Merging records') %]</div>
18
19
19
<div class="main container-fluid">
20
<div class="main container-fluid">
20
    <div class="row">
21
    <div class="row">
21
        <div class="col-md-8 col-md-offset-2">
22
        <div class="col-md-8 col-md-offset-2">
22
23
23
<h1>Merging records</h1>
24
<h1>[% t('Merging records') %]</h1>
24
25
25
[% IF ( errors ) %]
26
[% IF ( errors ) %]
26
27
27
    [% FOREACH error IN errors %]
28
    [% FOREACH error IN errors %]
28
        <div class="dialog alert">
29
        <div class="dialog alert">
29
            [% IF error.code == 'WRONG_COUNT' %]
30
            [% IF error.code == 'WRONG_COUNT' %]
30
                Number of records provided for merging: [% error.value %]. Currently only 2 records can be merged at a time.
31
                [% t('Number of records provided for merging:') %] [% error.value %][% t('. Currently only 2 records can be merged at a time.') %]
31
            [% ELSIF error.code == 'DESTRUCTIVE_MERGE' %]
32
            [% ELSIF error.code == 'DESTRUCTIVE_MERGE' %]
32
                You cannot merge a record with itself. Please select two different authorities.
33
                [% t('You cannot merge a record with itself. Please select two different authorities.') %]
33
            [% ELSIF error.code == 'WRONG_FRAMEWORK' %]
34
            [% ELSIF error.code == 'WRONG_FRAMEWORK' %]
34
                The Default framework cannot be used, or the framework does not exist. Please select another framework for merging.
35
                [% t('The Default framework cannot be used, or the framework does not exist. Please select another framework for merging.') %]
35
            [% ELSIF error.code == 'EMPTY_MARC' %]
36
            [% ELSIF error.code == 'EMPTY_MARC' %]
36
                Sorry, but we did not find any MARC tags in the reference record.
37
                [% t('Sorry, but we did not find any MARC tags in the reference record.') %]
37
            [% ELSIF error.code == 'MISSING_RECORD' %]
38
            [% ELSIF error.code == 'MISSING_RECORD' %]
38
                Sorry, but we did not find a record for number: [% error.value %].
39
                [% t('Sorry, but we did not find a record for number:') %] [% error.value %].
39
            [% ELSE %]
40
            [% ELSE %]
40
                [% error %]
41
                [% error %]
41
            [% END %]
42
            [% END %]
Lines 45-64 div#result { margin-top: 1em; } Link Here
45
[% ELSIF ( result ) %]
46
[% ELSIF ( result ) %]
46
47
47
        <script type="text/javascript">window.location.href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]"</script>
48
        <script type="text/javascript">window.location.href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]"</script>
48
        <p>The merging was successful. <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]">Click here to see the merged record.</a></p>
49
        <p>[% t('The merging was successful.') %] <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]">[% t('Click here to see the merged record.') %]</a></p>
49
50
50
[% ELSIF ( choosereference ) %]
51
[% ELSIF ( choosereference ) %]
51
52
52
<p>Please choose which record will be the reference for the merge. The record chosen as reference will be kept, and the other will be deleted.</p>
53
<p>[% t('Please choose which record will be the reference for the merge. The record chosen as reference will be kept, and the other will be deleted.') %]</p>
53
<form id="mergeform" action="/cgi-bin/koha/authorities/merge.pl" method="post">
54
<form id="mergeform" action="/cgi-bin/koha/authorities/merge.pl" method="post">
54
    <fieldset class="rows">
55
    <fieldset class="rows">
55
    <legend>Merge reference</legend>
56
    <legend>[% t('Merge reference') %]</legend>
56
    <ol>
57
    <ol>
57
    <li class="radio"><input type="radio" value="[% recordid1 %]" checked="checked" id="mergereference1" name="mergereference" onclick="changeFramework('[% frameworkcode1 %]')" /><label for="mergereference1">[% title1 %] [% FOREACH subtitl1 IN subtitle1 %] [% subtitl1.subfield %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid1 %][% IF frameworklabel1 %] &mdash; [% frameworklabel1 %][% END %]</a>)</label></li>
58
    <li class="radio"><input type="radio" value="[% recordid1 %]" checked="checked" id="mergereference1" name="mergereference" onclick="changeFramework('[% frameworkcode1 %]')" /><label for="mergereference1">[% title1 %] [% FOREACH subtitl1 IN subtitle1 %] [% subtitl1.subfield %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid1 %]" title="[% t('MARC') %]" class="preview-merge-reference" target="_blank">[% recordid1 %][% IF frameworklabel1 %] — [% frameworklabel1 %][% END %]</a>)</label></li>
58
    <li class="radio"><input type="radio" value="[% recordid2 %]" id="mergereference2" name="mergereference" onclick="changeFramework('[% frameworkcode2 %]')" /><label for="mergereference2">[% title2 %] [% FOREACH subtitl2 IN subtitle2 %] [% subtitl2.subfield %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid2 %]" title="MARC" class="preview-merge-reference" target="_blank">[% recordid2 %][% IF frameworklabel2 %] &mdash; [% frameworklabel2 %][% END %]</a>)</label></li>
59
    <li class="radio"><input type="radio" value="[% recordid2 %]" id="mergereference2" name="mergereference" onclick="changeFramework('[% frameworkcode2 %]')" /><label for="mergereference2">[% title2 %] [% FOREACH subtitl2 IN subtitle2 %] [% subtitl2.subfield %][% END %] (<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% recordid2 %]" title="[% t('MARC') %]" class="preview-merge-reference" target="_blank">[% recordid2 %][% IF frameworklabel2 %] — [% frameworklabel2 %][% END %]</a>)</label></li>
59
60
60
    [% IF frameworkselect %]
61
    [% IF frameworkselect %]
61
          <li><label for="frameworkcode">Using framework:</label>
62
          <li><label for="frameworkcode">[% t('Using framework:') %]</label>
62
                      <select name="frameworkcode" id="frameworkcode">
63
                      <select name="frameworkcode" id="frameworkcode">
63
                                      [% FOREACH frameworkcodeloo IN frameworkselect %]
64
                                      [% FOREACH frameworkcodeloo IN frameworkselect %]
64
                                          [% IF frameworkcodeloo.authtypecode == frameworkcode1 %]
65
                                          [% IF frameworkcodeloo.authtypecode == frameworkcode1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt (-21 / +22 lines)
Lines 1-64 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% PROCESS 'authorities-search-results.inc' %]
4
[% PROCESS 'authorities-search-results.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Cataloging authority plugin</title>
6
<title>[% t('Koha › Cataloging authority plugin') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
9
<body id="auth_searchresultlist_auth" class="auth">
10
<body id="auth_searchresultlist_auth" class="auth">
10
    <div class="container-fluid">
11
    <div class="container-fluid">
11
12
12
    	<h1>Authority search results</h1>
13
    	<h1>[% t('Authority search results') %]</h1>
13
    	[% INCLUDE 'auth-finder-search.inc' %]
14
    	[% INCLUDE 'auth-finder-search.inc' %]
14
        [% IF ( total ) %]<div class="resultnumber">
15
        [% IF ( total ) %]<div class="resultnumber">
15
            [% IF ( displayprev ) %]
16
            [% IF ( displayprev ) %]
16
                    <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
17
                    <a href="auth_finder.pl?startfrom=[% startfromprev %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
17
                        &lt;&lt;
18
                        <<
18
                    </a>
19
                    </a>
19
                [% END %]
20
                [% END %]
20
                [% FOREACH number IN numbers %]
21
                [% FOREACH number IN numbers %]
21
                    [% IF ( number.highlight ) %]
22
                    [% IF ( number.highlight ) %]
22
                        [% number.number %]
23
                        [% number.number %]
23
                    [% ELSE %]
24
                    [% ELSE %]
24
                        <a href="auth_finder.pl?startfrom=[% number.startfrom %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
25
                        <a href="auth_finder.pl?startfrom=[% number.startfrom %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
25
                            [% number.number %]</a>
26
                            [% number.number %]</a>
26
                    [% END %]
27
                    [% END %]
27
                [% END %]
28
                [% END %]
28
                [% IF ( displaynext ) %]
29
                [% IF ( displaynext ) %]
29
                    <a href="auth_finder.pl?startfrom=[% startfromnext %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
30
                    <a href="auth_finder.pl?startfrom=[% startfromnext %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
30
                        &gt;&gt;</a>
31
                        >></a>
31
                [% END %]
32
                [% END %]
32
            <div>
33
            <div>
33
                
34
                
34
                    <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
35
                    <p><b>[% t('Results') %] [% from %] [% t('to') %] [% to %] [% t('of') %] [% total %]</b></p>
35
                [% ELSE %]
36
                [% ELSE %]
36
                    
37
                    
37
                
38
                
38
            </div><p>No results found</p>[% END %]
39
            </div><p>[% t('No results found') %]</p>[% END %]
39
        </div>
40
        </div>
40
        [% IF ( result ) %]<div id="resultlist">
41
        [% IF ( result ) %]<div id="resultlist">
41
            <table>
42
            <table>
42
                <tr>
43
                <tr>
43
                    <th>Summary</th>
44
                    <th>[% t('Summary') %]</th>
44
                    <th>Used</th>
45
                    <th>[% t('Used') %]</th>
45
                    <th>Get it!</th>
46
                    <th>[% t('Get it!') %]</th>
46
                    <th>Other action</th>
47
                    <th>[% t('Other action') %]</th>
47
                </tr>
48
                </tr>
48
                [% FOREACH resul IN result %]
49
                [% FOREACH resul IN result %]
49
                    <tr>
50
                    <tr>
50
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
51
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
51
                        <td>[% resul.used %] times</td>
52
                        <td>[% resul.used %] [% t('times') %]</td>
52
                        <td>
53
                        <td>
53
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
54
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
54
                                [% FOREACH authorized IN resul.summary.authorized %]
55
                                [% FOREACH authorized IN resul.summary.authorized %]
55
                                    <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
56
                                    <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
56
                                [% END %]
57
                                [% END %]
57
                          [% ELSE %]
58
                          [% ELSE %]
58
                                <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
59
                                <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> [% t('Choose') %]</a>
59
                          [% END %]
60
                          [% END %]
60
                        </td>
61
                        </td>
61
                        <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
62
                        <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> [% t('Edit authority') %]</a></td>
62
                    </tr>
63
                    </tr>
63
                [% END %]
64
                [% END %]
64
            </table>
65
            </table>
Lines 66-86 Link Here
66
        </div>
67
        </div>
67
        <div class="resultnumber">
68
        <div class="resultnumber">
68
            [% IF ( displayprev ) %]
69
            [% IF ( displayprev ) %]
69
                    <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranetamp;&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
70
                    <a href="auth_finder.pl?startfrom=[% startfromprev %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranetamp;&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
70
                        &lt;&lt;
71
                        <<
71
                    </a>
72
                    </a>
72
                [% END %]
73
                [% END %]
73
                [% FOREACH number IN numbers %]
74
                [% FOREACH number IN numbers %]
74
                    [% IF ( number.highlight ) %]
75
                    [% IF ( number.highlight ) %]
75
                        [% number.number %]
76
                        [% number.number %]
76
                    [% ELSE %]
77
                    [% ELSE %]
77
                        <a href="auth_finder.pl?startfrom=[% number.startfrom %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
78
                        <a href="auth_finder.pl?startfrom=[% number.startfrom %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
78
                            [% number.number %]</a>
79
                            [% number.number %]</a>
79
                    [% END %]
80
                    [% END %]
80
                [% END %]
81
                [% END %]
81
                [% IF ( displaynext ) %]
82
                [% IF ( displaynext ) %]
82
                    <a href="auth_finder.pl?startfrom=[% startfromnext %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
83
                    <a href="auth_finder.pl?startfrom=[% startfromnext %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
83
                        &gt;&gt;</a>
84
                        >></a>
84
                [% END %]
85
                [% END %]
85
        </div>[% END %]
86
        </div>[% END %]
86
    </div>
87
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-16 / +16 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% PROCESS 'authorities-search-results.inc' %]
3
[% PROCESS 'authorities-search-results.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Authorities &rsaquo; Authority search results</title>
5
<title>[% t('Koha › Authorities › Authority search results') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-52 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'authorities-search.inc' %]
11
[% INCLUDE 'authorities-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; Authority search results</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">[% t('Authorities') %]</a> [% t('› Authority search results') %]</div>
13
14
14
<div class="main container-fluid">
15
<div class="main container-fluid">
15
    <div class="row">
16
    <div class="row">
16
        <div class="col-md-8 col-md-offset-2">
17
        <div class="col-md-8 col-md-offset-2">
17
18
18
    [% INCLUDE 'authorities-toolbar.inc' %]
19
    [% INCLUDE 'authorities-toolbar.inc' %]
19
<h1>Authority search results</h1>
20
<h1>[% t('Authority search results') %]</h1>
20
21
21
<div id="merge_in_progress"></div>
22
<div id="merge_in_progress"></div>
22
[% IF ( total ) %]
23
[% IF ( total ) %]
23
<div class="pages">[% pagination_bar %]</div>
24
<div class="pages">[% pagination_bar %]</div>
24
25
25
<p id="authorities_searchresultlist_current_page_info">
26
<p id="authorities_searchresultlist_current_page_info">
26
  Results [% from %] to [% to %] of [% total %]
27
  [% t('Results') %] [% from %] [% t('to') %] [% to %] [% t('of') %] [% total %]
27
</p>
28
</p>
28
29
29
<div id="authorities_searchresultlist_results">
30
<div id="authorities_searchresultlist_results">
30
  <table>
31
  <table>
31
      <tr>
32
      <tr>
32
        <th colspan="2">Summary</th>
33
        <th colspan="2">[% t('Summary') %]</th>
33
        [% UNLESS ( isEDITORS ) %]
34
        [% UNLESS ( isEDITORS ) %]
34
          <th>Used in</th>
35
          <th>[% t('Used in') %]</th>
35
        [% END %]
36
        [% END %]
36
        [% IF ( CAN_user_editauthorities ) %]
37
        [% IF ( CAN_user_editauthorities ) %]
37
          <th>&nbsp;</th>
38
          <th> </th>
38
        [% END %]
39
        [% END %]
39
      </tr>
40
      </tr>
40
    [% FOREACH resul IN result %]
41
    [% FOREACH resul IN result %]
41
    <tr data-authid="[% resul.authid %]">
42
    <tr data-authid="[% resul.authid %]">
42
      <td>[% PROCESS authresult summary=resul.summary %]</td>
43
      <td>[% PROCESS authresult summary=resul.summary %]</td>
43
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
44
      <td><a href="detail.pl?authid=[% resul.authid %]">[% t('Details') %]</a></td>
44
    [% UNLESS ( resul.isEDITORS ) %]
45
    [% UNLESS ( resul.isEDITORS ) %]
45
      <td>
46
      <td>
46
      [% IF resul.used > 0 %]
47
      [% IF resul.used > 0 %]
47
          <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid %]" class="button">[% resul.used %] record(s)</a>
48
          <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid %]" class="button">[% resul.used %] [% t('record(s)') %]</a>
48
      [% ELSE %]
49
      [% ELSE %]
49
          0 records
50
          [% t('0 records') %]
50
      [% END %]
51
      [% END %]
51
      </td>
52
      </td>
52
    [% END %]
53
    [% END %]
Lines 54-65 Link Here
54
      <td>
55
      <td>
55
      <div class="dropdown">
56
      <div class="dropdown">
56
        <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
57
        <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid %]" role="button" data-toggle="dropdown" href="#">
57
        Actions <b class="caret"></b></a>
58
        [% t('Actions') %] <b class="caret"></b></a>
58
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
59
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid %]">
59
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit</a></li>
60
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
60
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
61
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> [% t('Merge') %]</a></li>
61
          [% UNLESS ( resul.used ) %]
62
          [% UNLESS ( resul.used ) %]
62
            <li><a onclick='return confirm_deletion("[% resul.authid %]")'><i class="fa fa-trash"></i> Delete</a></li>
63
            <li><a onclick="return confirm_deletion("[% resul.authid %]")"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
63
          [% END %]
64
          [% END %]
64
        </ul>
65
        </ul>
65
      </div>
66
      </div>
Lines 73-79 Link Here
73
<div class="pages">[% pagination_bar %]</div>
74
<div class="pages">[% pagination_bar %]</div>
74
75
75
[% ELSE %]
76
[% ELSE %]
76
  No results found
77
  [% t('No results found') %]
77
[% END %]
78
[% END %]
78
</div>
79
</div>
79
</div>
80
</div>
80
- 

Return to bug 20988