Bug 10418

Summary: Correct template markup problems on course reserves add item page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/course_reserves/add_items.pl
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 10418 - Correct template markup problems on course reserves add item page
Bug 10418 - Correct template markup problems on course reserves add item page
Bug 10418 - Correct template markup problems on course reserves add item page

Description Owen Leonard 2013-06-05 13:36:34 UTC
There are issues with validity and consistency on the course reserves add item page.
Comment 1 Owen Leonard 2013-06-05 14:05:29 UTC Comment hidden (obsolete)
Comment 2 Jared Camins-Esakov 2013-06-07 12:52:33 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall 2013-06-14 17:05:10 UTC
Created attachment 19020 [details] [review]
Bug 10418 - Correct template markup problems on course reserves add item page

This patch corrects several problems with the course reserves add item
pages:

- Non-standard grid markup.
- Extra </div>.
- Incorrect styling of errors and messages.
- Redundant JS for adding focus to a field (use "focus" class).
- Invalid use of <label> with no corresponding input (use <span
  class="label"> instead).
- Incorrect capitalization.

To test, apply the patch and examing both steps of the process of adding
an item to an existing course: The initial "scan barcode" form, and the
form for editing details of a scanned item.

Some cases to check:

- Scan an invalid barcode.
- Scan a barcode which has already been added to a course.
- Scan a barcode wihch has already been added to the course you're
  working with.

Forms should look correct and work correctly.

This patch contains whitespace changes, so please ignore whitespace when
examining changes.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
The add item screen continues to work as before.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl. Works as advertised.
Comment 4 Galen Charlton 2013-06-14 18:25:11 UTC
Pushed to master.  Thanks, Owen!