@@ -, +, @@ - Perform a cataloging search which will return results from the reservoir. - The table of reservoir search results should be a DataTable with paging, navigation, filtering, column configuration, etc. - Confirm that all DataTable controls work correctly. - Go to Administration -> Table settings -> Cataloging -> addbooks. - Try modifying the default configuration and confirm that the settings take effect. --- C4/Breeding.pm | 9 ++- admin/columns_settings.yml | 15 ++++ cataloguing/addbooks.pl | 3 +- .../prog/en/modules/cataloguing/addbooks.tt | 75 +++++++++++-------- 4 files changed, 65 insertions(+), 37 deletions(-) --- a/C4/Breeding.pm +++ a/C4/Breeding.pm @@ -77,8 +77,13 @@ sub BreedingSearch { # normalise ISBN like at import $isbn = C4::Koha::GetNormalizedISBN($isbn); - $query = "SELECT import_record_id, file_name, isbn, title, author - FROM import_biblios + $query = "SELECT import_biblios.import_record_id, + import_batches.file_name, + import_biblios.isbn, + import_biblios.title, + import_biblios.author, + import_batches.upload_timestamp + FROM import_biblios JOIN import_records USING (import_record_id) JOIN import_batches USING (import_batch_id) WHERE "; --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -465,6 +465,21 @@ modules: columnname: checkin_on cataloguing: + addbooks: + reservoir-table: + columns: + - + columnname: title + - + columnname: isbn + - + columnname: coming_from + - + columnname: import_date + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 additem: itemst: # NOTE: These columns are in the same order as kohastructure.sql, and contain all items --- a/cataloguing/addbooks.pl +++ a/cataloguing/addbooks.pl @@ -127,11 +127,10 @@ for my $resultsbr (@resultsbr) { push @{$breeding_loop}, { id => $resultsbr->{import_record_id}, isbn => $resultsbr->{isbn}, - copyrightdate => $resultsbr->{copyrightdate}, - editionstatement => $resultsbr->{editionstatement}, file => $resultsbr->{file_name}, title => $resultsbr->{title}, author => $resultsbr->{author}, + upload_timestamp => $resultsbr->{upload_timestamp} }; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -1,5 +1,7 @@ [% USE raw %] [% USE Koha %] +[% USE KohaDates %] +[% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %]
Title | -ISBN | -Date | -Edition | -Coming from | -- |
---|
- [% breeding_loo.title | html %] - [% breeding_loo.author | html %] - | -[% breeding_loo.isbn | html %] | -[% breeding_loo.copyrightdate | html %] | -[% breeding_loo.edition | html %] | -[% breeding_loo.file | html %] | -
-
-
- Actions
-
-
-
- |
+ Title | +ISBN | +Coming from | +Import date | +|
---|---|---|---|---|---|---|---|---|---|---|
+ [% breeding_loo.title | html %] [% breeding_loo.author | html %] + | +[% breeding_loo.isbn | html %] | +[% breeding_loo.file | html %] | +[% breeding_loo.upload_timestamp | $KohaDates %] | +
+
+
+ Actions
+
+
+
+ |
+