Bugzilla – Attachment 57107 Details for
Bug 17516
Add CSV export option to item search *after* displaying output to screen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17516 - Add CSV export option to item search after displaying output to screen
Bug-17516---Add-CSV-export-option-to-item-search-a.patch (text/plain), 1.98 KB, created by
Claire Gravely
on 2016-11-02 17:35:46 UTC
(
hide
)
Description:
Bug 17516 - Add CSV export option to item search after displaying output to screen
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2016-11-02 17:35:46 UTC
Size:
1.98 KB
patch
obsolete
>From fc20a384edbc3e051ff1fc65a7fe9649ec5aef4d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 31 Oct 2016 13:50:16 +0000 >Subject: [PATCH] Bug 17516 - Add CSV export option to item search after > displaying output to screen > >To test: >1 - Perform an item search >2 - Note you now have a link to output to csv >3 - Click that link >4 - Page should not change and you should recieve a csv >5 - Ensure nothing breaks >6 - Sign off > High five! > >Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> >--- > .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >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 55f553e..646a05f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -228,7 +228,8 @@ > + '</table>'; > var results_heading = "<h1>" + _("Item search results") + "</h1>"; > results_heading += "<p><a href=\"/cgi-bin/koha/catalogue/search.pl\">" + _("Go to advanced search") + "</a></p>"; >- results_heading += "<p><a class=\"editsearchlink\" href=\"#\">" + _("Edit search") + "</a></p>"; >+ results_heading += "<p><a class=\"editsearchlink\" href=\"#\">" + _("Edit search") + "</a>"; >+ results_heading += " | <a class=\"resultstocsv\" href=\"#\">" + _("Output results to csv") + "</a></p>"; > $('#results-wrapper').empty().html(results_heading + table); > > var params = []; >@@ -353,6 +354,15 @@ > $(this).hide(); > return false; > }); >+ >+ $("body").on("click",".resultstocsv",function(e) { >+ e.preventDefault(); >+ $('#format-csv').prop("checked",true); >+ $('#itemsearchform').submit(); >+ hideForm(); >+ $('#format-html').prop("checked",true); >+ return false; >+ }); > }); > //]]> > </script> >-- >2.1.4
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 17516
:
56998
|
57107
|
57724