Bugzilla – Attachment 164422 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.31 KB, created by
ByWater Sandboxes
on 2024-04-04 13:01:17 UTC
(
hide
)
Description:
Bug 26654: Added item number column to item search
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2024-04-04 13:01:17 UTC
Size:
6.31 KB
patch
obsolete
>From deb7703437ea0818efb63e21d6e708e052db5fe4 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> >--- > .../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 e59eca534e..380361f6f5 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 5ef1019911..5a26d3f23e 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 f1f4ebc79a..d04bb8a1c1 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("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("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 2b064b157f..d103ab8360 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>' >@@ -496,6 +497,7 @@ > { 'name': 'publishercode' }, > { 'name': 'ccode' }, > { 'name': 'barcode' }, >+ { 'name': 'itemnumber' }, > { 'name': 'enumchron' }, > { 'name': 'itemcallnumber' }, > { 'name': 'homebranch' }, >@@ -531,6 +533,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.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 26654
:
111436
|
164419
|
164422
|
166603