Koha/koha-tmpl/intranet-tmpl/prog/en/js
Owen Leonard fd74b271db Bug 15887: Revise layout and behavior of item search fields management
This patch adds some JavaScript to the item search fields management
page so that the add form is not displayed by default. This simplifies
the interface and makes it more consistent with other similar
interfaces.

Also changed in this patch:
- Changing instances of "Items search fields" to "Item search fields."
- Correct form structure to use ordered list
- Add "required" classes and enable built-in JS form validation.
- Add explicitly labeled "Choose" options to <select>s.
- Add missing ids to form fields (labels don't work without them).
- Correct classes of message and alert dialogs.
- Add JS confirmation of deletions.
- Convert MARC tag and subfield dropdowns to regular inputs (Bug 15384).

To test, apply the patch and go to Administration.

- Confirm that the "Item search fields" link is correct.
- Follow the link and confirm that the list of existing fields is shown
  by default, or a message saying there are no existing fields.
- Click the "New search field" button and confirm that it displays the
  entry form.
  - Confirm that submitting an empty form does not work.
  - Confirm that clicking the "Cancel" link correctly hides the form.
  - Confirm that submitting valid data works correctly.
- In the table of existing item search fields, confirm that the "Edit"
  button works correctly.
  - Confirm that submitting edits works correctly.
- In the table of existing item search fields, confirm that clicking
  "Delete" highlights the row in question and a confirmation dialog
  appears.
  - Test both canceling and confirming deletion.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as described. JSHint OK, koha-qa OK.

Revision per QA: Undid the change making tag and subfield inputs text
fields.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-03-02 22:36:17 +00:00
..
pages 15617 - Be able to close "Click to edit" text boxes after opening them 2016-01-27 05:33:12 +00:00
acq.js
additem.js
ajax.js
background-job-progressbar.js
basket.js Bug 15847: Correct JSHint errors in basket.js in the staff client 2016-02-24 01:20:03 +00:00
basketgroup.js
cataloging.js
checkouts.js Bug 15285: Update for 3 specific tables 2016-02-24 00:02:50 +00:00
datatables.js Bug 15916: Datatables - buttons area should be defined 2016-03-02 00:50:40 +00:00
file-upload.js
holds.js Bug 14310 [QA Followup] - Deal with error conditions 2016-01-27 06:20:19 +00:00
item_search_fields.js Bug 15887: Revise layout and behavior of item search fields management 2016-03-02 22:36:17 +00:00
localcovers.js
marc_modification_templates.js Bug 15867: Move MARC modification templates JavaScript into separate file 2016-03-02 03:19:30 +00:00
marc_subfields_structure.js Bug 15843: Move MARC subfields structure JavaScript into separate file 2016-02-24 01:30:56 +00:00
members.js Bug 15692 - Move some patron entry form JavaScript into members.js 2016-02-24 02:01:20 +00:00
merge-record.js
offlinecirc.js
prevent_submit.js
staff-global.js Bug 15910 - Move header search keep text JavaScript into staff-global.js 2016-03-02 03:50:00 +00:00
xmlControlfield.js