Bug 30911: Datatables error on course-details.pl after adding a bib-level course reserve
This patch removes the colspan from biblio-level course reserves rows in
favor of adding a style to the message's container allowing it to
overflow across table cells.
To test, apply the patch and go to course reserves.
1. If necessary, add a new course.
2. View the details of the course and add a reserve using the
biblionumber option to add the reserve at the bibliographic level.
3. Add a notes if you want, then click "Save."
4. Return to the course detail view.
5. In the table of reserves your biblio-level reserve should have a
message starting in the "Barcode" column and overflowing across other
item information columns, "Item information is not available for
record-level course reserve."
6. Try adding multiple item-level and biblio-level reserves to the same
course to confirm that the information displays well in those cases.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 91f50ee70f
)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
7f52fa4a73
commit
8e879be095
1 changed files with 32 additions and 16 deletions
|
@ -9,15 +9,26 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Course details for [% course.course_name | html %] › Course reserves › Koha</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
|
||||
<style>
|
||||
#instructors {
|
||||
float: left;
|
||||
}
|
||||
.instructor_line {
|
||||
padding: 0 .1em;
|
||||
}
|
||||
</style>
|
||||
[% FILTER collapse %]
|
||||
<style>
|
||||
#instructors {
|
||||
float: left;
|
||||
}
|
||||
.instructor_line {
|
||||
padding: 0 .1em;
|
||||
}
|
||||
.biblio-level-info {
|
||||
background-color: #f3f3f3;
|
||||
border-radius:5px;
|
||||
box-shadow: 0px 1px 1px 0px rgba(50, 50, 50, 0.2);
|
||||
display:block;
|
||||
font-style: italic;
|
||||
margin: -3px 0 0 -3px;
|
||||
padding:.5em;
|
||||
position:absolute;
|
||||
}
|
||||
</style>
|
||||
[% END %]
|
||||
</head>
|
||||
|
||||
<body id="courses_course_details" class="course">
|
||||
|
@ -121,6 +132,9 @@
|
|||
|
||||
[% IF cr.item %]
|
||||
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cr.item.itemnumber | uri %]&biblionumber=[% cr.biblio.biblionumber | uri %]&bi=[% cr.biblioitem.biblioitemnumber | uri %]">[% cr.item.barcode | html %]</a></td>
|
||||
|
||||
|
||||
|
||||
<td>[% cr.item.itemcallnumber | html %]</td>
|
||||
[% IF item_level_itypes %]
|
||||
<td>
|
||||
|
@ -221,13 +235,15 @@
|
|||
[% END %]
|
||||
</td>
|
||||
[% ELSE # record-level course reserve %]
|
||||
[% IF ( item_level_itypes ) %]
|
||||
<td colspan="7">
|
||||
[% ELSE %]
|
||||
<td colspan="6">
|
||||
[% END %]
|
||||
<em>Information not available for record-level course reserve</em>
|
||||
</td>
|
||||
<td>
|
||||
<div class="biblio-level-info">Item information is not available for record-level course reserve</div>
|
||||
</td>
|
||||
<td><!-- Call number --></td>
|
||||
<td><!-- Item type --></td>
|
||||
<td><!-- Collection --></td>
|
||||
<td><!-- Location --></td>
|
||||
<td><!-- Home library --></td>
|
||||
<td><!-- Holding library --></td>
|
||||
[% END %]
|
||||
|
||||
<td>[% IF (cr.staff_note) %]
|
||||
|
|
Loading…
Reference in a new issue