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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-8 / +6 lines)
Lines 221-246 $(document).ready(function() { Link Here
221
221
222
// Update the string "Results found ..."
222
// Update the string "Results found ..."
223
function update_searched(){
223
function update_searched(){
224
    var searched = "";
224
    var searched = $("#searchfieldstype_filter").find("option:selected").text();
225
    searched += "on " + $("#searchfieldstype_filter").find("option:selected").text().toLowerCase() + " fields";
226
    if ( $("#searchmember_filter").val() ) {
225
    if ( $("#searchmember_filter").val() ) {
227
        if ( $("#searchtype_filter").val() == 'start_with' ) {
226
        if ( $("#searchtype_filter").val() == 'start_with' ) {
228
            searched += _(" starting with ");
227
            searched += _(" starting with ");
229
        } else {
228
        } else {
230
            searched += _(" containing ");
229
            searched += _(" containing ");
231
        }
230
        }
232
        searched += $("#searchmember_filter").val();
231
        searched += "'" + $("#searchmember_filter").val() + "'";
233
    }
232
    }
234
    if ( $("#firstletter_filter").val() ) {
233
    if ( $("#firstletter_filter").val() ) {
235
        searched += _(" begin with ") + $("#firstletter_filter").val();
234
        searched += _(" begins with ") + "'" + $("#firstletter_filter").val() +"'";
236
    }
235
    }
237
    if ( $("#categorycode_filter").val() ) {
236
    if ( $("#categorycode_filter").val() ) {
238
        searched += _(" with category ") + $("#categorycode_filter").find("option:selected").text();
237
        searched += _(" with category ") + "'" + $("#categorycode_filter").find("option:selected").text() + "'";
239
    }
238
    }
240
    if ( $("#branchcode_filter").val() ) {
239
    if ( $("#branchcode_filter").val() ) {
241
        searched += _(" in library ") + $("#branchcode_filter").find("option:selected").text();
240
        searched += _(" in library ") + $("#branchcode_filter").find("option:selected").text();
242
    }
241
    }
243
    $("#searchpattern").text("for patron " + searched);
242
    $("#searchpattern").text(searched);
244
}
243
}
245
244
246
// Redraw the table
245
// Redraw the table
Lines 327-333 function filterByFirstLetterSurname(letter) { Link Here
327
326
328
          <div id="searchresults">
327
          <div id="searchresults">
329
            <div id="searchheader">
328
            <div id="searchheader">
330
              <h3>Results found <span id="searchpattern">[% IF searchmember %] for '[% searchmember %]'[% END %]</span></h3>
329
              <h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember %]'[% END %]</span></h3>
331
            </div>
330
            </div>
332
            [% IF CAN_user_tools_manage_patron_lists %]
331
            [% IF CAN_user_tools_manage_patron_lists %]
333
              <div id="searchheader">
332
              <div id="searchheader">
334
- 

Return to bug 13351