From 1564196575ff879a7800ffd713e02f43f9176022 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Mon, 30 Apr 2018 04:15:34 +0000 Subject: [PATCH] Bug 20678 - Fixed update of number of records in draft batch file Also added icons onto the 'View draft records' in addbooks.tt and draftrecords.tt Test plan: 1. Go to Cataloging->View draft records and notice the count of the number of returned draft records in the top left hand corner of the datatable containing draft records is accurate. 2. Also notice that on the addbooks.pl and draftrecords.pl the 'View draft records' button has a eye icon on it Sponsored-By: Toi Ohomai Institute of Technology --- cataloguing/addbiblio.pl | 2 +- .../prog/en/modules/cataloguing/addbooks.tt | 4 +- .../prog/en/modules/cataloguing/draftrecords.tt | 147 +++++++++++++++++++++ 3 files changed, 150 insertions(+), 3 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/draftrecords.tt diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 6d49db1..bf5eeb7 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -845,7 +845,7 @@ if ( $op eq "addbiblio" ) { } else { if ($previewrecord) { - AddBiblioToBatch(1, 0, $record, 'biblio', int(rand(99999)), 0); + AddBiblioToBatch(1, 0, $record, 'biblio', int(rand(99999)), 1); print $input->redirect('/cgi-bin/koha/cataloguing/addbooks.pl'); } else { if ($breedingid) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt index 1708241..e4c1efc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -44,7 +44,7 @@ [% END %] - View Draft records + View draft records [% IF ( total ) %]
[% END %] @@ -143,7 +143,7 @@ [% ELSE %] - [% IF ( (query) && !(drafts_only) ) %] + [% IF ((query) && !(drafts_only)) %] [% IF ( error ) %]
[% END %]No results found [% IF ( error ) %] Error: [% error %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/draftrecords.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/draftrecords.tt new file mode 100644 index 0000000..559039a --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/draftrecords.tt @@ -0,0 +1,147 @@ +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] +Koha › Cataloging › Draft records +[% INCLUDE 'doc-head-close.inc' %] +[% INCLUDE 'browser-strings.inc' %] + + + + + +[% INCLUDE 'header.inc' %] + + +
+
+
+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] +
+ [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 %] + Advanced editor + [% END %] +
+ + +
+ [% IF servers.count > 0 %] +
+ + + +
+ [% END %] + View draft records + [% IF ( total ) %] +
+ [% END %] +
+ [% END %] + +

View draft records

+
+

To edit or save these draft records click the 'Edit' link beside the appropriate record.

+
+ + +
+ + + + + + + + + + +
#CitationStatusEdit recordDelete record
+
+
+
+
+ + + +[% MACRO jsinclude BLOCK %] + + +[% INCLUDE 'datatables.inc' %] + +[% END %] + +[% INCLUDE 'intranet-bottom.inc' %] -- 2.1.4