Bugzilla – Attachment 144882 Details for
Bug 32421
Add collection ( ccode ) column to holds to pull
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32421: Add collection column to holds to pull
Bug-32421-Add-collection-column-to-holds-to-pull.patch (text/plain), 3.12 KB, created by
Katrin Fischer
on 2022-12-28 22:00:15 UTC
(
hide
)
Description:
Bug 32421: Add collection column to holds to pull
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-12-28 22:00:15 UTC
Size:
3.12 KB
patch
obsolete
>From 2ec6dd178f1088dd960d8d126055caf3213d3b6f Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 7 Dec 2022 18:41:26 +0000 >Subject: [PATCH] Bug 32421: Add collection column to holds to pull > >To test: > >1. Place some holds >2. Go to Circulation > Holds to pull >3. Notice there is not column to indicate collection ( CCODE ) >4. Apply patch and restart services >5. Step 2 again, this time you should see a column for holds to pull >6. Using both the Columns button and via 'Table setting' attempt to hide the column and other columns. Ensure everything is being heiiden correctly. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > admin/columns_settings.yml | 2 ++ > circ/pendingreserves.pl | 1 + > .../prog/en/modules/circ/pendingreserves.tt | 9 +++++++++ > 3 files changed, 12 insertions(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index ec2a21dcd3..4953c0d4f1 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1569,6 +1569,8 @@ modules: > columnname: current_location > - > columnname: shelving_location >+ - >+ columnname: collection > - > columnname: call_number > - >diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl >index 07df53bc3c..25910aaa3c 100755 >--- a/circ/pendingreserves.pl >+++ b/circ/pendingreserves.pl >@@ -269,6 +269,7 @@ foreach my $bibnum ( @biblionumbers ){ > > # get available values for each biblio > my $fields = { >+ collections => 'ccode', > locations => 'location', > callnumbers => 'itemcallnumber', > enumchrons => 'enumchron', >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 89072074a0..9e11d4b71e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -80,6 +80,7 @@ > <th>Available enumeration</th> > <th class="string-sort">Available item types</th> > <th class="string-sort">Available locations</th> >+ <th class="string-sort">Available collections</th> > <th>Earliest hold date</th> > <th>Hold notes</th> > <th class="string-sort">Pickup location</th> >@@ -191,6 +192,13 @@ > [% END %] > </ul> > </td> >+ <td> >+ <ul> >+ [% FOREACH ccode IN hold_info.collections %] >+ <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ccode ) | html %]</li> >+ [% END %] >+ </ul> >+ </td> > <td data-order="[% hold.reservedate | html %]"> > [% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %] > </td> >@@ -259,6 +267,7 @@ > <td id="locationfilter"></td> > <td></td> > <td></td> >+ <td></td> > <td id="pickup-location"></td> > <td></td> > </tr> >-- >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 32421
:
144486
|
144500
|
144501
|
144882
|
144883
|
148160