Bug 36182: Add booksellerid columns to holdings table

1) Apply patch, reset_all
2) Configure holdings_table, visit:
<staff_url>/cgi-bin/koha/admin/columns_settings.pl?module=catalogue&page=detail&table=holdings_table
3) Confirm holdings_booksellerid is there and is hidden by default
4) Visit a record:
<staff_url>/cgi-bin/koha/catalogue/detail.pl?biblionumber=76
5) Edit one of the items and add a value to field 'e' Source of acquisition
5.5) You may need to click the 'show filters' link in order to have the 'Columns' table button show up
6) Go back to the record and click on the 'Columns' above the table
7) Click 'Source of acquisition'. Confirm it shows as expected

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-04-22 11:21:20 +00:00 committed by Katrin Fischer
parent d7fa540195
commit 58a471610a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 16 additions and 0 deletions

View File

@ -448,6 +448,9 @@ modules:
columnname: holdings_dateaccessioned
-
columnname: holdings_datelastborrowed
-
columnname: holdings_booksellerid
is_hidden: 1
-
columnname: holdings_barcode
-
@ -515,6 +518,9 @@ modules:
columnname: otherholdings_dateaccessioned
-
columnname: otherholdings_datelastborrowed
-
columnname: otherholdings_booksellerid
is_hidden: 1
-
columnname: otherholdings_barcode
-

View File

@ -29,6 +29,7 @@
<th id="[% tab | html %]_localuse" data-colname="[% tab | html %]_localuse">Local uses</th>
<th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
<th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
<th id="[% tab | html %]_booksellerid" data-colname="[% tab | html %]_booksellerid">Source of acquisition</th>
<th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>
<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>
@ -626,6 +627,15 @@
return $date(row.last_checkout_date);
}
},
{
data: "me.acquisition_source",
className: "booksellerid",
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row.acquisition_source);
}
},
{
data: "me.external_id",
className: "",