View | Details | Raw Unified | Return to bug 14973
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-4 / +4 lines)
Lines 240-251 Link Here
240
240
241
[% IF ( op_save ) %]
241
[% IF ( op_save ) %]
242
    [% FOR m IN messages %]
242
    [% FOR m IN messages %]
243
        <div class="dialog [% m.type %]">
243
        <div class="dialog [% m.type | html %]">
244
            [% SWITCH m.code %]
244
            [% SWITCH m.code %]
245
            [% CASE 'biblio_exists' %]
245
            [% CASE 'biblio_exists' %]
246
                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.
246
                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.
247
            [% CASE %]
247
            [% CASE %]
248
                [% m.code %]
248
                [% m.code | html %]
249
            [% END %]
249
            [% END %]
250
        </div>
250
        </div>
251
    [% END %]
251
    [% END %]
Lines 457-463 Link Here
457
        [% CASE 'already_exists' %]
457
        [% CASE 'already_exists' %]
458
            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>)
458
            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>)
459
        [% CASE 'biblio_exists' %]
459
        [% CASE 'biblio_exists' %]
460
            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.
460
            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.
461
        [% CASE %]
461
        [% CASE %]
462
            [% m.code | html %]
462
            [% m.code | html %]
463
        [% END %]
463
        [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-20 / +19 lines)
Lines 41-52 Link Here
41
                            <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>
41
                            <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>
42
42
43
                            [% FOR m IN messages %]
43
                            [% FOR m IN messages %]
44
                                <div class="alert alert-[% m.type %]">
44
                                <div class="alert alert-[% m.type | html %]">
45
                                    [% SWITCH m.code %]
45
                                    [% SWITCH m.code %]
46
                                    [% CASE 'biblio_exists' %]
46
                                    [% CASE 'biblio_exists' %]
47
                                        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.
47
                                        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.
48
                                    [% CASE %]
48
                                    [% CASE %]
49
                                        [% m.code %]
49
                                        [% m.code | html %]
50
                                    [% END %]
50
                                    [% END %]
51
                                </div>
51
                                </div>
52
                            [% END %]
52
                            [% END %]
Lines 57-129 Link Here
57
                                        <li>
57
                                        <li>
58
                                            [% IF ( title_required ) %]
58
                                            [% IF ( title_required ) %]
59
                                                <label for="title" class="required">Title:</label>
59
                                                <label for="title" class="required">Title:</label>
60
                                                <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title %]" required="required" />
60
                                                <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" required="required" />
61
                                                <span class="required">Required</span>
61
                                                <span class="required">Required</span>
62
                                            [% ELSE %]
62
                                            [% ELSE %]
63
                                                <label for="title">Title:</label>
63
                                                <label for="title">Title:</label>
64
                                                <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title %]" />
64
                                                <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" />
65
                                            [% END %]
65
                                            [% END %]
66
                                        </li>
66
                                        </li>
67
                                        <li>
67
                                        <li>
68
                                            [% IF ( author_required ) %]
68
                                            [% IF ( author_required ) %]
69
                                                <label for="author" class="required">Author:</label>
69
                                                <label for="author" class="required">Author:</label>
70
                                                <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author %]" required="required" />
70
                                                <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" required="required" />
71
                                                <span class="required">Required</span>
71
                                                <span class="required">Required</span>
72
                                            [% ELSE %]
72
                                            [% ELSE %]
73
                                                <label for="author">Author:</label>
73
                                                <label for="author">Author:</label>
74
                                                <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author %]" />
74
                                                <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" />
75
                                            [% END %]
75
                                            [% END %]
76
                                        </li>
76
                                        </li>
77
                                        <li>
77
                                        <li>
78
                                            <div title="Copyright or publication year, for example: 2016">
78
                                            <div title="Copyright or publication year, for example: 2016">
79
                                                [% IF ( copyrightdate_required ) %]
79
                                                [% IF ( copyrightdate_required ) %]
80
                                                    <label for="copyrightdate" class="required">Copyright date:</label>
80
                                                    <label for="copyrightdate" class="required">Copyright date:</label>
81
                                                    <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate %]" required="required" />
81
                                                    <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" required="required" />
82
                                                <span class="required">Required</span>
82
                                                <span class="required">Required</span>
83
                                                [% ELSE %]
83
                                                [% ELSE %]
84
                                                    <label for="copyrightdate">Copyright date:</label>
84
                                                    <label for="copyrightdate">Copyright date:</label>
85
                                                    <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate %]" />
85
                                                    <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" />
86
                                                [% END %]
86
                                                [% END %]
87
                                            </div>
87
                                            </div>
88
                                        </li>
88
                                        </li>
89
                                        <li>
89
                                        <li>
90
                                            [% IF ( isbn_required ) %]
