1. 16 Jan, 2019 1 commit
  2. 02 Jan, 2019 1 commit
  3. 31 Aug, 2018 1 commit
  4. 16 Aug, 2018 1 commit
  5. 09 Aug, 2018 2 commits
  6. 17 Oct, 2017 1 commit
  7. 04 Apr, 2017 1 commit
  8. 31 Mar, 2017 1 commit
    • Tyler R Lemburg's avatar
      Updated Google Search API to version 2 · e6fe3a1c
      Tyler R Lemburg authored
      Google is deprecating version 1 of their custom search element API
      sometime in April. While we don't generate actual elements using their
      code, we use their javascript libraries to call the search. This
      change updates the code for version 2, removing the deprecation warning
      and keeping things in compliance.
      
      Before working with this, read
      https://developers.google.com/custom-search/docs/element
      very carefully. The flow of the Google Search as it relates to UNL_Search
      is:
      
      1) end-scripts.tpl.php is rendered with variables that include the custom
      search engine ID
      
      2) This script, using search.js (or search.min.js), adds the google search
      javascript to the end of the page asynchronously. It also gives the callback
      for its loading as window.searchInit, which loads the UNLSearch.initialize
      function.
      
      3) This sets up the various search capabilities, binds callbacks onto those
      actions, and has all the JS functions that we operate on in the search.
      
      I didn't need to use the <gsce> element as described in the docs,
      as we already have a text box to search, and I bind the results to
      the unl_results div (local_results if a site-search is executed).
      
      Lastly, this new code does not use the "Linked Search Engine" specification.
      Instead, the as_sitesearch parameter is passed into the Google API,
      or, if a specific Custom Search Engine is specified (cx parameter),
      that is used vs. our regular UNL one.
      e6fe3a1c
  9. 15 Dec, 2016 1 commit
  10. 02 Jun, 2016 1 commit
  11. 01 Feb, 2016 2 commits
  12. 13 Jan, 2016 2 commits
  13. 11 Jan, 2016 2 commits
  14. 17 Dec, 2015 1 commit
  15. 16 Dec, 2015 3 commits
  16. 29 Jul, 2014 1 commit
  17. 24 Apr, 2014 1 commit
  18. 23 Apr, 2014 2 commits
  19. 21 Apr, 2014 1 commit
  20. 17 Apr, 2014 1 commit
  21. 07 Sep, 2012 3 commits
  22. 27 Mar, 2012 1 commit
  23. 26 Mar, 2012 2 commits
  24. 28 Sep, 2011 1 commit
  25. 13 Sep, 2011 2 commits
  26. 30 Aug, 2011 1 commit
  27. 16 Aug, 2011 1 commit
  28. 12 Aug, 2011 2 commits