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

(-)a/installer/data/mysql/updatedatabase.pl (-2 / +2 lines)
Lines 7306-7312 if ( CheckVersion($DBversion) ) { Link Here
7306
    SetVersion($DBversion);
7306
    SetVersion($DBversion);
7307
}
7307
}
7308
7308
7309
$DBversion = "3.11.00.XXX";
7309
$DBversion = "3.13.00.XXX";
7310
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
7310
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
7311
    $dbh->do("CREATE TABLE IF NOT EXISTS marc_modification_templates (
7311
    $dbh->do("CREATE TABLE IF NOT EXISTS marc_modification_templates (
7312
              template_id int(11) NOT NULL auto_increment,
7312
              template_id int(11) NOT NULL auto_increment,
Lines 7344-7350 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
7344
7344
7345
    $dbh->do("INSERT INTO permissions (module_bit, code, description) VALUES ('13', 'marc_modification_templates', 'Manage marc modification templates')");
7345
    $dbh->do("INSERT INTO permissions (module_bit, code, description) VALUES ('13', 'marc_modification_templates', 'Manage marc modification templates')");
7346
7346
7347
    print "Upgrade to $DBversion done ( Added tables for MARC Modification Framework )\n";
7347
    print "Upgrade to $DBversion done ( Bug 8015: Added tables for MARC Modification Framework )\n";
7348
    SetVersion($DBversion);
7348
    SetVersion($DBversion);
7349
}
7349
}
7350
7350
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-10 / +10 lines)
Lines 141-147 function clearFormElements(divId) { Link Here
141
}
141
}
142
142
143
function confirmDelete() {
143
function confirmDelete() {
144
    var agree = confirm("Are you sure you wish to delete this template?");
144
    var agree = confirm(_("Are you sure you wish to delete this template?"));
145
    return agree;
145
    return agree;
146
}
146
}
147
147
Lines 187-196 function editAction( mmta_id, ordering, action, field_number, from_field, from_s Link Here
187
    document.getElementById('description').value = description;
187
    document.getElementById('description').value = description;
188
188
189
    window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml;
189
    window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml;
190
    document.getElementById('modaction_legend').innerhtml = "Edit Action " + ordering;
190
    document.getElementById('modaction_legend').innerhtml = _("Edit action") + ordering;
191
191
192
    window.action_submit_value = document.getElementById('action_submit').value;
192
    window.action_submit_value = document.getElementById('action_submit').value;
193
    document.getElementById('action_submit').value = "Update Action";
193
    document.getElementById('action_submit').value = _("Update action");
194
194
195
    show('cancel_edit');
195
    show('cancel_edit');
196
}
196
}
Lines 287-293 function setSelectByValue( selectId, value ) { Link Here
287
                        <caption>Actions for this template</caption>
287
                        <caption>Actions for this template</caption>
288
288
289
                        <tr>
289
                        <tr>
290
                            <th>Change Order</th>
290
                            <th>Change order</th>
291
                            <th>Order</th>
291
                            <th>Order</th>
292
                            <th>Action</th>
292
                            <th>Action</th>
293
                            <th>Description</th>
293
                            <th>Description</th>
Lines 298-316 function setSelectByValue( selectId, value ) { Link Here
298
                        [% FOREACH ActionsLoo IN ActionsLoop %]
298
                        [% FOREACH ActionsLoo IN ActionsLoop %]
299
                            <tr>
299
                            <tr>
300
                                <td style="white-space:nowrap;">
300
                                <td style="white-space:nowrap;">
301
                                    <a title="Move Action Up" href="marc_modification_templates.pl?op=move_action&amp;where=up&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
301
                                    <a title="Move action up" href="marc_modification_templates.pl?op=move_action&amp;where=up&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
302
                                    <img src="[% interface %]/[% theme %]/img/go-up.png" border="0" alt="Go up" />
302
                                    <img src="[% interface %]/[% theme %]/img/go-up.png" border="0" alt="Go up" />
303
                                        </a>
303
                                        </a>
304
304
305
                                <a title="Move Action To Top" href="marc_modification_templates.pl?op=move_action&amp;where=top&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
305
                                <a title="Move action to top" href="marc_modification_templates.pl?op=move_action&amp;where=top&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
306
                                    <img src="[% interface %]/[% theme %]/img/go-top.png" border="0" alt="Go top" />
306
                                    <img src="[% interface %]/[% theme %]/img/go-top.png" border="0" alt="Go top" />
307
                                        </a>
307
                                        </a>
308
308
309
                                        <a title="Move Action To Bottom" href="marc_modification_templates.pl?op=move_action&amp;where=bottom&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
309
                                        <a title="Move action to bottom" href="marc_modification_templates.pl?op=move_action&amp;where=bottom&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
310
                                    <img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Go bottom" />
310
                                    <img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Go bottom" />
311
                                        </a>
311
                                        </a>
312
312
313
                                        <a title="Move Action Down" href="marc_modification_templates.pl?op=move_action&amp;where=down&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
313
                                        <a title="Move action down" href="marc_modification_templates.pl?op=move_action&amp;where=down&amp;template_id=[% ActionsLoo.template_id %]&amp;mmta_id=[% ActionsLoo.mmta_id %]">
314
                                    <img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Go down" />
314
                                    <img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Go down" />
315
                                        </a>
315
                                        </a>
316
                                </td>
316
                                </td>
Lines 391-397 function setSelectByValue( selectId, value ) { Link Here
391
                <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action" >
391
                <form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action" >
392
                    <a name="modaction"></a>
392
                    <a name="modaction"></a>
393
                    <fieldset>
393
                    <fieldset>
394
                        <legend id="modaction_legend">Add A New Action</legend>
394
                        <legend id="modaction_legend">Add a new action</legend>
395
395
396
                        <select name="action" id="action" onchange="onActionChange(this);">
396
                        <select name="action" id="action" onchange="onActionChange(this);">
397
                            <option value="delete_field">Delete</option>
397
                            <option value="delete_field">Delete</option>
Lines 468-474 function setSelectByValue( selectId, value ) { Link Here
468
                        <input type="text" name="description" id="description" size="60" />
468
                        <input type="text" name="description" id="description" size="60" />
469
469
470
                        <br/><br/>
470
                        <br/><br/>
471
                        <input id="action_submit" type="submit" value="Add Action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();" style="display:none;">Cancel</a>
471
                        <input id="action_submit" type="submit" value="Add action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();" style="display:none;">Cancel</a>
472
472
473
                    </fieldset>
473
                    </fieldset>
474
                </form>
474
                </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-1 / +1 lines)
Lines 150-156 Link Here
150
-->
150
-->
151
151
152
    [% IF ( CAN_user_tools_marc_modification_templates ) %]
152
    [% IF ( CAN_user_tools_marc_modification_templates ) %]
153
    <dt><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC Modification Templates</a></dt>
153
    <dt><a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a></dt>
154
    <dd>Manage templates for modifying MARC records during import.</dd>
154
    <dd>Manage templates for modifying MARC records during import.</dd>
155
    [% END %]
155
    [% END %]
156
156
(-)a/tools/marc_modification_templates.pl (-2 / +1 lines)
Lines 32-38 my $template_id = $cgi->param('template_id'); Link Here
32
32
33
my ($template, $loggedinuser, $cookie)
33
my ($template, $loggedinuser, $cookie)
34
    = get_template_and_user({
34
    = get_template_and_user({
35
            template_name => "tools/marc_modification_templates.tmpl",
35
            template_name => "tools/marc_modification_templates.tt",
36
            query => $cgi,
36
            query => $cgi,
37
            type => "intranet",
37
            type => "intranet",
38
            authnotrequired => 0,
38
            authnotrequired => 0,
39
- 

Return to bug 8015