90
                                            [% IF ( isbn_required ) %]
91
                                                <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
91
                                                <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
92
                                                <input type="text" id="isbn" name="isbn"  maxlength="80" value="[% isbn %]" required="required" />
92
                                                <input type="text" id="isbn" name="isbn"  maxlength="80" value="[% isbn | html %]" required="required" />
93
                                                <span class="required">Required</span>
93
                                                <span class="required">Required</span>
94
                                            [% ELSE %]
94
                                            [% ELSE %]
95
                                                <label for="isbn">Standard number (ISBN, ISSN or other):</label>
95
                                                <label for="isbn">Standard number (ISBN, ISSN or other):</label>
96
                                                <input type="text" id="isbn" name="isbn"  maxlength="80" value="[% isbn %]" />
96
                                                <input type="text" id="isbn" name="isbn"  maxlength="80" value="[% isbn | html %]" />
97
                                            [% END %]
97
                                            [% END %]
98
                                        </li>
98
                                        </li>
99
                                        <li>
99
                                        <li>
100
                                            [% IF ( publishercode_required ) %]
100
                                            [% IF ( publishercode_required ) %]
101
                                                <label for="publishercode" class="required">Publisher:</label>
101
                                                <label for="publishercode" class="required">Publisher:</label>
102
                                                <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode %]" required="required" />
102
                                                <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" required="required" />
103
                                                <span class="required">Required</span>
103
                                                <span class="required">Required</span>
104
                                            [% ELSE %]
104
                                            [% ELSE %]
105
                                                <label for="publishercode">Publisher:</label>
105
                                                <label for="publishercode">Publisher:</label>
106
                                                <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode %]" />
106
                                                <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" />
107
                                            [% END %]
107
                                            [% END %]
108
                                        </li>
108
                                        </li>
109
                                        <li>
109
                                        <li>
110
                                            [% IF ( collectiontitle_required ) %]
110
                                            [% IF ( collectiontitle_required ) %]
111
                                                <label for="collectiontitle" class="required">Collection title:</label>
111
                                                <label for="collectiontitle" class="required">Collection title:</label>
112
                                                <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle %]" required="required" />
112
                                                <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" required="required" />
113
                                                <span class="required">Required</span>
113
                                                <span class="required">Required</span>
114
                                            [% ELSE %]
114
                                            [% ELSE %]
115
                                                <label for="collectiontitle">Collection title:</label>
115
                                                <label for="collectiontitle">Collection title:</label>
116
                                                <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle %]" />
116
                                                <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" />
117
                                            [% END %]
117
                                            [% END %]
118
                                        </li>
118
                                        </li>
119
                                        <li>
119
                                        <li>
120
                                            [% IF ( place_required ) %]
120
                                            [% IF ( place_required ) %]
121
                                                <label for="place" class="required">Publication place:</label>
121
                                                <label for="place" class="required">Publication place:</label>
122
                                                <input type="text" id="place" name="place" required="required" maxlength="80" value="[% place %]" />
122
                                                <input type="text" id="place" name="place" required="required" maxlength="80" value="[% place | html %]" />
123
                                                <span class="required">Required</span>
123
                                                <span class="required">Required</span>
124
                                            [% ELSE %]
124
                                            [% ELSE %]
125
                                                <label for="place">Publication place:</label>
125
                                                <label for="place">Publication place:</label>
126
                                                <input type="text" id="place" name="place"  maxlength="80" value="[% place %]" />
126
                                                <input type="text" id="place" name="place"  maxlength="80" value="[% place | html %]" />
127
                                            [% END %]
127
                                            [% END %]
128
                                        </li>
128
                                        </li>
129
                                        <li id="opac-suggestion-quantity">
129
                                        <li id="opac-suggestion-quantity">
Lines 187-197 Link Here
187
                                        <li>
187
                                        <li>
188
                                            [% IF ( note_required ) %]
188
                                            [% IF ( note_required ) %]
189
                                                <label for="note" class="required">Notes:</label>
189
                                                <label for="note" class="required">Notes:</label>
190
                                                <textarea name="note" id="note" rows="5" cols="40" required="required">[% note %]</textarea>
190
                                                <textarea name="note" id="note" rows="5" cols="40" required="required">[% note | html %]</textarea>
191
                                                <span class="required">Required</span>
191
                                                <span class="required">Required</span>
192
                                            [% ELSE %]
192
                                            [% ELSE %]
193
                                                <label for="note">Notes:</label>
193
                                                <label for="note">Notes:</label>
194
                                                <textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea>
194
                                                <textarea name="note" id="note" rows="5" cols="40">[% note | html %]</textarea>
195
                                            [% END %]
195
                                            [% END %]
196
                                        </li>
196
                                        </li>
197
197
198
- 

Return to bug 14973