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

(-)a/admin/marc_subfields_structure.pl (-1 / +5 lines)
Lines 27-32 use C4::Context; Link Here
27
use Koha::Authority::Types;
27
use Koha::Authority::Types;
28
use Koha::AuthorisedValueCategories;
28
use Koha::AuthorisedValueCategories;
29
use Koha::Filter::MARC::ViewPolicy;
29
use Koha::Filter::MARC::ViewPolicy;
30
use Koha::BiblioFrameworks;
30
31
31
use List::MoreUtils qw( uniq );
32
use List::MoreUtils qw( uniq );
32
33
Lines 52-62 my $cache = Koha::Caches->get_instance(); Link Here
52
my $op       = $input->param('op') || "";
53
my $op       = $input->param('op') || "";
53
$tagfield =~ s/\,//g;
54
$tagfield =~ s/\,//g;
54
55
56
my $framework = Koha::BiblioFrameworks->search({ frameworkcode => $frameworkcode })->next;
57
55
if ($op) {
58
if ($op) {
56
    $template->param(
59
    $template->param(
57
        script_name   => $script_name,
60
        script_name   => $script_name,
58
        tagfield      => $tagfield,
61
        tagfield      => $tagfield,
59
        frameworkcode => $frameworkcode,
62
        frameworkcode => $frameworkcode,
63
        framework     => $framework,
60
        $op           => 1
64
        $op           => 1
61
    );    # we show only the TMPL_VAR names $op
65
    );    # we show only the TMPL_VAR names $op
62
}
66
}
Lines 65-70 else { Link Here
65
        script_name   => $script_name,
69
        script_name   => $script_name,
66
        tagfield      => $tagfield,
70
        tagfield      => $tagfield,
67
        frameworkcode => $frameworkcode,
71
        frameworkcode => $frameworkcode,
72
        framework     => $framework,
68
        else          => 1
73
        else          => 1
69
    );    # we show only the TMPL_VAR names $op
74
    );    # we show only the TMPL_VAR names $op
70
}
75
}
Lines 199-205 if ( $op eq 'add_form' ) { Link Here
199
    $template->param( 'use_heading_flags_p'      => 1 );
204
    $template->param( 'use_heading_flags_p'      => 1 );
200
    $template->param( 'heading_edit_subfields_p' => 1 );
205
    $template->param( 'heading_edit_subfields_p' => 1 );
201
    $template->param(
206
    $template->param(
202
        action   => "Edit subfields",
203
        tagfield => $tagfield,
207
        tagfield => $tagfield,
204
        tagsubfield => $tagsubfield,
208
        tagsubfield => $tagsubfield,
205
        loop           => \@loop_data,
209
        loop           => \@loop_data,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-13 / +27 lines)
Lines 6-19 Link Here
6
<title>[% FILTER collapse %]
6
<title>[% FILTER collapse %]
7
    [% IF op == 'add_form' %]
7
    [% IF op == 'add_form' %]
8
        [% IF framework %]
8
        [% IF framework %]
9
            [% t("Modify framework text") | html %]
9
            [% tx("Modify framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
10
        [% ELSE %]
10
        [% ELSE %]
11
            [% t("Add framework") | html %]
11
            [% t("New framework") | html %]
12
        [% END %] &rsaquo;
12
        [% END %] &rsaquo;
13
    [% ELSIF op == 'delete_confirm' %]
13
    [% ELSIF op == 'delete_confirm' %]
14
        [% tx("Delete framework for {framework} ({frameworkcode})?", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %] &rsaquo;
14
        [% IF ( biblios_use_this_framework ) %]
15
            [% tx("Framework cannot be deleted", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %] &rsaquo;
16
        [% ELSE %]
17
            [% tx("Confirm deletion of framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %] &rsaquo;
18
        [% END %]
15
    [% END %]
19
    [% END %]
16
    [% t("MARC frameworks") | html %] &rsaquo;
20
    [% t("MARC bibliographic frameworks") | html %] &rsaquo;
17
    [% t("Administration") | html %] &rsaquo;
21
    [% t("Administration") | html %] &rsaquo;
18
    [% t("Koha") | html %]
22
    [% t("Koha") | html %]
19
[% END %]</title>
23
[% END %]</title>
Lines 33-61 Link Here
33
37
34
        [% IF op == 'add_form' %]
38
        [% IF op == 'add_form' %]
35
            [% WRAPPER breadcrumb_item %]
39
            [% WRAPPER breadcrumb_item %]
36
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
40
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic frameworks</a>
37
            [% END %]
41
            [% END %]
38
            [% IF framework %]
42
            [% IF framework %]
39
                [% WRAPPER breadcrumb_item bc_active= 1 %]
43
                [% WRAPPER breadcrumb_item bc_active= 1 %]
40
                    <span>Modify framework text</span>
44
                    [% tx("Modify framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
41
                [% END %]
45
                [% END %]
42
            [% ELSE %]
46
            [% ELSE %]
43
                [% WRAPPER breadcrumb_item bc_active= 1 %]
47
                [% WRAPPER breadcrumb_item bc_active= 1 %]
44
                    <span>Add framework</span>
48
                    <span>New framework</span>
45
                [% END %]
49
                [% END %]
46
            [% END %]
50
            [% END %]
47
51
48
        [% ELSIF op == 'delete_confirm' %]
52
        [% ELSIF op == 'delete_confirm' %]
49
            [% WRAPPER breadcrumb_item %]
53
            [% WRAPPER breadcrumb_item %]
50
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
54
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic frameworks</a>
51
            [% END %]
55
            [% END %]
52
            [% WRAPPER breadcrumb_item bc_active= 1 %]
56
            [% WRAPPER breadcrumb_item bc_active= 1 %]
53
                <span>Delete framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])?</span>
57
                [% IF ( biblios_use_this_framework ) %]
58
                    [% tx("Framework cannot be deleted", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
59
                [% ELSE %]
60
                    [% tx("Confirm deletion of framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
61
                [% END %]
54
            [% END %]
62
            [% END %]
55
63
56
        [% ELSE %]
64
        [% ELSE %]
57
            [% WRAPPER breadcrumb_item bc_active= 1 %]
65
            [% WRAPPER breadcrumb_item bc_active= 1 %]
58
                <span>MARC frameworks</span>
66
                <span>MARC bibliographic frameworks</span>
59
            [% END %]
67
            [% END %]
60
        [% END %]
68
        [% END %]
61
    [% END #/ WRAPPER breadcrumbs %]
69
    [% END #/ WRAPPER breadcrumbs %]
Lines 98-104 Link Here
98
[% END %]
106
[% END %]
99
107
100
[% IF op == 'add_form' %]
108
[% IF op == 'add_form' %]
101
    <h1>[% IF framework %]Modify framework text[% ELSE %]Add framework[% END %]</h1>
109
    <h1>
110
        [% IF framework %]
111
            [% tx("Modify framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
112
        [% ELSE %]
113
            <span>New framework</span>
114
        [% END %]
115
    </h1>
102
    <form action="/cgi-bin/koha/admin/biblio_framework.pl" name="Aform" method="post" class="validated">
116
    <form action="/cgi-bin/koha/admin/biblio_framework.pl" name="Aform" method="post" class="validated">
103
        <input type="hidden" name="op" value="add_validate" />
117
        <input type="hidden" name="op" value="add_validate" />
104
        <fieldset class="rows">
118
        <fieldset class="rows">
Lines 139-145 Link Here
139
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> Return to frameworks</button>
153
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> Return to frameworks</button>
140
            </form>
154
            </form>
141
        [% ELSE %]
155
        [% ELSE %]
142
            <h1>Delete framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])?</h1>
156
            <h1>[% tx("Confirm deletion of framework '{framework}' ({frameworkcode})?", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]</h1>
143
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="post">
157
            <form class="inline" action="/cgi-bin/koha/admin/biblio_framework.pl" method="post">
144
                <input type="hidden" name="op" value="delete_confirmed" />
158
                <input type="hidden" name="op" value="delete_confirmed" />
145
                <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
159
                <input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
Lines 153-159 Link Here
153
[% END %]
167
[% END %]
154
168
155
[% IF op == 'list' %]
169
[% IF op == 'list' %]
156
<h1>MARC frameworks</h1>
170
<h1>MARC bibliographic frameworks</h1>
157
<div class="page-section">
171
<div class="page-section">
158
<table id="table_biblio_frameworks">
172
<table id="table_biblio_frameworks">
159
    <thead>
173
    <thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-45 / +29 lines)
Lines 5-32 Link Here
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
<title>[% FILTER collapse %]
6
<title>[% FILTER collapse %]
7
    [% IF ( add_form ) %]
7
    [% IF ( add_form ) %]
8
        [% IF ( use_heading_flags_p ) %]
8
        [% t("Edit subfields constraints") | html %] &rsaquo;
9
            [% IF ( heading_edit_subfields_p ) %]
10
                [% t("Edit MARC subfields constraints") | html %] &rsaquo;
11
                [% t("MARC subfield structure") | html %]
12
            [% END %]
13
        [% ELSE %]
14
            [% action | html %] &rsaquo;
15
            [% t("MARC subfield structure") | html %]
16
        [% END %]
17
    [% END %]
9
    [% END %]
10
18
    [% IF ( delete_confirm ) %]
11
    [% IF ( delete_confirm ) %]
19
        Confirm deletion of subfield [% tagsubfield | html %] &rsaquo;
12
        [% tx("Confirm deletion of subfield '{subfield}'", {subfield = mss.tagsubfield }) | html %] &rsaquo;
20
        [% t("MARC subfield structure") | html %]
21
    [% END %]
13
    [% END %]
22
    [% IF ( delete_confirmed ) %]
14
23
        [% t("Subfield deleted") | html %] &rsaquo;
15
    [% IF ( add_form || delete_confirm || else ) %]
24
        [% t("MARC subfield structure") | html %]
16
        [% tx("Tag {tag}", { tag = tagfield}) | html %] &rsaquo;
25
    [% END %]
17
    [% END %]
26
    [% IF ( else ) %]
18
27
        [% t("MARC subfield structure") | html %]
19
    [% IF ( frameworkcode ) %]
20
        [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])
21
    [% ELSE %]
22
        [% t("Default framework") | html %]
28
    [% END %] &rsaquo;
23
    [% END %] &rsaquo;
24
25
    [% t("MARC bibliographic frameworks") | html %] &rsaquo;
26
29
    [% t("Administration") | html %] &rsaquo;
27
    [% t("Administration") | html %] &rsaquo;
28
30
    [% t("Koha") | html %]
29
    [% t("Koha") | html %]
31
[% END %]</title>
30
[% END %]</title>
32
[% INCLUDE 'doc-head-close.inc' %]
31
[% INCLUDE 'doc-head-close.inc' %]
Lines 44-93 Link Here
44
                <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
43
                <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
45
            [% END %]
44
            [% END %]
46
            [% WRAPPER breadcrumb_item %]
45
            [% WRAPPER breadcrumb_item %]
47
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
46
                <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic frameworks</a>
48
            [% END %]
47
            [% END %]
49
            [% WRAPPER breadcrumb_item %]
48
            [% WRAPPER breadcrumb_item %]
50
                <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode | uri %]&amp;searchfield=[% tagfield | uri %]">
49
                <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode | uri %]&amp;searchfield=[% tagfield | uri %]">
51
                    [% IF ( frameworkcode ) %]
50
                    [% IF ( frameworkcode ) %]
52
                        <span>[% frameworkcode | html %] framework structure</span>
51
                        [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])
53
                    [% ELSE %]
52
                    [% ELSE %]
54
                        <span>Default framework structure</span>
53
                        <span>Default framework</span>
55
                    [% END %]
54
                    [% END %]
56
                </a>
55
                </a>
57
            [% END %]
56
            [% END %]
58
57
59
            [% IF ( add_form ) %]
58
            [% IF ( add_form ) %]
60
                [% IF ( use_heading_flags_p ) %]
59
                [% WRAPPER breadcrumb_item %]
61
                    [% IF ( heading_edit_subfields_p ) %]
60
                    <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]">[% tx("Tag {tag}", { tag = tagfield}) | html %]</a>
62
                        [% WRAPPER breadcrumb_item %]
61
                [% END %]
63
                            <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]">Tag [% tagfield | html %] subfield structure</a>
62
                [% WRAPPER breadcrumb_item bc_active= 1 %]
64
                        [% END %]
63
                    <span>Edit subfields constraints</span>
65
                        [% WRAPPER breadcrumb_item bc_active= 1 %]
66
                            <span>Edit subfields constraints</span>
67
                        [% END %]
68
                    [% END %]
69
                [% ELSE %]
70
                    [% WRAPPER breadcrumb_item %]
71
                        <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]">Tag [% tagfield | html %] Subfield structure</a>
72
                    [% END %]
73
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
74
                        [% action | html %]
75
                    [% END %]
76
                [% END %]
64
                [% END %]
77
            [% END %]
65
            [% END %]
78
66
79
            [% IF ( delete_confirm ) %]
67
            [% IF ( delete_confirm ) %]
80
                [% WRAPPER breadcrumb_item %]
68
                [% WRAPPER breadcrumb_item %]
81
                    <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% mss.tagfield | uri %]&amp;frameworkcode=[% mss.frameworkcode | uri %]">Tag [% mss.tagfield | html %] Subfield structure</a>
69
                    <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% mss.tagfield | uri %]&amp;frameworkcode=[% mss.frameworkcode | uri %]">[% tx("Tag {tag}", { tag = tagfield}) | html %]</a>
82
                [% END %]
70
                [% END %]
83
                [% WRAPPER breadcrumb_item bc_active= 1 %]
71
                [% WRAPPER breadcrumb_item bc_active= 1 %]
84
                    <span>Confirm deletion of subfield [% mss.tagsubfield | html %]</span>
72
                    [% tx("Confirm deletion of subfield '{subfield}'?", {subfield = mss.tagsubfield }) | html %]
85
                [% END %]
73
                [% END %]
86
            [% END %]
74
            [% END %]
87
75
88
            [% IF ( else ) %]
76
            [% IF ( else ) %]
89
                [% WRAPPER breadcrumb_item bc_active= 1 %]
77
                [% WRAPPER breadcrumb_item bc_active= 1 %]
90
                    <span>Tag [% tagfield | html %] Subfield structure</span>
78
                    <span>[% tx("Tag {tag} subfield structure", { tag = tagfield}) | html %]</span>
91
                [% END %]
79
                [% END %]
92
            [% END %]
80
            [% END %]
93
        [% END #/ WRAPPER breadcrumbs %]
81
        [% END #/ WRAPPER breadcrumbs %]
Lines 100-110 Link Here
100
88
101
                    [% IF ( add_form ) %]
89
                    [% IF ( add_form ) %]
102
                        <h1>
90
                        <h1>
103
                            [% IF ( use_heading_flags_p ) %]
91
                            [% tx("Tag {tag} subfield constraints", { tag = tagfield}) | html %]
104
                                [% IF ( heading_edit_subfields_p ) %]<span>Tag</span> [% tagfield | html %] <span>Subfield constraints</span>[% END %]
105
                            [% ELSE %]
106
                                [% action | html %]
107
                            [% END %]
108
                        </h1>
92
                        </h1>
109
                        <div class="hint">You can drag and drop the subfield tabs to change the order.</div>
93
                        <div class="hint">You can drag and drop the subfield tabs to change the order.</div>
110
94
Lines 331-337 Link Here
331
315
332
                    [% IF ( delete_confirm ) %]
316
                    [% IF ( delete_confirm ) %]
333
                        <div class="dialog alert">
317
                        <div class="dialog alert">
334
                            <h1>Confirm deletion of subfield [% mss.tagsubfield | html %]?</h1>
318
                            <h1>[% tx("Confirm deletion of subfield '{subfield}'?", {subfield = mss.tagsubfield }) | html %]</h1>
335
                            <p>Subfield: [% mss.tagsubfield | html %]</p>
319
                            <p>Subfield: [% mss.tagsubfield | html %]</p>
336
                            <p>Description: [% mss.liblibrarian | html_entity %]</p>
320
                            <p>Description: [% mss.liblibrarian | html_entity %]</p>
337
321
Lines 354-360 Link Here
354
338
355
                    [% IF ( else ) %]
339
                    [% IF ( else ) %]
356
                        [% IF ( frameworkcode ) %]
340
                        [% IF ( frameworkcode ) %]
357
                            <h1>MARC subfield structure admin for [% tagfield | html %] (framework [% frameworkcode | html %])</h1>
341
                            <h1>[% tx("Tag {tag} subfield structure (framework {frameworkcode})", { tag = tagfield, frameworkcode = frameworkcode }) | html %]</h1>
358
                        [% ELSE %]
342
                        [% ELSE %]
359
                            <h1>MARC subfield structure admin for [% tagfield | html %] (default framework)</h1>
343
                            <h1>MARC subfield structure admin for [% tagfield | html %] (default framework)</h1>
360
                        [% END %]
344
                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-16 / +20 lines)
Lines 7-13 Link Here
7
<title>[% FILTER collapse %]
7
<title>[% FILTER collapse %]
8
    [% IF ( add_form ) %]
8
    [% IF ( add_form ) %]
9
        [% IF heading_add_tag_p %]
9
        [% IF heading_add_tag_p %]
10
            [% tx("Add tag {searchfield}", { searchfield = searchfield }) | html %]
10
            [% tx("New tag {searchfield}", { searchfield = searchfield }) | html %]
11
        [% ELSE %]
11
        [% ELSE %]
12
            [% tx("Modify tag {searchfield}", { searchfield = searchfield }) | html %]
12
            [% tx("Modify tag {searchfield}", { searchfield = searchfield }) | html %]
13
        [% END %] &rsaquo;
13
        [% END %] &rsaquo;
Lines 18-24 Link Here
18
    [% IF ( delete_confirmed ) %]
18
    [% IF ( delete_confirmed ) %]
19
        [% t("Data deleted") | html %] &rsaquo;
19
        [% t("Data deleted") | html %] &rsaquo;
20
    [% END %]
20
    [% END %]
21
    [% t("MARC frameworks") | html %] &rsaquo;
21
    [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) &rsaquo;
22
    [% t("MARC bibliographic frameworks") | html %] &rsaquo;
22
    [% t("Administration") | html %] &rsaquo;
23
    [% t("Administration") | html %] &rsaquo;
23
    [% t("Koha") | html %]
24
    [% t("Koha") | html %]
24
[% END %]</title>
25
[% END %]</title>
Lines 36-42 Link Here
36
            <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
37
            <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
37
        [% END %]
38
        [% END %]
38
        [% WRAPPER breadcrumb_item %]
39
        [% WRAPPER breadcrumb_item %]
39
            <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
40
            <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic frameworks</a>
40
        [% END %]
41
        [% END %]
41
42
42
        [% IF ( add_form ) %]
43
        [% IF ( add_form ) %]
Lines 45-59 Link Here
45
                    [% IF framework %]
46
                    [% IF framework %]
46
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
47
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
47
                    [% ELSE %]
48
                    [% ELSE %]
48
                        <span>Default MARC framework</span>
49
                        <span>Default MARC bibliographic framework</span>
49
                    [% END%]
50
                    [% END%]
50
                </a>
51
                </a>
51
            [% END %]
52
            [% END %]
52
            [% WRAPPER breadcrumb_item bc_active= 1%]
53
            [% WRAPPER breadcrumb_item bc_active= 1%]
53
                [% IF heading_add_tag_p %]
54
                [% IF heading_add_tag_p %]
54
                    <span>Add tag [% searchfield | html %]</span>
55
                    [% tx("New tag {searchfield}", { searchfield = searchfield }) | html %]
55
                [% ELSE %]
56
                [% ELSE %]
56
                    <span>Modify tag [% searchfield | html %]</span>
57
                    [% tx("Modify tag {searchfield}", { searchfield = searchfield }) | html %]
57
                [% END %]
58
                [% END %]
58
            [% END %]
59
            [% END %]
59
60
Lines 62-68 Link Here
62
                [% IF framework %]
63
                [% IF framework %]
63
                    <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
64
                    <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
64
                [% ELSE %]
65
                [% ELSE %]
65
                    <span>Default MARC framework</span>
66
                    <span>Default MARC bibliographic framework</span>
66
                [% END %]
67
                [% END %]
67
            [% END %]
68
            [% END %]
68
69
Lines 72-83 Link Here
72
                    [% IF framework %]
73
                    [% IF framework %]
73
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
74
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
74
                    [% ELSE %]
75
                    [% ELSE %]
75
                        <span>Default MARC framework</span>
76
                        <span>Default MARC bibliographic framework</span>
76
                    [% END %]
77
                    [% END %]
77
                </a>
78
                </a>
78
            [% END %]
79
            [% END %]
79
            [% WRAPPER breadcrumb_item bc_active= 1%]
80
            [% WRAPPER breadcrumb_item bc_active= 1%]
80
                <span>Confirm deletion of tag [% searchfield | html %]</span>
81
                [% tx("Confirm deletion of tag {searchfield}", { searchfield = searchfield }) | html %]
81
            [% END %]
82
            [% END %]
82
83
83
        [% ELSIF ( delete_confirmed ) %]
84
        [% ELSIF ( delete_confirmed ) %]
Lines 86-92 Link Here
86
                    [% IF framework %]
87
                    [% IF framework %]
87
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
88
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
88
                    [% ELSE %]
89
                    [% ELSE %]
89
                        <span>Default MARC framework</span>
90
                        <span>Default MARC bibliographic framework</span>
90
                    [% END %]
91
                    [% END %]
91
                </a>
92
                </a>
92
            [% END %]
93
            [% END %]
Lines 105-116 Link Here
105
[% IF ( else ) %]
106
[% IF ( else ) %]
106
<div id="toolbar" class="btn-toolbar">
107
<div id="toolbar" class="btn-toolbar">
107
    <a class="btn btn-default" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&amp;frameworkcode=[% framework.frameworkcode | uri %]"><i class="fa fa-plus"></i> New tag</a>
108
    <a class="btn btn-default" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&amp;frameworkcode=[% framework.frameworkcode | uri %]"><i class="fa fa-plus"></i> New tag</a>
109
    <a class="btn btn-default" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form&amp;frameworkcode=[% loo.frameworkcode | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit framework</a>
108
</div>[% END %]
110
</div>[% END %]
109
111
110
[% IF framework %]
112
[% IF framework %]
111
    <h1>MARC Framework for [% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</h1>
113
    <h1>
114
        [% tx("MARC bibliographic framework '{framework}' ({frameworkcode})", { framework = framework.frameworktext, frameworkcode = framework.frameworkcode }) | html %]
115
    </h1>
112
[% ELSE %]
116
[% ELSE %]
113
    <h1>MARC Framework for default MARC framework</h1>
117
    <h1>Default MARC bibliographic framework</h1>
114
[% END %]
118
[% END %]
115
119
116
[% IF ( add_form ) %]
120
[% IF ( add_form ) %]
Lines 120-128 Link Here
120
      <fieldset class="rows">
124
      <fieldset class="rows">
121
            <legend>
125
            <legend>
122
                [% IF heading_add_tag_p %]
126
                [% IF heading_add_tag_p %]
123
                    <span>Add tag</span>
127
                    <span>New tag</span>
124
                [% ELSE %]
128
                [% ELSE %]
125
                    <span>Modify tag</span> <input type="hidden" name="modif" value="1" />[% searchfield | html %]
129
                    [% tx("Modify tag {searchfield}", { searchfield = searchfield }) | html %]
130
                    <input type="hidden" name="modif" value="1" />
126
                [% END %]
131
                [% END %]
127
            </legend>
132
            </legend>
128
            <input type="hidden" name="op" value="add_validate" />
133
            <input type="hidden" name="op" value="add_validate" />
Lines 185-191 Link Here
185
190
186
[% IF ( delete_confirm ) %]
191
[% IF ( delete_confirm ) %]
187
    <div class="dialog alert">
192
    <div class="dialog alert">
188
        <h3>Confirm deletion of tag <span class="ex">'[% searchfield | html %]'</span>?</h3>
193
        <h3>[% tx("Confirm deletion of tag {searchfield}?", { searchfield = searchfield }) | html %]</h3>
189
        <p>Tag: [% searchfield | html %]</p>
194
        <p>Tag: [% searchfield | html %]</p>
190
        <p>Description: [% liblibrarian | html %]</p>
195
        <p>Description: [% liblibrarian | html %]</p>
191
        <form action="[% script_name | html %]" method="post">
196
        <form action="[% script_name | html %]" method="post">
192
- 

Return to bug 34393