[Koha-bugs] [Bug 30837] The 'Print summary' feature defaults to very wide tables

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 24 11:45:05 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30837

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magnus at libriotech.no

--- Comment #1 from Magnus Enger <magnus at libriotech.no> ---
It looks to me like the table gets a fixed width when the page is rendered, and
that width is kept both when you resize the browser window, and when the page
is printed. 

When the browser window is at full width, I see this in the "developer tools"
view of the page:

<table id="print-summary-checkouts" class="dataTable" role="grid" style="width:
1923px;">
<thead>
<tr role="row">
<th class="sorting_asc" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-sort="ascending" aria-label="Title: activate to
sort column descending" style="width: 740.5px;">Title</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Author: activate to sort column ascending"
style="width: 211.5px;">Author</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Call number: activate to sort column
ascending" style="width: 192.5px;">Call number</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Item type: activate to sort column
ascending" style="width: 280.5px;">Item type</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Date due: activate to sort column
ascending" style="width: 148.5px;">Date due</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Barcode: activate to sort column ascending"
style="width: 190.5px;">Barcode</th>
</tr>

If i resize the window, the numbers are different:

<table id="print-summary-checkouts" class="dataTable" role="grid" style="width:
1152px;">
<thead>
<tr role="row"><th class="sorting_asc" tabindex="0"
aria-controls="print-summary-checkouts" rowspan="1" colspan="1"
aria-sort="ascending" aria-label="Title: activate to sort column descending"
style="width: 432.5px;">Title</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Author: activate to sort column ascending"
style="width: 116.5px;">Author</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Call number: activate to sort column
ascending" style="width: 104.5px;">Call number</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Item type: activate to sort column
ascending" style="width: 157.5px;">Item type</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Date due: activate to sort column
ascending" style="width: 78.5px;">Date due</th>
<th class="sorting" tabindex="0" aria-controls="print-summary-checkouts"
rowspan="1" colspan="1" aria-label="Barcode: activate to sort column ascending"
style="width: 103.5px;">Barcode</th>
</tr>

I checked a site running 21.05.05 and it looks better there. The table looks
like a "regular" table, without the "Columns" link next to the title, and
without sortable columns. Maybe related to bug 28450?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list