SEKnFind Staff Resources

SEKnFind Staff Resources

  • Documentation
  • User Group Archives
  • Customization

›JS + CSS Projects

Koha Administration Resources

  • Customizing Koha
  • JS + CSS Projects

    • Batch Modification Limiter
    • ILL Item Type Defaults
    • Item Cataloging Helper
    • Item Type Limit Warning
    • Megamenu
    • Nacho Item Modal
    • New Item Sharing
    • Patron Autofill Toggle

    SQL

    • SQL Tips
    • Shared SQL

Patron Search Autofill Toggle

This toggles the patron search autofill feature provided by the CircAutocompl syspref based on logged in library.

patronautofilltoggle

JS

The array defines which libraries want the feature disabled. If the logged in library matches a library in the array, then the autocomplete functions are destroyed.

$(window).load(function() {
    var libcode = $('#logged-in-info-full .logged-in-branch-code').text();
    var acdisable = ['ALTAMONT', 'BRONSON', 'CHERRYVALE', 'ERIE', 'MORAN', 'PARKER', 'SAVONBURG', 'STPAUL', 'WALNUT', 'YATESCTR']
    
    if ($.inArray(libcode, acdisable) != -1) {
        $('#findborrower').autocomplete("destroy");
        $('#patron').autocomplete("destroy");      
    }
});
← New Item SharingSQL Tips →
  • JS
SEKnFind Staff Resources
Resources
DocumentationUser Group ArchivesCustomization
Koha
Staff loginOPAC
More
SEKLSLibraryAware LoginNewsletter Subscribe
Copyright © 2019 Southeast Kansas Library System