This is an old revision of the document!
- Bibsonomy.php
<?php // hatop@ub.uni-marburg.de 2008-12-08 2009-12-03 // http://unapi.info/specs/ /* Copyright 2008 2009 Goetz Hatop * Goetz Hatop's original Version can be found at * <ftp://ftp.ub.uni-marburg.de/pub/research/unapi.tar.gz> */ /* Copyright 2009 Stephan Rosenke <rosenke@ulb.tu-darmstadt.de> */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Version: 0.1 */ /* Changelog * * 20091214: stripped unAPI.php for use as Bibsonomy-forwarder. */ require_once('PicaRecord.php'); if (!isset($_GET[id]) || $_GET[id]=='') { header('HTTP/1.0 406 Not Acceptable'); echo "406: Not Acceptable"; return; } $pica = new Picappn(); $pica->setPpn( $_GET[id] ); $res = $pica->getBibsonomy(); header("Location: $res"); ?>