Bugzilla – Attachment 161627 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), 3.15 KB, created by
Julian Maurice
on 2024-01-30 10:41:44 UTC
(
hide
)
Description:
Bug 33035: Add volume column in the item bundle table
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-01-30 10:41:44 UTC
Size:
3.15 KB
patch
obsolete
>From f3244d67d14bed62148cd1ce83a9762f3ab746a2 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> >--- > admin/columns_settings.yml | 2 ++ > api/v1/swagger/paths/items.yaml | 1 + > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 9 ++++++++- > 3 files changed, 11 insertions(+), 1 deletion(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index dd6396671fe..55348e4000f 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -556,6 +556,8 @@ modules: > columnname: author > - > columnname: callnumber >+ - >+ columnname: volume > - > columnname: barcode > - >diff --git a/api/v1/swagger/paths/items.yaml b/api/v1/swagger/paths/items.yaml >index 3f4677a9a35..5fceccfdf84 100644 >--- a/api/v1/swagger/paths/items.yaml >+++ b/api/v1/swagger/paths/items.yaml >@@ -249,6 +249,7 @@ > type: string > enum: > - biblio >+ - biblio.biblioitem > - checkout > - return_claims > - return_claim >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 c308b2b1595..85313720026 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -1864,11 +1864,12 @@ > }, > "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(); >@@ -1898,6 +1899,12 @@ > "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