@@ -, +, @@
import
- Import a file of MARC records.
- Click the "Manage staged records" button.
- In the table of staged records the last column labeled "Records"
should be empty.
- Click "Import this batch into the catalog."
- The table of records will be shown again, and this time the last
column should contain "View" and "Edit" buttons for each row.
- Confirm that the buttons work correctly, opening the correct record
for viewing and editing.
---
.../en/modules/tools/manage-marc-import.tt | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
@@ -508,6 +508,11 @@
[% ELSE %]
var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=";
[% END %]
+ [% IF(record_type == 'auth') %]
+ var record_edit_url = "/cgi-bin/koha/authorities/authorities.pl?authid=";
+ [% ELSE %]
+ var record_edit_url = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=";
+ [% END %]
var additional_details = "";
if( aData['author'] ){
@@ -559,10 +564,16 @@
'' + _("View") + ''
);
}
- $('td:eq(6)', nRow).html(
- '' + aData['matched'] + ''
- );
+ if (aData['matched']) {
+ $('td:eq(6)', nRow).html(
+ ' ' + _("View") + ' '
+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
+ + ' ' + _("Edit") + ''
+ [% END %]
+ );
+ }
},
}));
$("#import_batch_form").on("submit", function() {
--