Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 0b5b8cef34 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>
2014-03-12 14:52:18 +00:00
..
acqui Bug 11170: (follow-up) fix typo 'occured' in parcels.tt 2014-03-11 15:10:35 +00:00
admin Bug 1047: Punctuation in site names no longer breaks Edit/Delete z39.50 server administration 2014-03-12 14:29:22 +00:00
authorities Bug 10691: use authority ID in see-also links in authority search results (staff) 2014-01-16 22:35:58 +00:00
basket Bug 9218: fix intranet cart email for non english templates 2013-10-31 23:53:25 +00:00
batch Bug 9210: wrap long lines in printed hold notices 2014-01-15 15:51:44 +00:00
catalogue Bug 11328 - Show local cover images in staff client search results 2014-03-10 15:16:06 +00:00
cataloguing Bug 11710 - Use new DataTables include in cataloging Z39.50 search template 2014-02-27 15:34:12 +00:00
circ Bug 11359: Add the borrower's cardnumber and phonenumber to the branch overdues report 2014-03-10 20:25:26 +00:00
course_reserves Bug 11605: fallback to default DataTables settings where possible 2014-03-10 19:05:51 +00:00
errors
help Bug 11648 - Use word item instead of copy - intranet 2014-03-12 14:21:15 +00:00
installer Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
labels Bug 11716 - Use new DataTables include in label manage template 2014-02-27 15:38:58 +00:00
members Bug 108661: (follow-up) enshrine letting CardnumberLength specify just a maximum 2014-03-12 04:07:03 +00:00
offline_circ Bug 10288 - Fix a tiny typo on "Pending offline circulation actions" 2013-05-20 12:23:32 -07:00
patron_lists Bug 11670 - Remove sorting from patron lists action columns 2014-02-10 15:59:27 +00:00
patroncards Bug 9924 - Simplify and rename patron card creator error message include 2013-09-08 19:19:23 +00:00
plugins
reports Bug 11833 - fix filtering on saved report subgroup 2014-03-12 14:33:17 +00:00
reserve Bug 11832: fix JavaScript error on staff client place hold screen if record has no items 2014-03-12 14:52:18 +00:00
reviews
rotating_collections
serials Bug 10837: make it possible to export serial claims as CSV even when no notice defined 2014-03-11 16:49:44 +00:00
services Bug 10475 - Item form in acquisition not hiding subfields properly 2013-07-12 20:40:15 +00:00
sms
suggestion Bug 11686: make "please note your reason here..." translatable 2014-03-12 14:26:36 +00:00
tags Bug 11605: fallback to default DataTables settings where possible 2014-03-10 19:05:51 +00:00
test Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools Bug 11648 - Use word item instead of copy - intranet 2014-03-12 14:21:15 +00:00
virtualshelves Bug 11789 - Use validation plugin when creating new list 2014-02-21 20:14:00 +00:00
z3950
about.tt Bug 11772: (follow-up) make warning about no active currency a link to currency setup page 2014-02-18 20:59:56 +00:00
auth.tt Bug 11146: Show a go back link on no permission page 2013-11-23 19:43:37 +00:00
intranet-main.tt Bug 10888: Don't hide authorities module from users who lack permission to edit authorities 2013-09-21 17:59:05 +00:00