Koha/admin
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
..
admin-home.pl Bug 12538: Remove Solr without breaking anything else 2014-10-11 16:59:04 -03:00
aqbudget_user_search.pl Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
aqbudgetperiods.pl Bug 12844: Use Koha::Number::Price where it can be useful 2014-10-27 12:56:21 -03:00
aqbudgets.pl Bug 11714: A fund is a top-level fund if it does not have any parent 2014-10-31 16:41:53 -03:00
aqcontract.pl Bug 12493: moving the subroutines GetContract and GetContracts from C4::Acquisition.pm to C4::Contract.pm 2014-07-30 10:40:06 -03:00
aqplan.pl Bug 12844: Use Koha::Number::Price where it can be useful 2014-10-27 12:56:21 -03:00
auth_subfields_structure.pl Bug 12091: HTML from auth_subfields_structure.tt doesn't pass firefox's html validator 2014-08-15 14:48:44 -03:00
auth_tag_structure.pl Bug 12612: Remove CGI::scrolling_list from auth_tag_structure.pl 2014-07-29 11:31:09 -03:00
authorised_values.pl Bug 766: Remove CGI::scrollinglist from authorised_values.pl 2014-08-13 10:11:11 -03:00
authtypes.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
biblio_framework.pl Bug 11842 - fix framework caching with memcache/plack 2014-08-19 12:53:44 -03:00
branch_transfer_limits.pl Bug 8539: Library transfer limits page has incorrect permission 2014-08-20 17:57:52 -03:00
branches.pl Bug 9350: Making changes so that you can add the new fields to branches 2014-10-27 10:38:16 -03:00
categorie.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
check_budget_parent.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
check_parent_total.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
checkmarc.pl Bug 7817: (followup) add test on MARC bibliographic framework test 2014-09-08 12:29:38 -03:00
cities.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
classsources.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
clone-rules.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
columns_settings.pl Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
columns_settings.yml Bug 10212: Columns configuration for tables - Unit tests 2014-08-26 09:28:18 -03:00
currency.pl Bug 13071: format_date should not be called in currency.pl 2014-10-24 09:46:05 -03:00
didyoumean.pl Bug 8726: ExplodedTerms suggestion plugin (functionality) 2012-09-28 17:08:21 +02:00
env_tz_test.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
fieldmapping.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
import_export_framework.pl Bug 9114: Make frameworks import/export routines correctly use UTF-8 2014-03-14 14:37:31 +00:00
item_circulation_alerts.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
items_search_field.pl Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
items_search_fields.pl Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
itemtypes.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
koha2marclinks.pl Bug 11842 - fix framework caching with memcache/plack 2014-08-19 12:53:44 -03:00
marc_subfields_structure.pl Bug 11842 - fix framework caching with memcache/plack 2014-08-19 12:53:44 -03:00
marctagstructure.pl Bug 11842 - fix framework caching with memcache/plack 2014-08-19 12:53:44 -03:00
matching-rules.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
oai_set_mappings.pl Bug 9295: Introduce operator equal/ notequal to OAI set mapping instead of hardcoded 'equal' value. 2013-10-10 23:03:30 +00:00
oai_sets.pl bug_8083: parameters subpermissions: manage_circ_rules and parameters_remaining_permissions 2012-07-23 10:43:59 +02:00
patron-attr-types.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
preferences.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
printers.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
smart-rules.pl Bug 11577: Add "Automatic renewal" to the circulation and fine rules 2014-09-17 19:23:09 -03:00
sru_modmapping.pl Bug 6536: Add a form for SRU Field mapping 2014-09-01 10:08:50 -03:00
stopwords.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
systempreferences.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
transport-cost-matrix.pl Bug 8938: Transport cost matrix script and template contain untranslatable strings 2014-08-14 20:37:37 -03:00
z3950servers.pl Bug 6536: SRU servers administration 2014-09-01 10:09:03 -03:00