Bugzilla – Attachment 177751 Details for
Bug 15461
Add shelving location to holdings table as a separate column
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15461: Add stand alone shelving location column to holdings table
Bug-15461-Add-stand-alone-shelving-location-column.patch (text/plain), 3.56 KB, created by
Lucas Gass (lukeg)
on 2025-02-11 18:59:01 UTC
(
hide
)
Description:
Bug 15461: Add stand alone shelving location column to holdings table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-02-11 18:59:01 UTC
Size:
3.56 KB
patch
obsolete
>From 26aee64b5303e5d7762414c56a186ca51476c9cc Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 20 Dec 2024 21:31:54 +0000 >Subject: [PATCH] Bug 15461: Add stand alone shelving location column to > holdings table > >To test: >1. APPLY patch and restart_all >2. Go the detail page for some records and see the shelving location column. >3. Make sure the data looks correct >4. Try Table settings to make sure the column can be properly hidden > >NOTE: You cannot currently search the holdings table for AV descriptions, only the code. >Signed-off-by: David Nind <david@davidnind.com> >--- > admin/columns_settings.yml | 4 ++++ > .../html_helpers/tables/items/catalogue_detail.inc | 12 ++++++++++-- > 2 files changed, 14 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 2a632acc25b..21d66199094 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -434,6 +434,8 @@ modules: > columnname: holdingbranch > - > columnname: homebranch >+ - >+ columnname: location > - > columnname: ccode > - >@@ -505,6 +507,8 @@ modules: > columnname: holdingbranch > - > columnname: homebranch >+ - >+ columnname: location > - > columnname: ccode > - >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 c4cff843c00..8342b4bd7e2 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 >@@ -17,6 +17,7 @@ > [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="itype">Item type</th>[% END %] > <th id="[% tab | html %]_holdingbranch" data-colname="holdingbranch">Current library</th> > <th id="[% tab | html %]_homebranch" data-colname="homebranch">Home library</th> >+ <th id="[% tab | html %]_loction" data-colname="location">Shelving location</th> > <th id="[% tab | html %]_ccode" data-colname="ccode">Collection</th> > [% IF Koha.Preference('EnableItemGroups') %] > <th id="[% tab | html %]_item_group" data-colname="item_group">Item group</th> >@@ -398,8 +399,15 @@ > searchable: true, > orderable: true, > render: function (data, type, row, meta) { >- let nodes = '<span class="homebranchdesc">%s</span>'.format(escape_str(row._strings.home_library_id ? row._strings.home_library_id.str : row.home_library_id)); >- nodes += '<span class="shelvingloc">' >+ return escape_str(row._strings.home_library_id ? row._strings.home_library_id.str : row.home_library_id); >+ } >+ }, >+ { >+ data: "me.location", >+ searchable: true, >+ orderable: true, >+ render: function (data, type, row, meta) { >+ let nodes = '<span class="shelvingloc">'; > [%# If permanent location is defined, show description or code and %] > [%# display current location in parentheses. If not, display current location. %] > [%# Note that permanent location is a code, and location may be an authval. %] >-- >2.39.5
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 15461
:
162980
|
162981
|
162982
|
162987
|
162990
|
162991
|
162992
|
162993
|
165804
|
165805
|
165806
|
170238
|
170268
|
170269
|
170270
|
174011
|
174012
|
174013
|
175857
|
176142
|
176669
|
177751
|
177752
|
177756
|
177757
|
177758
|
179055
|
179056