Bugzilla – Attachment 162515 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 column to holdings table
Bug-36182-Add-booksellerid-column-to-holdings-tabl.patch (text/plain), 3.81 KB, created by
Pedro Amorim
on 2024-02-27 17:19:13 UTC
(
hide
)
Description:
Bug 36182: Add booksellerid column to holdings table
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-02-27 17:19:13 UTC
Size:
3.81 KB
patch
obsolete
>From 5e76dd9a17b11f777587a3cc21fd5c1901ca5ec9 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 27 Feb 2024 17:17:10 +0000 >Subject: [PATCH] Bug 36182: Add booksellerid column 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 >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 ++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 ++ > 2 files changed, 8 insertions(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index dd6396671fe..fcca45ad182 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -404,6 +404,9 @@ modules: > columnname: holdings_dateaccessioned > - > columnname: holdings_datelastborrowed >+ - >+ columnname: holdings_booksellerid >+ is_hidden: 1 > - > columnname: holdings_barcodes > - >@@ -467,6 +470,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/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 9764f45735d..687254b471d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -370,6 +370,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> > [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %] > [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %] >@@ -571,6 +572,7 @@ > <td class="renewals" data-order="[% item.renewals || 0 | html %]">[% item.renewals || 0 | html %]</td> > <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</td> > <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</td> >+ <td class="booksellerid" data-order="[% item.booksellerid | html %]">[% item.booksellerid | html %]</td> > <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td> > [% IF ( itemdata_uri ) %] > [% IF item.uri.split(' \| ').size > 1 %] >-- >2.30.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