Bugzilla – Attachment 63586 Details for
Bug 18644
Translatability: Get rid of pure template directives in translation for memberentrygen.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18644: Get rid of template directives when translating memberentrygen.tt
Bug-18644-Get-rid-of-template-directives-when-tran.patch (text/plain), 6.57 KB, created by
Marc Véron
on 2017-05-20 10:33:27 UTC
(
hide
)
Description:
Bug 18644: Get rid of template directives when translating memberentrygen.tt
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-05-20 10:33:27 UTC
Size:
6.57 KB
patch
obsolete
>From cd7e7dde40727b2a7ba0cae53cd5c6c112608225 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sat, 20 May 2017 12:32:09 +0200 >Subject: [PATCH] Bug 18644: Get rid of template directives when translating > memberentrygen.tt > >Work in progress, not yet ready for testing. >--- > .../prog/en/modules/members/memberentrygen.tt | 32 ++++++---------------- > 1 file changed, 9 insertions(+), 23 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 5045714..92c00a3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -232,8 +232,8 @@ $(document).ready(function() { > <input type="hidden" name="updtype" value="[% updtype %]" /> > <input type="hidden" name="destination" value="[% destination %]" /> > <input type="hidden" name="check_member" value="[% check_member %]" /> >-<input type="hidden" name="borrowernumber" value="[% UNLESS opduplicate %][% borrowernumber %][% END %]" /> >-<input type="hidden" name="nodouble" value="[% UNLESS opduplicate %][% nodouble %][% END %]" /> >+<input type="hidden" name="borrowernumber" value="[%- borrowernumber UNLESS opduplicate -%]" /> >+<input type="hidden" name="nodouble" value="[%- nodouble UNLESS opduplicate -%]" /> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> > [% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %] > [% IF ( opadd ) %]<input type="hidden" name="op" value="insert" /> >@@ -304,25 +304,11 @@ $(document).ready(function() { > <label for="firstname"> > [% END %] > First name: </label> >- <input type="text" id="firstname" name="firstname" size="20" value="[% UNLESS opduplicate %][% firstname | html %][% END %]" /> >+ <input type="text" id="firstname" name="firstname" size="20" value="[%- firstname UNLESS opduplicate -%]" /> > [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] > [% UNLESS nodateofbirth %] >- <li> >- [% IF ( mandatorydateofbirth ) %] >- <label for="dateofbirth" class="required"> >- [% ELSE %] >- <label for="dateofbirth"> >- [% END %] >- Date of birth: </label> >- >- <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% UNLESS opduplicate %][% dateofbirth %][% END %]" class="datepicker" /> >- >- [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %] >- [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %] >- <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >- </li> > [% END %] > [% UNLESS noinitials %] > <li> >@@ -332,7 +318,7 @@ $(document).ready(function() { > <label for="initials"> > [% END %] > Initials: </label> >- <input type="text" id="initials" name="initials" size="20" value="[% UNLESS opduplicate %][% initials | html %][% END %]" /> >+ <input type="text" id="initials" name="initials" size="20" value="[%- initials | html UNLESS opduplicate -%]" /> > [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -345,7 +331,7 @@ $(document).ready(function() { > <label for="othernames"> > [% END %] > Other name: </label> >- <input type="text" id="othernames" name="othernames" size="20" value="[% UNLESS opduplicate %][% othernames | html %][% END %]" /> >+ <input type="text" id="othernames" name="othernames" size="20" value="[%- othernames | html UNLESS opduplicate %]" /> > [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] > [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] > </li> >@@ -781,13 +767,13 @@ $(document).ready(function() { > Expiry date (leave blank for auto calc): </label> > [% IF ( dateformat == "metric" ) %] > [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" /> >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[%- dateexpiry UNLESS opduplicate -%]" class="datepickerto" /> > [% ELSE %] > <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> > [% END %] > [% ELSE %] > [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% UNLESS opduplicate %][% dateexpiry %][% END %]" class="datepickerto" /> >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[%- dateexpiry UNLESS opduplicate -%]" class="datepickerto" /> > [% ELSE %] > <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" class="datepickerto" /> > [% END %] >@@ -804,7 +790,7 @@ $(document).ready(function() { > <label for="opacnote"> > [% END %] > OPAC note: </label> >- <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% UNLESS opduplicate %][% opacnote | html %][% END %]</textarea> >+ <textarea id="opacnote" name="opacnote" cols="55" rows="5">[%- opacnote | html UNLESS opduplicate -%]</textarea> > <div class="hint">This message appears on this patron's user page in the OPAC</div> > [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] > </li> >@@ -817,7 +803,7 @@ $(document).ready(function() { > <label for="borrowernotes"> > [% END %] > Circulation note: </label> >- <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% UNLESS opduplicate %][% borrowernotes | html %][% END %]</textarea> >+ <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[%- borrowernotes | html UNLESS opduplicate -%]</textarea> > <div class="hint">This message displays when checking out to this patron</div> > [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] > </li> >-- >2.1.4
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 18644
:
63586
|
63839
|
63991