Bug 37229: Fix table configuration listings for course reserves

This patch changes the structure of columns_settings.yml so that the
configuration of tables on opac-course-details.pl and
opac-course-reserves.pl are in separate sections. They should not be
grouped under "biblio-detail" (opac-detail.pl).

To test you should have at least one course defined and some items
attached to that course.

- Apply the patch and restart services.
- Go to Administration -> Table settings -> OPAC
- You should see "Jump to" links for biblio-detail, course_items, and
  course_list.
- Make some changes to the course_items and course_list configurations.
- Go to the OPAC and confirm that your changes are reflected in the
  visible columns of those tables.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2af6bbbe5d)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2024-07-02 10:45:08 +00:00 committed by Lucas Gass
parent ddeb8aa16a
commit 11ed36f2b3
3 changed files with 17 additions and 15 deletions

View File

@ -2026,6 +2026,20 @@ modules:
-
columnname: item_coursereserves
subscriptionst:
columns:
-
columnname: serial_serialseq
-
columnname: serial_publisheddate
-
columnname: serial_planneddate
-
columnname: serial_status
-
columnname: serial_notes
course_list:
course_reserves_table:
columns:
-
@ -2043,19 +2057,7 @@ modules:
-
columnname: notes
subscriptionst:
columns:
-
columnname: serial_serialseq
-
columnname: serial_publisheddate
-
columnname: serial_planneddate
-
columnname: serial_status
-
columnname: serial_notes
course_items:
course-items-table:
columns:
-

View File

@ -123,7 +123,7 @@
[% INCLUDE 'columns_settings.inc' %]
<script>
$(document).ready(function() {
columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %];
columns_settings = [% TablesSettings.GetColumns( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
KohaTable("#course-items-table", {
"dom": '<"top"<"table_controls"f>>t',
"sorting": [[ 1, "asc" ]],

View File

@ -73,7 +73,7 @@
[% INCLUDE 'columns_settings.inc' %]
<script>
$(document).ready(function() {
columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
columns_settings = [% TablesSettings.GetColumns( 'opac', 'course_list', 'course_reserves_table', 'json' ) | $raw %]
KohaTable("#course_reserves_table", {
"dom": '<"top"f>rt<"clear">',
"sorting": [[ 1, "asc" ]],