Bugzilla – Attachment 147159 Details for
Bug 33035
Add volume column in the item bundle table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33035: Add volume column in the item bundle table
Bug-33035-Add-volume-column-in-the-item-bundle-tab.patch (text/plain), 2.38 KB, created by
Lucas Gass (lukeg)
on 2023-02-22 14:21:52 UTC
(
hide
)
Description:
Bug 33035: Add volume column in the item bundle table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-02-22 14:21:52 UTC
Size:
2.38 KB
patch
obsolete
>From 14fe1179154a9af90e9046def0470caaf11c6fe3 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 22 Feb 2023 10:17:57 +0100 >Subject: [PATCH] Bug 33035: Add volume column in the item bundle table > >It can be useful for some kinds of biblio, like comic books > >Test plan: >1. Create an item bundle (see bug 28854 comment 458) >2. Make sure that a MARC subfield is mapped to biblioitems.volume >3. Create a biblio with the volume's subfield filled, and create an item > for this biblio >4. Add this item to the item bundle >5. In the table showing the bundle contents, you should see a new volume > column with your data > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >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 2e20d2e520..d6476a26c5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -1683,11 +1683,12 @@ Note that permanent location is a code, and location may be an authval. > }, > "embed": [ > "biblio", >+ "biblio.biblioitem", > "return_claim.patron" > ], > "order": [[ 1, "asc" ]], > "columnDefs": [ { >- "targets": [0,1,2,3], >+ "targets": [0,1,2,3,4], > "render": function (data, type, row, meta) { > if ( data && type == 'display' ) { > return data.escapeHtml(); >@@ -1717,6 +1718,12 @@ Note that permanent location is a code, and location may be an authval. > "searchable": true, > "orderable": true, > }, >+ { >+ "data": "biblio.biblioitem.volume", >+ "title": _("Volume"), >+ "searchable": true, >+ "orderable": true, >+ }, > { > "data": "external_id", > "title": _("Barcode"), >-- >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 33035
:
147118
|
147159
|
161627