2 #require_once '../src/LibRIS.php';
5 set_include_path(get_include_path() . PATH_SEPARATOR .
'./src/');
7 spl_autoload_register(
function ($klass) {
8 $parts = explode(
'\\', $klass);
9 if ($parts[0] ==
'LibRIS') {
10 print
"Called for $klass" . PHP_EOL;
11 include implode(DIRECTORY_SEPARATOR, $parts) .
'.php';
15 use \LibRIS\RISReader;
24 $rw = new \LibRIS\RISWriter();
35 $rw = new \LibRIS\RISWriter();