5 [% USE AuthorisedValues %]
7 [% USE AdditionalContents %]
8 [% SET opacsuggestion = AdditionalContents.get( location => "OpacSuggestioninstructions", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
9 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>[% IF ( op_add ) %]Enter a new purchase suggestion[% END %]
13 [% IF ( op_else ) %]Purchase suggestions[% END %] ›
14 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
15 [% INCLUDE 'doc-head-close.inc' %]
16 [% BLOCK cssinclude %][% END %]
18 [% IF ( loggedinusername ) %][% INCLUDE 'bodytag.inc' bodyid='opac-usersuggestions' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-suggestions' bodyclass='scrollto' %][% END %]
19 [% INCLUDE 'masthead.inc' %]
22 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
23 <ol class="breadcrumb">
24 <li class="breadcrumb-item">
25 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
27 <li class="breadcrumb-item">
28 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
30 <li class="breadcrumb-item active">
31 <a href="#" aria-current="page">Your purchase suggestions</a>
34 </nav> <!-- /#breadcrumbs -->
36 <div class="container-fluid">
38 <div class="col col-lg-2 order-2 order-lg-1">
40 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
43 <div class="col-md-12 col-lg-10 order-1">
45 <div id="usersuggestions" class="maincontent">
47 <h1>Your purchase suggestions</h1>
48 [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
49 <h2 class="TooManySuggestions">You cannot place any more suggestions</h2>
50 <p class="TooManySuggestionsText">You may only add up to [% Koha.Preference('MaxTotalSuggestions') | html %] suggestions in [% Koha.Preference('NumberOfSuggestionDays') | html %] days.</p>
51 [% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %]
52 <h2 class="TooManySuggestions">You cannot place any more suggestions</h2>
53 <p class="TooManySuggestionsText">You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more.</p>
56 [% IF ( opacsuggestion ) %]
57 [% PROCESS koha_news_block news => opacsuggestion %]
59 <h2>Enter a new purchase suggestion</h2>
61 <p>Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion.</p>
62 <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>
64 [% FOR m IN messages %]
65 <div class="alert alert-[% m.type | html %]">
67 [% CASE 'biblio_exists' %]
68 <span>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.</span>
70 <span>[% m.code | html %]</span>
75 <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
76 <fieldset class="rows">
79 [% IF ( title_required ) %]
80 <label for="title" class="required">Title:</label>
81 <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" required="required" />
82 <div class="required_label required">Required</div>
84 <label for="title">Title:</label>
85 <input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" />
88 [% UNLESS ( author_hidden ) %]
90 [% IF ( author_required ) %]
91 <label for="author" class="required">Author:</label>
92 <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" required="required" />
93 <div class="required_label required">Required</div>
95 <label for="author">Author:</label>
96 <input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" />
100 [% UNLESS ( copyrightdate_hidden )%]
102 <div title="Copyright or publication year, for example: 2016">
103 [% IF ( copyrightdate_required ) %]
104 <label for="copyrightdate" class="required">Copyright date:</label>
105 <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" required="required" />
106 <div class="required_label required">Required</div>
108 <label for="copyrightdate">Copyright date:</label>
109 <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" />
114 [% UNLESS ( isbn_hidden )%]
116 [% IF ( isbn_required ) %]
117 <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
118 <input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn | html %]" required="required" />
119 <div class="required_label required">Required</div>
121 <label for="isbn">Standard number (ISBN, ISSN or other):</label>
122 <input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn | html %]" />
126 [% UNLESS ( publishercode_hidden ) %]
128 [% IF ( publishercode_required ) %]
129 <label for="publishercode" class="required">Publisher:</label>
130 <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" required="required" />
131 <div class="required_label required">Required</div>
133 <label for="publishercode">Publisher:</label>
134 <input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" />
138 [% UNLESS ( collectiontitle_hidden ) %]
140 [% IF ( collectiontitle_required ) %]
141 <label for="collectiontitle" class="required">Collection title:</label>
142 <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" required="required" />
143 <div class="required_label required">Required</div>
145 <label for="collectiontitle">Collection title:</label>
146 <input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" />
150 [% UNLESS ( place_hidden ) %]
152 [% IF ( place_required ) %]
153 <label for="place" class="required">Publication place:</label>
154 <input type="text" id="place" name="place" required="required" maxlength="80" value="[% place | html %]" />
155 <div class="required_label required">Required</div>
157 <label for="place">Publication place:</label>
158 <input type="text" id="place" name="place" maxlength="80" value="[% place | html %]" />
162 [% UNLESS ( quantity_hidden ) %]
163 <li id="opac-suggestion-quantity">
164 [% IF ( quantity_required ) %]
165 <label for="quantity" class="required">Quantity:</label>
166 <input type="text" id="quantity" name="quantity" required="required" maxlength="4" size="4" value="[% quantity | html %]" />
167 <div class="required_label required">Required</div>
169 <label for="quantity">Quantity:</label>
170 <input type="text" id="quantity" name="quantity" maxlength="4" size="4" value="[% quantity | html %]" />
174 [% UNLESS ( itemtype_hidden )%]
176 [% IF ( itemtype_required ) %]
177 <label for="itemtype" class="required">Item type:</label>
178 [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1, default=itemtype %]
179 <div class="required_label required">Required</div>
181 <label for="itemtype">Item type:</label>
182 [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1, default=itemtype %]
186 [% UNLESS ( branchcode_hidden )%]
188 [% IF ( branchcode_required ) %]
189 <label for="branch" class="required">Library:</label>
190 <select name="branchcode" id="branch" required="required">
191 <option value=""></option>
192 [% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %]
194 <div class="required_label required">Required</div>
196 <label for="branch">Library:</label>
197 <select name="branchcode" id="branch">
198 [% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %]
203 [% IF ( patron_reason_loop ) %]
204 [% UNLESS ( patronreason_hidden )%]
206 [% IF ( patronreason_required ) %]
207 <label for="patronreason" class="required">Reason for suggestion: </label>
208 <select name="patronreason" id="patronreason" required="required">
209 <option value="">-- Choose --</option>
210 [% FOREACH patron_reason_loo IN patron_reason_loop %]
211 [% IF patron_reason_loo.authorised_value == patronreason %]
212 <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option>
214 <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
218 <div class="required_label required">Required</div>
220 <label for="patronreason">Reason for suggestion: </label>
221 <select name="patronreason" id="patronreason">
222 <option value="">-- Choose --</option>
223 [% FOREACH patron_reason_loo IN patron_reason_loop %]
224 [% IF patron_reason_loo.authorised_value == patronreason %]
225 <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option>
227 <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
235 [% UNLESS ( note_hidden ) %]
237 [% IF ( note_required ) %]
238 <label for="note" class="required">Notes:</label>
239 <textarea name="note" id="note" rows="5" cols="40" required="required">[% note | html %]</textarea>
240 <div class="required_label required">Required</div>
242 <label for="note">Notes:</label>
243 <textarea name="note" id="note" rows="5" cols="40">[% note | html %]</textarea>
248 <!-- Add a hidden 'negcap' field -->
249 <li id="negcap" style="position: absolute; left: -2000px;">
250 negcap <input type="text" name="negcap"/>
255 <fieldset class="action">
256 <input type="hidden" name="suggested_by_anyone" value="[% suggested_by_anyone | html %]" />
257 [% IF need_confirm # Confirm that we want a duplicate %]
258 <input type="hidden" name="op" value="add_confirm" />
259 <input type="submit" class="btn btn-primary" value="Confirm your suggestion" />
260 [% ELSIF biblionumber # Create from an existing title %]
261 <input type="hidden" name="op" value="add_confirm" />
262 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
263 <input type="submit" class="btn btn-primary" value="Submit your suggestion" />
264 [% ELSE # Not created from an existing title, search for possible duplicate %]
265 <input type="hidden" name="op" value="add_validate" />
266 <input type="submit" class="btn btn-primary" value="Submit your suggestion" />
268 <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a>
272 [% END # IF op_add %]
276 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
279 [% IF ( loggedinusername ) %]
280 Your purchase suggestions
286 [% FOR m IN messages %]
287 <div class="alert alert-[% m.type | html %]">
289 [% CASE 'total_suggestions' %]
290 <span>The suggestion has not been added. You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxTotalSuggestions') | html %] in [% Koha.Preference('NumberOfSuggestionDays') | html %] days).</span>
291 [% CASE 'too_many' %]
292 <span>The suggestion has not been added. You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more.</span>
293 [% CASE 'already_exists' %]
294 <span>The suggestion has not been added. A suggestion with this title already exists.</span>
295 [% CASE 'success_on_inserted' %]
296 <span>Your suggestion has been submitted.</span>
298 <span>[% m.code | html %]</span>
303 [% IF ( deleted ) %]<div class="alert alert-info">The selected suggestions have been deleted.</div>[% END %]
305 [% IF suggestions_loop OR title_filter %]
306 <form action="/cgi-bin/koha/opac-suggestions.pl" class="form-inline" id="search_suggestions_form" method="get">
307 <div class="form-row">
308 <label for="title_filter">Search for:</label>
309 <input type="text" name="title_filter" id="title_filter" value="[% title_filter | html %]" />
310 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
311 [% IF loggedinusername %]
312 <div class="col-auto my-1">
313 <label class="sr-only" for="suggested_by_anyone">Suggested by:</label>
314 <select class="form-control form-control-sm" name="suggested_by_anyone" id="suggested_by_anyone">
315 [% IF suggested_by_anyone %]
316 <option value="0">Suggested by me</option>
317 <option value="1" selected="selected">Suggested by anyone</option>
319 <option value="0" selected="selected">Suggested by me</option>
320 <option value="1">Suggested by anyone</option>
326 <div class="col-auto my-1">
327 <button type="submit" class="btn btn-sm btn-primary">Go</button>
332 [% IF suggestions_loop %]
333 [% SET can_delete_suggestion = 0 %]
334 <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="delete_suggestions">
335 <input type="hidden" name="op" value="delete_confirm" />
336 [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
337 <div id="toolbar" class="toolbar clearfix">
338 [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
339 <p class="TooManySuggestionsText">You may only add up to [% Koha.Preference('MaxTotalSuggestions') | html %] suggestions in [% Koha.Preference('NumberOfSuggestionDays') | html %] days.</p>
340 [% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %]
341 <p class="TooManySuggestionsText">You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]).</br>Once the library has processed those suggestions you will be able to place more.</p>
343 <a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus" aria-hidden="true"></i> New purchase suggestion</a>
348 [% IF ( loggedinusername ) %]
349 <div class="selections-toolbar toolbar">
350 <div class="check_control">
351 <span class="checkall"></span> <span class="clearall"></span>
354 <span class="selections">Select suggestions to: </span>
355 <span id="removeitems">
356 <a href="#" class="btn btn-link removeitems tag_hides disabled"><i class="fa fa-trash" aria-hidden="true"></i> Delete</a>
362 <table id="suggestt" class="table table-bordered table-striped">
363 <caption class="sr-only">Your purchase suggestions<caption>
366 [% IF ( loggedinusername ) %]<th> </th>[% END %]
368 <th>Suggested on</th>
370 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]<th>Suggested for</th>[% END %]
371 [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]<th>Managed by</th>[% END %]
376 [% FOREACH suggestions_loo IN suggestions_loop %]
378 [% IF ( loggedinusername ) %]
379 <td class="selectcol">
380 [% IF ( suggestions_loo.showcheckbox ) %]
381 [% SET can_delete_suggestion = 1 %]
382 <input type="checkbox" class="cb" id="id[% suggestions_loo.suggestionid | html %]" name="delete_field" data-title="[% suggestions_loo.title | html %]" value="[% suggestions_loo.suggestionid | html %]" />
388 <label for="id[% suggestions_loo.suggestionid | html %]">
389 [% IF suggestions_loo.biblionumber %]
390 <strong><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% suggestions_loo.biblionumber | uri %]">[% suggestions_loo.title | html %]</a></strong>
392 <strong>[% suggestions_loo.title | html %]</strong>
396 <p>[% IF ( suggestions_loo.author ) %][% suggestions_loo.author | html %],[% END %]
397 [% IF ( suggestions_loo.copyrightdate ) %] - [% suggestions_loo.copyrightdate | html %],[% END %]
398 [% IF ( suggestions_loo.publishercode ) %] - [% suggestions_loo.publishercode | html %][% END %]
399 [% IF ( suggestions_loo.place ) %]([% suggestions_loo.place | html %])[% END %]
400 [% IF ( suggestions_loo.collectiontitle ) %] , [% suggestions_loo.collectiontitle | html %][% END %]
401 [% IF ( suggestions_loo.itemtype ) %] - [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 1 ) | html %][% END %]
405 [% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate |$KohaDates %][% END %]
408 [% IF ( suggestions_loo.note ) %]
409 <span class="tdlabel">Note: </span>
410 [% suggestions_loo.note | html %]
413 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
415 [% IF ( suggestions_loo.branchcodesuggestedby ) %]
416 <span class="tdlabel">Suggested for:</span>
417 [% suggestions_loo.branchcodesuggestedby | html %]
421 [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]
423 [% IF ( suggestions_loo.surnamemanagedby ) %]
424 <span class="tdlabel">Managed by:</span>
425 [% suggestions_loo.surnamemanagedby | html %]
426 [% IF ( suggestions_loo.firstnamemanagedby ) %] , [% suggestions_loo.firstnamemanagedby | html %]
432 <span class="tdlabel">Status:</span>
433 [% IF ( suggestions_loo.ASKED ) %]Requested
434 [% ELSIF ( suggestions_loo.CHECKED ) %]Checked by the library
435 [% ELSIF ( suggestions_loo.ACCEPTED ) %]Accepted by the library
436 [% ELSIF ( suggestions_loo.ORDERED ) %]Ordered by the library
437 [% ELSIF ( suggestions_loo.REJECTED ) %]Suggestion declined
438 [% ELSIF ( suggestions_loo.AVAILABLE ) %]Available in the library
439 [% ELSE %] [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS, 1 ) | html %] [% END %]
440 [% IF ( suggestions_loo.reason ) %]([% suggestions_loo.reason | html %])[% END %]
443 [% END # / FOREACH suggestions_loo %]
447 [% IF ( loggedinusername && can_delete_suggestion ) %]
448 <fieldset class="action">
449 <input type="submit" class="btn btn-danger removeitems" value="Delete selected" />
454 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) %]
455 [% IF title_filter %]
456 <p>There are no pending purchase suggestions matching your search.</p>
457 [% ELSIF loggedinusername AND NOT suggested_by_anyone %]
458 <p>You have no pending purchase suggestions. <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">View all suggestions</a></p>
460 <p>There are no pending purchase suggestions.</p>
463 [% IF ( loggedinusername ) %]
464 [% IF title_filter %]
465 <p>There are no pending purchase suggestions matching your search.</p>
467 <p>You have no pending purchase suggestions.</p>
470 <p>You are not authorized to see pending purchase suggestions.</p>
473 [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
474 [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
475 <p class="TooManySuggestionsText">You may only add up to [% Koha.Preference('MaxTotalSuggestions') | html %] suggestions in [% Koha.Preference('NumberOfSuggestionDays') | html %] days.</p>
476 [% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %]
477 <p class="TooManySuggestionsText">You have reached your limit for suggestions you can place at this time.</br>Once the library has processed those suggestions you will be able to place more.</p>
479 <p><a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus" aria-hidden="true"></i> New purchase suggestion</a></p>
482 [% END # / IF suggestions_loop %]
484 [% END # IF op_else %]
485 </div> <!-- / #usersuggestions -->
486 </div> <!-- / .col-lg-10 -->
487 </div> <!-- / .row -->
488 </div> <!-- / .container-fluid -->
489 </div> <!-- / .main -->
491 [% INCLUDE 'opac-bottom.inc' %]
492 [% BLOCK jsinclude %]
493 [% INCLUDE 'datatables.inc' %]
495 [% IF ( loggedinusername ) %]
496 function enableCheckboxActions(){
497 // Enable/disable controls if checkboxes are checked
498 var checkedBoxes = $(".cb:checked");
499 if ($(checkedBoxes).size()) {
500 $(".selections").html(_("With selected suggestions: "));
501 $(".selections-toolbar .links a").removeClass("disabled");
503 $(".selections").html(_("Select suggestions to: "));
504 $(".selections-toolbar .links a").addClass("disabled");
510 $("#suggestt").dataTable($.extend(true, {}, dataTablesDefaults, {
511 "order": [[ 1, "asc" ]],
514 [% IF ( loggedinusername ) %]{ "targets": [ 0 ], "sortable": false, "searchable": false }[% END %]
517 [% IF ( loggedinusername ) %]null,[% END %]
518 { "type": "anti-the" },
521 [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]null,[% END %]
522 [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]null,[% END %]
526 [% IF ( loggedinusername ) %]$("span.clearall").html("<a id=\"CheckNone\" class=\"btn btn-link btn-sm\" href=\"#\">"+_("Clear all")+"<\/a>");
527 $("span.checkall").html("<a id=\"CheckAll\" class=\"btn btn-link btn-sm\" href=\"#\">"+_("Select all")+"<\/a>");
528 $("#CheckAll").on("click",function(e){
530 $(".cb").prop("checked", true);
531 enableCheckboxActions();
533 $("#CheckNone").on("click",function(e){
535 $(".cb").prop("checked", false);
536 enableCheckboxActions();
538 $(".cb").click(function(){
539 enableCheckboxActions();
542 enableCheckboxActions();
544 $(".removeitems").on("click", function(e) {
546 var selected_titles = $("input:checked");
551 if ( selected_titles.size() < 1 ) {
552 alert(MSG_NO_SUGGESTION_SELECTED);
555 if( selected_titles.size() > 1 ){
556 message = $("<ul></ul>");
557 title = _("Are you sure you want to delete these suggestions?");
558 yes_label = _("Yes, delete suggestions");
559 no_label = _("No, do not delete suggestions");
560 selected_titles.each(function(){
561 message.append( "<li>" + $(this).data("title") + "</li>" );
564 title = _("Are you sure you want to delete this suggestion?");
565 yes_label = _("Yes, delete suggestion");
566 no_label = _("No, do not delete suggestion");
567 selected_titles.each(function(){
568 message += $(this).data("title");
571 confirmModal( message, title, yes_label, no_label, function( result ){
573 $("#delete_suggestions").submit();