Bugzilla – Attachment 165265 Details for
Bug 36182
Add vendor column to holdings table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36182: Add booksellerid columns to holdings table
Bug-36182-Add-booksellerid-columns-to-holdings-tab.patch (text/plain), 3.53 KB, created by
Pedro Amorim
on 2024-04-22 11:23:58 UTC
(
hide
)
Description:
Bug 36182: Add booksellerid columns to holdings table
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-04-22 11:23:58 UTC
Size:
3.53 KB
patch
obsolete
>From 89861de57646846ae4851c6a676cd67dc6879dc9 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 22 Apr 2024 11:21:20 +0000 >Subject: [PATCH] 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 >--- > admin/columns_settings.yml | 6 ++++++ > .../html_helpers/tables/items/catalogue_detail.inc | 10 ++++++++++ > 2 files changed, 16 insertions(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 1ae17d384b2..1615552223c 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -406,6 +406,9 @@ modules: > columnname: holdings_dateaccessioned > - > columnname: holdings_datelastborrowed >+ - >+ columnname: holdings_booksellerid >+ is_hidden: 1 > - > columnname: holdings_barcodes > - >@@ -469,6 +472,9 @@ modules: > columnname: otherholdings_dateaccessioned > - > columnname: otherholdings_datelastborrowed >+ - >+ columnname: otherholdings_booksellerid >+ is_hidden: 1 > - > columnname: otherholdings_barcode > - >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >index 4ce28881209..9b7bc5d87c3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >@@ -28,6 +28,7 @@ > <th id="[% tab | html %]_renewals" data-colname="[% tab | html %]_renewals">Renewals</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> >@@ -596,6 +597,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: "", >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36182
:
162515
|
162519
|
165265
|
165485
|
166276
|
166277
|
174399
|
174400