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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-3 / +13 lines)
Lines 45-51 Link Here
45
                        [% ELSE %]
45
                        [% ELSE %]
46
                            <div class="dialog message">
46
                            <div class="dialog message">
47
                        [% END %]
47
                        [% END %]
48
                            <b><p>[% label_batch_msg | html %]</p></b>
48
                            <p><b>
49
                                [% IF ( label_batch_msg == "error" ) %]
50
                                    Error attempting to create label batch. Please ask your system administrator to check the log for more details.
51
                                [% ELSE %]
52
                                    Label <a href="/cgi-bin/koha/labels/label-edit-batch.pl?op=edit&element_id=[% label_batch_msg | uri %]" >batch #[% label_batch_msg | html %]</a> created.
53
                                [% END %]
54
                            </b></p>
49
                        </div>
55
                        </div>
50
                    [% END %]
56
                    [% END %]
51
57
Lines 353-359 Link Here
353
                                    </td>
359
                                    </td>
354
                                    <td>[% batch_lis.upload_timestamp | html %]</td>
360
                                    <td>[% batch_lis.upload_timestamp | html %]</td>
355
                                    <td>[% batch_lis.num_records | html %]</td>
361
                                    <td>[% batch_lis.num_records | html %]</td>
356
                                    <td>[% batch_lis.num_items | html %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&amp;op=create_labels">(Create label batch)</a>[% END %]</td>
362
                                    <td>[% batch_lis.num_items | html %]
363
                                        [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %]
364
                                            (<a href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&amp;op=create_labels">Create label batch</a>)
365
                                        [% END %]
366
                                    </td>
357
                                    <td class="actions">
367
                                    <td class="actions">
358
                                        [% IF ( batch_lis.can_clean ) %]
368
                                        [% IF ( batch_lis.can_clean ) %]
359
                                            <form method="post" action="[% batch_lis.script_name | html %]" name="clean_batch_[% batch_lis.import_batch_id | html %]" id="clean_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_clean">
369
                                            <form method="post" action="[% batch_lis.script_name | html %]" name="clean_batch_[% batch_lis.import_batch_id | html %]" id="clean_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_clean">
Lines 591-594 Link Here
591
            [% END %]
601
            [% END %]
592
        </ul>
602
        </ul>
593
    </nav>
603
    </nav>
594
[% END %]
604
[% END %]
(-)a/tools/manage-marc-import.pl (-3 / +2 lines)
Lines 69-80 if ($op eq "create_labels") { Link Here
69
	#create a batch of labels, then lose $op & $import_batch_id so we get back to import batch list.
69
	#create a batch of labels, then lose $op & $import_batch_id so we get back to import batch list.
70
	my $label_batch_id = create_labelbatch_from_importbatch($import_batch_id);
70
	my $label_batch_id = create_labelbatch_from_importbatch($import_batch_id);
71
        if ($label_batch_id == -1) {
71
        if ($label_batch_id == -1) {
72
            $template->param(   label_batch_msg => "Error attempting to create label batch. Please ask your system administrator to check the log for more details.",
72
            $template->param(   label_batch_msg => "error",
73
                                message_type    => 'alert',
73
                                message_type    => 'alert',
74
            );
74
            );
75
        }
75
        }
76
        else {
76
        else {
77
            $template->param(   label_batch_msg => "Label batch #$label_batch_id created.",
77
            $template->param(   label_batch_msg => $label_batch_id,
78
                                message_type    => 'dialog',
78
                                message_type    => 'dialog',
79
            );
79
            );
80
        }
80
        }
81
- 

Return to bug 14369