Bug 38946: Add enumchron to inventory table
This patch adds "Serial enumeration / chronology" to the inventory table output. Test plan: 0. Apply the patch 1. Go to http://localhost:8081/cgi-bin/koha/tools/inventory.pl 2. Click "Submit" 3. Note that a "Serial enumeration / chronology" column appears in the results 4. For the top result, go into the bib record and then add a "Serial enumeration / chronology" to the item in question 5. Re-run the inventory 6. Note that the "Serial enumeration / chronology" now has a value in iy 7. Click "Columns" and hide the column 8. Try again using the CSV export and note that the new column appears again Signed-off-by: Ludovic Julien <ludovic.julien@inLibro.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
b16a541537
commit
6da9009b3a
|
|
@ -599,7 +599,7 @@ sub GetItemsForInventory {
|
|||
my $max_cnsort = GetClassSort( $class_source, undef, $maxlocation );
|
||||
|
||||
my $select_columns = q{
|
||||
SELECT DISTINCT(items.itemnumber), barcode, itemcallnumber, title, author, biblio.biblionumber, biblio.frameworkcode, datelastseen, homebranch, location, notforloan, damaged, itemlost, withdrawn, stocknumber, items.cn_sort, ccode
|
||||
SELECT DISTINCT(items.itemnumber), barcode, itemcallnumber, title, author, biblio.biblionumber, biblio.frameworkcode, datelastseen, homebranch, location, notforloan, damaged, itemlost, withdrawn, stocknumber, items.cn_sort, ccode, enumchron
|
||||
|
||||
};
|
||||
my $select_count = q{SELECT COUNT(DISTINCT(items.itemnumber))};
|
||||
|
|
|
|||
|
|
@ -2800,6 +2800,8 @@ modules:
|
|||
columnname: call_number
|
||||
cannot_be_toggled: 1
|
||||
cannot_be_modified: 1
|
||||
-
|
||||
columnname: enumchron
|
||||
-
|
||||
columnname: library
|
||||
-
|
||||
|
|
|
|||
|
|
@ -311,6 +311,7 @@
|
|||
[% END %]
|
||||
<th id="barcode" data-colname="barcode">Barcode</th>
|
||||
<th id="call_number" data-colname="call_number">Call number</th>
|
||||
<th id="enumchron" data-colname="enumchron">Serial enumeration / chronology</th>
|
||||
<th id="library" data-colname="library">Library</th>
|
||||
<th id="collection" data-colname="collection">Collection</th>
|
||||
<th id="title" data-colname="title" class="anti-the">Title</th>
|
||||
|
|
@ -335,6 +336,10 @@
|
|||
|
||||
<td data-order="[% result.cn_sort | html %]"> [% result.itemcallnumber | html %] </td>
|
||||
|
||||
<td>
|
||||
<span class="enumchron">[% result.enumchron | html %]</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
[% Branches.GetName( result.homebranch ) | html %]
|
||||
<span class="shelvingloc">[% result.location | html %]</span>
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@ if ( defined $input->param('CSVexport') && $input->param('CSVexport') eq 'on' )
|
|||
qw / biblio.title biblio.author
|
||||
items.barcode items.itemnumber
|
||||
items.homebranch items.location items.ccode
|
||||
items.itemcallnumber items.notforloan
|
||||
items.itemcallnumber items.enumchron items.notforloan
|
||||
items.itemlost items.damaged
|
||||
items.withdrawn items.stocknumber
|
||||
/
|
||||
|
|
@ -458,7 +458,7 @@ if ( defined $input->param('CSVexport') && $input->param('CSVexport') eq 'on' )
|
|||
print $csv->string, "\n";
|
||||
|
||||
my @keys =
|
||||
qw/ title author barcode itemnumber homebranch location ccode itemcallnumber notforloan itemlost damaged withdrawn stocknumber /;
|
||||
qw/ title author barcode itemnumber homebranch location ccode itemcallnumber enumchron notforloan itemlost damaged withdrawn stocknumber /;
|
||||
for my $item (@$loop) {
|
||||
my @line;
|
||||
for my $key (@keys) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue