Bugzilla – Attachment 130568 Details for
Bug 29282
Show items.issue and items.renewals in the holdings table on the detail page in the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29282: Add issues and renewals columns to holdings tbale on details page
Bug-29282-Add-issues-and-renewals-columns-to-holdi.patch (text/plain), 3.64 KB, created by
Nick Clemens (kidclamp)
on 2022-02-14 19:30:25 UTC
(
hide
)
Description:
Bug 29282: Add issues and renewals columns to holdings tbale on details page
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-02-14 19:30:25 UTC
Size:
3.64 KB
patch
obsolete
>From fc927c520c421aaf345c8de833a4c0893c26babc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 14 Feb 2022 19:14:58 +0000 >Subject: [PATCH] Bug 29282: Add issues and renewals columns to holdings tbale > on details page > >To test: > 1 - Apply patch, restart all > 2 - View a record with items in the staff client > 3 - Note issues and renewals columns not shown > 4 - Click the gear to edit visible columns > 5 - Issues and renewals are present and hidden > 6 - Click to view columns > 7 - Confirm counts show, or 0 if item has not circulated/been renewed > 8 - Circulate/renew an item > 9 - Verify counts increase >10 - Make columns visible by default in Admin->Table settings >11 - Confirm columns show by default on details page >--- > admin/columns_settings.yml | 6 ++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++++ > 2 files changed, 10 insertions(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 9b0982d264..56932cc4d9 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -322,6 +322,12 @@ modules: > columnname: holdings_status > - > columnname: holdings_lastseen >+ - >+ columnname: holdings_issues >+ is_hidden: 1 >+ - >+ columnname: holdings_renewals >+ is_hidden: 1 > - > columnname: holdings_dateaccessioned > - >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 3b56260668..5cbc15d1c1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -325,6 +325,8 @@ > [% END %] > <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th> > <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th> >+ <th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th> >+ <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 %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th> >@@ -507,6 +509,8 @@ Note that permanent location is a code, and location may be an authval. > > </td> > <td class="datelastseen" data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</td> >+ <td class="issues_field" data-order="[% item.issues || 0 | html %]">[% item.issues || 0 | html %]</td> >+ <td class="renewals_field" 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><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td> >-- >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 29282
:
130568
|
131373
|
134981
|
135042
|
135043
|
136155
|
136156
|
136157