Bugzilla – Attachment 109130 Details for
Bug 26289
Deleting biblio in labeled MARC view doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26289: Add missing variable definition to templates
Bug-26289-Add-missing-variable-definition-to-templ.patch (text/plain), 2.16 KB, created by
Owen Leonard
on 2020-08-25 19:39:30 UTC
(
hide
)
Description:
Bug 26289: Add missing variable definition to templates
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-08-25 19:39:30 UTC
Size:
2.16 KB
patch
obsolete
>From 3313dfdefe81e7b77387bde414b4bb84ffcbbc16 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 25 Aug 2020 19:30:00 +0000 >Subject: [PATCH] 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. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 1 - > 2 files changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc >index 78980c334e..2313b932d0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc >@@ -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(){ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index db2462723b..7b22f2c36d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -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(); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26289
:
109027
|
109130
|
109187
|
109190