Bug 26289: Add missing variable definition to templates
This patch puts definition of the missing "searchid" variable into an include file to be used by various bibliographic detail pages. The variable is required by several JavaScript functions. To test, apply the patch and locate or create a record with no items. Open the labeled MARC view and choose Edit -> Delete record. Confirm the deletion. The deletion should complete correctly. Perform the same test with the detail view, ISBD view, MARC view, and items view. Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
9ea7907618
commit
a4e922ffe8
|
|
@ -23,6 +23,7 @@
|
|||
[% SET cancelled = Context.Scalar(orders, "filter_by_cancelled") %]
|
||||
var countorders = [% current.count || 0 | html %];
|
||||
var countdeletedorders = [% cancelled.count || 0 | html %];
|
||||
var searchid = '[% searchid | html %]';
|
||||
|
||||
/* provide Z3950 search points */
|
||||
function GetZ3950Terms(){
|
||||
|
|
|
|||
|
|
@ -1231,7 +1231,6 @@ Note that permanent location is a code, and location may be an authval.
|
|||
[% Asset.js("js/browser.js") | $raw %]
|
||||
[% Asset.js("js/table_filters.js") | $raw %]
|
||||
<script>
|
||||
var searchid = '[% searchid | html %]';
|
||||
var browser;
|
||||
browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
|
||||
browser.show();
|
||||
|
|
|
|||
Loading…
Reference in New Issue