Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Julian Maurice 7c2ff7940e Bug 11425: Add item search form in staff interface
Item search is available at catalogue/itemsearch.pl (link is in
catalogue/search.pl)
It only uses SQL (not Zebra)
* Use DataTables and server-side processing to be able to filter on
  individual columns after the first search is done.
* Allow to export results in CSV
* With Javascript disabled, search form still works (and CSV export too)

There is the possibility to define "Custom search fields" in a new admin
page admin/items_search_fields.pl (link is in admin/admin-home.pl)
A custom item search field is defined by:
* a name: its unique identifier
* a label: the text displayed to the user
* a MARC field/subfield: the field/subfield to query (it uses
  ExtractValue)
* an authorised values list (optional): if defined the list is displayed
  in the search form

New Perl dependency: Template::Plugin::JSON::Escape

Test plan:
1/ Apply the patch and run updatedatabase.pl
2/ Go to advanced search (staff interface), then click on "Go to item
search"
3/ Play with the search form! :)
In the 3rd fieldset you can add as many fields as you want and combine them with
boolean operators (AND, OR). You can use SQL jokers characters (%, _)
You can output to screen (in a DataTables table) or to a CSV file.
4/ In the DataTables table, play with filters and try sorting columns.
5/ Disable Javascript (with Firefox: extensions NoScript or YesScript,
or in about:config 'javascript.enabled' = false
6/ Reload the search page and do some searches on screen output. (there
is no sorting or filtering features, but there is still pagination)
7/ Try again CSV output.
8/ You can re-enable Javascript.
9/ Go to Administration > Items search fields
10/ Add a new field. Example for title (in UNIMARC):
  Name: title
  Label: Title
  MARC field: 200
  MARC subfield: a
  Authorised values category: None
(add another field with an authorised values category to see the
difference).
11/ As you are there try to update and delete some fields.
12/ Go back to items search form. You can see in the 3rd fieldset that
your fields have appeared in the selects.
13/ Try searching on them.
14/ I think you're done :)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. Good new option.
No koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2014-11-04 19:08:12 -03:00
..
acqui Bug 13065 - Receive shipment error message incorrectly styled 2014-10-31 15:45:46 -03:00
admin Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
authorities Bug 12708 - Unexpected behaviour in IE 9 and lower when using openWindow 2014-08-19 09:31:25 -03:00
basket Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
batch
catalogue Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
cataloguing Bug 13129 - HTML and JS escapes missing in unimarc_field_4XX.tt 2014-10-28 10:51:49 -03:00
circ Bug 13184 - Circulation template problems if OnSiteCheckouts is off but OnSiteCheckoutsForce is on 2014-11-03 11:39:51 -03:00
course_reserves Bug 12635 - Course reserves item list should use "Checked out" instead of "On Loan" 2014-08-07 11:03:56 -03:00
errors
help Bug 12862: Staff client tweaks related to obsolete language="javascript" 2014-10-18 11:13:01 -03:00
installer Bug 12658: Wording of link text and translatability inside JavaScript 2014-08-15 15:36:11 -03:00
labels Bug 12589 - Manage label batch view should show item type description instead of code 2014-08-19 12:44:55 -03:00
members Bug 10860 [QA Followup] - Rename system preferences 2014-11-03 10:26:41 -03:00
offline_circ
patron_lists ug 11857 - Number of patrons on a patron list not accurate 2014-07-02 15:44:14 -03:00
patroncards Bug 5502 - Patron card category search field should be menu 2014-08-10 09:30:47 -03:00
plugins
reports Bug 13161 - Report name should be mandatory when editing saved reports 2014-10-30 00:39:30 -03:00
reserve Bug 10883 - AllowHoldDateInFuture can let a patron jump to the top of the holds list 2014-09-17 20:12:49 -03:00
reviews
rotating_collections
serials Bug 5342: (qa-followup) FIX some issues 2014-10-28 10:07:44 -03:00
services Bug 12673: Remove CGI::scrolling_list from C4::Items.pm 2014-08-03 17:21:08 -03:00
sms
suggestion Bug 12937 [Follow-up] Deleting suggestions should ask for a confirmation 2014-09-23 21:26:52 -03:00
tags
test
tools Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
virtualshelves Bug 12405 - Search links on callnumber fails on intranet results page 2014-09-18 09:43:16 -03:00
about.tt Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
auth.tt
intranet-main.tt