#!/usr/bin/perl -wT # See bottom of file for license and copyright information use strict; use warnings; BEGIN { if ( defined $ENV{GATEWAY_INTERFACE} || defined $ENV{MOD_PERL} ) { $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; use CGI::Carp qw(fatalsToBrowser); $SIG{__DIE__} = \&CGI::Carp::confess; } else { $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; require Carp; $SIG{__DIE__} = \&Carp::confess; } $ENV{FOSWIKI_ACTION} = 'bibsearch'; @INC = ( '.', grep { $_ ne '.' } @INC ); require 'setlib.cfg'; } use Foswiki (); use Foswiki::UI (); $Foswiki::engine->run(); # Copyright (C) 2012 Foswiki Contributors # Copyright (C) 2003 Michael Daum # # Based on parts of the EmbedBibPlugin by TWiki:Main/DonnyKurniawan # # 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 2 # 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, published at # http://www.gnu.org/copyleft/gpl.html