]> git.koha-community.org Git - koha.git/commit
Bug 11832: fix JavaScript error on staff client place hold screen if record has no...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 24 Feb 2014 16:35:52 +0000 (11:35 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 13:30:46 +0000 (09:30 -0400)
commitfee8fc3193fba871f4c24f48ba6c8738543c3eea
tree1b07c542f7d5f5e47cf80cf9876cc232bcd5d468
parent1c01f5d502d129dd1b8e376ba06d0b7472191f8b
Bug 11832: fix JavaScript error on staff client place hold screen if record has no items

If a hold operation is blocked because the title has no items attached
the patron search autocomplete JavaScript triggers an error. This patch
modifies the template so that the JS is loaded only when items are
present.

To test, find a title which has no items attached. View the holds page
for that title. There should be no JavaScript error. Patron search
autocomplete should still work correctly for titles which have items
attached.

Deleted all items from a biblio record. Clicked the holds tab and
confirmed using firebug Javascript error occurs. Applied patch,
confirmed that the Javascript error described in comment 1 no
longer happens. Went to another biblio with items, and confirmed
patron auto-complete still functions.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 0b5b8cef348b61761305dd0bbc574699404c7c69)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 07dc616de5a7483f4fe061c046c55ae7d880c7cb)
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt