Bug 14973: Add missing filters in templates

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-11-06 17:25:57 +01:00 committed by Martin Renvoize
parent 4fe524c93f
commit 52196919f2
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 23 additions and 23 deletions

View file

@ -240,12 +240,12 @@
[% IF ( op_save ) %] [% IF ( op_save ) %]
[% FOR m IN messages %] [% FOR m IN messages %]
<div class="dialog [% m.type %]"> <div class="dialog [% m.type | html %]">
[% SWITCH m.code %] [% SWITCH m.code %]
[% CASE 'biblio_exists' %] [% CASE 'biblio_exists' %]
A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id %]">[% m.title %]</a>. Click on "Confirm your suggestion" to ignore this message. A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.
[% CASE %] [% CASE %]
[% m.code %] [% m.code | html %]
[% END %] [% END %]
</div> </div>
[% END %] [% END %]
@ -457,7 +457,7 @@
[% CASE 'already_exists' %] [% CASE 'already_exists' %]
The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>) The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)
[% CASE 'biblio_exists' %] [% CASE 'biblio_exists' %]
A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id %]">[% m.title %]</a>. Click on "Confirm your suggestion" to ignore this message. A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.
[% CASE %] [% CASE %]
[% m.code | html %] [% m.code | html %]
[% END %] [% END %]

View file

@ -41,12 +41,12 @@
<p>Only certain fields (marked in red) are required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. The "Notes" field can be used to provide any additional information.</p> <p>Only certain fields (marked in red) are required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. The "Notes" field can be used to provide any additional information.</p>
[% FOR m IN messages %] [% FOR m IN messages %]
<div class="alert alert-[% m.type %]"> <div class="alert alert-[% m.type | html %]">
[% SWITCH m.code %] [% SWITCH m.code %]
[% CASE 'biblio_exists' %] [% CASE 'biblio_exists' %]
A similar document already exists: <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% m.id %]">[% m.title %]</a>. Click on "Confirm your suggestion" to ignore this message. A similar document already exists: <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.
[% CASE %] [% CASE %]
[% m.code %] [% m.code | html %]
[% END %] [% END %]
</div> </div>
[% END %] [% END %]
@ -57,73 +57,73 @@
<li> <li>
[% IF ( title_required ) %] [% IF ( title_required ) %]
<label for="title" class="required">Title:</label> <label for="title" class="required">Title:</label>
<input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title %]" required="required" /> <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="title">Title:</label> <label for="title">Title:</label>
<input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title %]" /> <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" />
[% END %] [% END %]
</li> </li>
<li> <li>
[% IF ( author_required ) %] [% IF ( author_required ) %]
<label for="author" class="required">Author:</label> <label for="author" class="required">Author:</label>
<input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author %]" required="required" /> <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="author">Author:</label> <label for="author">Author:</label>
<input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author %]" /> <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" />
[% END %] [% END %]
</li> </li>
<li> <li>
<div title="Copyright or publication year, for example: 2016"> <div title="Copyright or publication year, for example: 2016">
[% IF ( copyrightdate_required ) %] [% IF ( copyrightdate_required ) %]
<label for="copyrightdate" class="required">Copyright date:</label> <label for="copyrightdate" class="required">Copyright date:</label>
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate %]" required="required" /> <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="copyrightdate">Copyright date:</label> <label for="copyrightdate">Copyright date:</label>
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate %]" /> <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" />
[% END %] [% END %]
</div> </div>
</li> </li>
<li> <li>
[% IF ( isbn_required ) %] [% IF ( isbn_required ) %]
<label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label> <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
<input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn %]" required="required" /> <input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="isbn">Standard number (ISBN, ISSN or other):</label> <label for="isbn">Standard number (ISBN, ISSN or other):</label>
<input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn %]" /> <input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn | html %]" />
[% END %] [% END %]
</li> </li>
<li> <li>
[% IF ( publishercode_required ) %] [% IF ( publishercode_required ) %]
<label for="publishercode" class="required">Publisher:</label> <label for="publishercode" class="required">Publisher:</label>
<input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode %]" required="required" /> <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="publishercode">Publisher:</label> <label for="publishercode">Publisher:</label>
<input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode %]" /> <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" />
[% END %] [% END %]
</li> </li>
<li> <li>
[% IF ( collectiontitle_required ) %] [% IF ( collectiontitle_required ) %]
<label for="collectiontitle" class="required">Collection title:</label> <label for="collectiontitle" class="required">Collection title:</label>
<input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle %]" required="required" /> <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" required="required" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="collectiontitle">Collection title:</label> <label for="collectiontitle">Collection title:</label>
<input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle %]" /> <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" />
[% END %] [% END %]
</li> </li>
<li> <li>
[% IF ( place_required ) %] [% IF ( place_required ) %]
<label for="place" class="required">Publication place:</label> <label for="place" class="required">Publication place:</label>
<input type="text" id="place" name="place" required="required" maxlength="80" value="[% place %]" /> <input type="text" id="place" name="place" required="required" maxlength="80" value="[% place | html %]" />
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="place">Publication place:</label> <label for="place">Publication place:</label>
<input type="text" id="place" name="place" maxlength="80" value="[% place %]" /> <input type="text" id="place" name="place" maxlength="80" value="[% place | html %]" />
[% END %] [% END %]
</li> </li>
<li id="opac-suggestion-quantity"> <li id="opac-suggestion-quantity">
@ -187,11 +187,11 @@
<li> <li>
[% IF ( note_required ) %] [% IF ( note_required ) %]
<label for="note" class="required">Notes:</label> <label for="note" class="required">Notes:</label>
<textarea name="note" id="note" rows="5" cols="40" required="required">[% note %]</textarea> <textarea name="note" id="note" rows="5" cols="40" required="required">[% note | html %]</textarea>
<span class="required">Required</span> <span class="required">Required</span>
[% ELSE %] [% ELSE %]
<label for="note">Notes:</label> <label for="note">Notes:</label>
<textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea> <textarea name="note" id="note" rows="5" cols="40">[% note | html %]</textarea>
[% END %] [% END %]
</li> </li>