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