]> git.koha-community.org Git - koha.git/commit
Bug 2959 - Cache already failed URLs to speedup check-url.pl
authorFrédéric Demians <f.demians@tamil.fr>
Fri, 12 Feb 2010 22:06:02 +0000 (23:06 +0100)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 15 Feb 2010 00:45:54 +0000 (19:45 -0500)
commit9dee98a0c97fec68eaf0f48e0d6a0a9dd56d7be1
treefa13502a7cc8d8cc6eb5964a38f8e72d1cfa4788
parent7fc80259784e8799103eaceee7f24c492a9dc3bc
Bug 2959 - Cache already failed URLs to speedup check-url.pl

Based on David Schuster improvement patch.

For David:

- To send the output into an HTML file, there is no need to add a
  paramater to this script, just redirect to a file:

  check-url --html --host-prot=http://koha-pro.mylib.org \\
    > /usr/local/koha/koha-tmpl/badurls.html

- If you want as a result a table with alternate rows, use CSS and
  JavaScript. For example, with jQuery (found with google):

  <style type="text/css">
  table {width:400px; border:1px solid blue;}
  .oddrow {background-color:#E5E5E5;}
  </style>
  <script type="text/javascript"
   src="http://code.jquery.com/jquery-latest.min.js"></script>
  <script type="text/javascript">
  $(function(){
    $("table.tiger-stripe tr:even").addClass("oddrow");
  });

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
misc/cronjobs/check-url.pl