Bug 7889 [Authorities duplicates] Use standard style for errors and messages
authorOwen Leonard <oleonard@myacpl.org>
Thu, 17 May 2012 16:58:30 +0000 (12:58 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 16:11:55 +0000 (18:11 +0200)
commit723734513b8696cccb53eede7294b408e46d0225
tree59c2d749d400d48fab031de7f7e1cab47a38a787
parent102de837465078befaf0fd010e05df03c1c5986b
Bug 7889 [Authorities duplicates] Use standard style for errors and messages

The warning shown in the authorities editor when there is
a possible duplicate is styled incorrectly. In addition the
design of the warning is inconsistent with that shown in the
bibliographic record editor.

This patch revises the style and layout of the duplicate error
box. It also corrects a problem which appears in the biblio
and authority editors where a non-existent JS window function
was called. I have added the function to the default JS include
and revised the editor pages to use it.

To test:

- Create a record in both the cataloging and authorities
  editors which will trigger a duplicate warning.
- Click the link to the existing record. A separate window
  should pop up.
- In both editors try each option:
   - Confirm the duplicate and go to the existing record.
   - Deny that the record is duplicate and continue to save.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt