Bugzilla – Attachment 166603 Details for
Bug 26654
Add item number column to item search results and CSV export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26654: Added item number column to item search
Bug-26654-Added-item-number-column-to-item-search.patch (text/plain), 6.49 KB, created by
Nick Clemens (kidclamp)
on 2024-05-10 18:57:04 UTC
(
hide
)
Description:
Bug 26654: Added item number column to item search
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-10 18:57:04 UTC
Size:
6.49 KB
patch
obsolete
>From 89865ac28d162edb69122142f538b4bad71c91ad Mon Sep 17 00:00:00 2001 >From: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Date: Thu, 4 Apr 2024 12:31:59 +0000 >Subject: [PATCH] Bug 26654: Added item number column to item search > >Test plan: >1. Apply patch >2. Do an item search and notice the column containing the item number > >Signed-off-by: Michelle Spinney <mspinney@clamsnet.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../prog/en/includes/catalogue/itemsearch_item.csv.inc | 2 ++ > .../prog/en/includes/catalogue/itemsearch_item.json.inc | 1 + > .../prog/en/includes/csv_headers/catalogue/itemsearch.tt | 2 +- > .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 3 +++ > 4 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >index 3cb0118beee..a08f8e2eabc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >@@ -17,6 +17,8 @@ > [%- delimiter | $raw -%] > "[% item.barcode | replace('"', '""') | $raw %]" > [%- delimiter | $raw -%] >+"[% item.itemnumber | replace('"', '""') | $raw %]" >+[%- delimiter | $raw -%] > "[% item.enumchron | replace('"', '""') | $raw %]" > [%- delimiter | $raw -%] > "[% item.itemcallnumber | replace('"', '""') | $raw %]" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >index ef09d7d5064..08ca9f76d07 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >@@ -19,6 +19,7 @@ > "[% FILTER escape_quotes ~%] > <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]#item[% item.itemnumber | uri %]" title="Go to item details">[% item.barcode | html %]</a> > [%~ END %]", >+ "[% item.itemnumber | html %]", > "[% item.enumchron | html %]", > "[% item.itemcallnumber | html %]", > "[% Branches.GetName(item.homebranch) | html %]", >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt >index 43e16d2229a..502470d8548 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt >@@ -3,5 +3,5 @@ > [%- PROCESS 'i18n.inc' -%] > [%- SET delimiter = Koha.CSVDelimiter() -%] > [%- BLOCK -%] >- "[% t("Title") | html %]"[%- delimiter | $raw -%]"[% t("Publication date") | html %]"[%- delimiter | $raw -%]"[% t("Publisher") | html %]"[%- delimiter | $raw -%]"[% t("Collection") | html %]"[%- delimiter | $raw -%]"[% t("Barcode") | html %]"[%- delimiter | $raw -%]"[% t("Serial enumeration") | html %]"[%- delimiter | $raw -%]"[% t("Call number") | html %]"[%- delimiter | $raw -%]"[% t("Home library") | html %]"[%- delimiter | $raw -%]"[% t("Current library") | html %]"[%- delimiter | $raw -%]"[% t("Shelving location") | html %]"[%- delimiter | $raw -%]"[% t("Item type") | html %]"[%- delimiter | $raw -%]"[% t("Inventory number") | html %]"[%- delimiter | $raw -%]"[% t("Not for loan status") | html %]"[%- delimiter | $raw -%]"[% t("Lost status") | html %]"[%- delimiter | $raw -%]"[% t("Withdrawn status") | html %]"[%- delimiter | $raw -%]"[% t("Damaged status") | html %]"[%- delimiter | $raw -%]"[% t("Checkouts") | html %]"[%- delimiter | $raw -%]"[% t("Last checkout date") | html %]"[%- delimiter | $raw -%]"[% t("Due date") | html %]" >+ "[% t("Title") | html %]"[%- delimiter | $raw -%]"[% t("Publication date") | html %]"[%- delimiter | $raw -%]"[% t("Publisher") | html %]"[%- delimiter | $raw -%]"[% t("Collection") | html %]"[%- delimiter | $raw -%]"[% t("Barcode") | html %]"[%- delimiter | $raw -%]"[% t("Item number") | html %]"[%- delimiter | $raw -%]"[% t("Serial enumeration") | html %]"[%- delimiter | $raw -%]"[% t("Call number") | html %]"[%- delimiter | $raw -%]"[% t("Home library") | html %]"[%- delimiter | $raw -%]"[% t("Current library") | html %]"[%- delimiter | $raw -%]"[% t("Shelving location") | html %]"[%- delimiter | $raw -%]"[% t("Item type") | html %]"[%- delimiter | $raw -%]"[% t("Inventory number") | html %]"[%- delimiter | $raw -%]"[% t("Not for loan status") | html %]"[%- delimiter | $raw -%]"[% t("Lost status") | html %]"[%- delimiter | $raw -%]"[% t("Withdrawn status") | html %]"[%- delimiter | $raw -%]"[% t("Damaged status") | html %]"[%- delimiter | $raw -%]"[% t("Checkouts") | html %]"[%- delimiter | $raw -%]"[% t("Last checkout date") | html %]"[%- delimiter | $raw -%]"[% t("Due date") | html %]" > [%- END -%] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index eeb9145293f..59b4c9225a4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -377,6 +377,7 @@ > + ' <th id="items_publisher">' + _("Publisher") + '</th>' > + ' <th id="items_collection">' + _("Collection") + '</th>' > + ' <th id="items_barcode">' + _("Barcode") + '</th>' >+ + ' <th id="items_itemnumber">' + _("Item number") + '</th>' > + ' <th id="items_enumchron">' + _("Serial enumeration") + '</th>' > + ' <th id="items_callno">' + _("Call number") + '</th>' > + ' <th id="items_homebranch">' + _("Home library") + '</th>' >@@ -501,6 +502,7 @@ > { 'name': 'publishercode' }, > { 'name': 'ccode' }, > { 'name': 'barcode' }, >+ { 'name': 'itemnumber' }, > { 'name': 'enumchron' }, > { 'name': 'itemcallnumber' }, > { 'name': 'homebranch' }, >@@ -537,6 +539,7 @@ > { 'type': 'text' }, > { 'type': 'text' }, > { 'type': 'text' }, >+ { 'type': 'text' }, > { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => branches %] }, > { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => branches %] }, > [% IF locations.size %] >-- >2.39.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 26654
:
111436
|
164419
|
164422
| 166603