Bugzilla – Attachment 93385 Details for
Bug 23713
Subscription add form broken for translations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23713: Subscription add form broken for translations
Bug-23713-Subscription-add-form-broken-for-transla.patch (text/plain), 2.24 KB, created by
Owen Leonard
on 2019-10-01 16:22:58 UTC
(
hide
)
Description:
Bug 23713: Subscription add form broken for translations
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-10-01 16:22:58 UTC
Size:
2.24 KB
patch
obsolete
>From 3220847cc8df15af22e09f51d6fb715966048492 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 1 Oct 2019 15:55:19 +0000 >Subject: [PATCH] Bug 23713: Subscription add form broken for translations > >This patch makes a change to the subscription entry template as a >workaround to a translation bug which is causing JavaScript errors when >using translated templates. > >To test, apply the patch and update and install the de-DE template: > >> cd misc/translator >> perl translate update de-DE >> perl translate install de-DE > > - Go to Administration -> System preferences and enable the "Deutsch > (de-DE)" language under I18N/L10N preferences -> language. > - Switch to the "Deutsch" translation. > - Go to Zeitschriften (Serials) -> Neues Abonnement (New subscription) > and open the browser console. There should be no errors. > - Links which trigger JavaScript events should work correctly: > "Lieferant suchen," "Nach Datensatz suchen," etc. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >index 9aa7248c7ae..43eb7b3f417 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >@@ -526,7 +526,11 @@ fieldset.rows table { clear: none; margin: 0; } > [% FOREACH field IN dont_export_field_loop %] > tags.push("[% field.fieldid | html %]"); > [% END %] >- var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %]0[% END %]; >+ [%- IF (Koha.Preference('Mana') == 1 && mana_url) -%] >+ var mana_enabled = 1; >+ [%- ELSE -%] >+ var mana_enabled = 0; >+ [%- END -%] > var MSG_LINK_TO_VENDOR = _("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"); > var MSG_LINK_BIBLIO = _("You must choose or create a bibliographic record"); > var MSG_REQUIRED_SUB_LENGTH = _("You must choose a subscription length or an end date."); >-- >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 23713
:
93385
|
93399
|
93400
|
93536
|
93537
|
93538
|
93539