Refbase update_2021-01-28_15_58

This commit is contained in:
root
2021-01-28 15:58:21 +01:00
commit 64e7261da6
300 changed files with 164739 additions and 0 deletions

4
contrib/skins/README Normal file
View File

@@ -0,0 +1,4 @@
The current method to change the appearance of refbase is to edit the style
files in the 'css' subdirectory and/or to replace the 'header.inc.php' and
'footer.inc.php' in the 'includes' subdirectory. This directory contains
examples of customized versions of these files.

View File

@@ -0,0 +1,20 @@
mediawiki-monobook skin for refbase
===================================
Author
------
Richard Karnesky <karnesky@gmail.com>
About
-----
These files mimic the Monobook skin from MediaWiki:
<http://www.mediawiki.org/>
This is the default skin for the Wikipedia:
<http://wikipedia.org/>
You may also be interested in the refbase extension for MediaWiki, included in the
'contrib/mediawiki' directory from refbase.
An installation of refbase that uses this skin is the Northwestern University
Center for Atom-Probe Tomography:
<http://arc.nucapt.northwestern.edu/refbase/>

View File

@@ -0,0 +1,235 @@
<?php
// Copyright: Richard Karnesky <karnesky@gmail.com>
// This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
// Please see the GNU General Public License for more details.
// File: ./includes/footer.inc.php
// --------------------------------------------------------------------
// Inserts the closing HTML </body> and </html> tags:
function displayHTMLfoot()
{
?>
</body>
</html>
<?php
}
// --------------------------------------------------------------------
// Displays the visible footer:
function showPageFooter($HeaderString)
{
global $officialDatabaseName; // usage example: <a href="index.php">[? echo encodeHTML($officialDatabaseName); ?]</a>
global $hostInstitutionAbbrevName; // usage example: <a href="[? echo $hostInstitutionURL; ?]">[? echo encodeHTML($hostInstitutionAbbrevName); ?] Home</a>
global $hostInstitutionName; // (note: in the examples above, square brackets must be replaced by their respective angle brackets)
global $hostInstitutionURL;
global $helpResourcesURL;
global $loginWelcomeMsg; // these variables are globally defined in function 'showLogin()' in 'include.inc.php'
global $loginStatus;
global $loginLinks;
global $loc; // '$loc' is made globally available in 'core.php'
?>
</div></div></div>
<div id="column-one">
<div id="p-cactions" class="portlet">
<h5>Views</h5>
<ul>
<li id="ca-talk"
class="selected" ><a href="index.php">References</a></li><li id="search"><a href="simple_search.php" title="search the main fields of the database">Simple Search</a></li>
<li><a href="advanced_search.php" title="search all fields of the database">Advanced Search</a></li>
<?php
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_add/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains 'allow_add'...
{
// ... include a link to 'record.php?recordAction=add...':
?>
<LI id="ca-watch"><a href="record.php?recordAction=add" title="add a record to the database">Add Record</a>
<?php
}
else {?>
<LI id="ca-watch"><a href="/refbase-svn/record.php?recordAction=add" title="add a suggested record to the database">Add Record (suggest)</a>
<?php }
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_import|allow_batch_import/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains either 'allow_import' or 'allow_batch_import'...
{
// ... include a link to 'import.php':
?>
<LI><a href="import.php" title="import records">Import</a>
<?php
} else {
?>
<LI><a href="/refbase-svn/import.php" title="import suggested records">Import (suggest)</a>
<?php
}?>
</ul>
</div>
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
<ul>
<li id="pt-userpage"><? echo preg_replace('/You\'re logged in as<br>/','',$loginStatus); ?></li><li id="pt-mytalk">
<? echo $loginLinks; ?></li>
</ul>
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image:
url(../skins/common/images/wiki.png);"
href="../index.php/Seidman_Group"
title="Seidman Group"></a>
</div>
<div class='portlet' id='p-Seidman_Group'>
<h5>Seidman Group</h5>
<div class='pBody'>
<ul>
<li id="n-Seidman-Group"><a href="/Seidman_Group">Seidman Group</a></li>
<li id="n-Research"><a href="/Category:Research">Research</a></li>
<li id="n-People"><a href="/Category:People">People</a></li>
</ul>
</div>
</div>
<div class='portlet' id='p-NUCAPT'>
<h5>NUCAPT</h5>
<div class='pBody'>
<ul>
<li id="n-Instruments"><a href="/Category:Tools">Instruments</a></li>
<li id="n-Calendar"><a href="http://arc.nucapt.northwestern.edu/phpicalendar">Calendar</a></li>
<li id="n-Visit"><a href="/Visit">Visit</a></li>
</ul>
</div>
</div>
<div class='portlet' id='p-Atom-Probe_Tomography'>
<h5>Atom-Probe Tomography</h5>
<div class='pBody'>
<ul>
<li id="n-References"><a href="http://arc.nucapt.northwestern.edu/refbase">References</a></li>
<li id="n-AtomProbe-mailing-list"><a href="http://arc.nucapt.northwestern.edu/mailman/listinfo/atomprobe">AtomProbe mailing list</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-tb">
<h5>Search</h5>
<div class="pBody">
<?php echo buildQuickSearchElements($query, $queryURL, $showQuery, $showLinks, $showRows, $citeStyle, $citeOrder, $displayType); ?>
<ul>
<li><a href="simple_search.php" title="search the main fields of the database">Simple Search</a>
<li><a href="advanced_search.php" title="search all fields of the database">Advanced Search</a>
<?php
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_sql_search/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains 'allow_sql_search'...
{
// ... include a link to 'sql_search.php':
?>
<li><a href="sql_search.php" title="search the database by use of a SQL query">SQL Search</a>
<?php
}
// -------------------------------------------------------
?>
<li><a href="library_search.php" title="search the library of the <? echo encodeHTML($hostInstitutionAbbrevName); ?>">Library Search</a>
</ul>
</div></div>
<div class="portlet" id="p-tc">
<h5>Toolbox</h5>
<div class="pBody">
<ul>
<?php
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_add/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains 'allow_add'...
{
// ... include a link to 'record.php?recordAction=add...':
?>
<LI><a href="record.php?recordAction=add" title="add a record to the database">Add Record</a>
<?php
}
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_import|allow_batch_import/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains either 'allow_import' or 'allow_batch_import'...
{
// ... include a link to 'import.php':
?>
<LI><a href="import.php" title="import records">Import</a>
<?php
}
// -------------------------------------------------------
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_details_view/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains 'allow_details_view'...
{
// ... include a link to 'show.php':
?>
<LI><a href="show.php" title="display details for a particular record by entering its database serial number">Show Record</a>
<?php
}
if (isset($_SESSION['user_permissions']) AND preg_match("/allow_cite/", $_SESSION['user_permissions'])) // if the 'user_permissions' session variable contains 'allow_cite'...
{
// ... include a link to 'extract.php':
?>
<LI><a href="extract.php" title="extract citations from a text and build an appropriate reference list">Extract Citations</a><?php
}
// -------------------------------------------------------
?>
</ul>
</div></div></div>
<div class="visualClear"></div>
<div id="footer">
<div id="f-poweredbyico"><a href="http://www.refbase.net/"><img src="img/refbase_credit.gif" alt="refbase"></a></div><ul id="f-list">
<li><? echo date('j M Y'); ?></li>
<li id="f-about"><a
href="/index.php/Seidman_Group" title="Seidman Group">NUCAPT: Northwestern University Center for Atom-Probe Tomography</a></li> </ul>
</div>
</div>
<?php
}
?>

View File

@@ -0,0 +1,164 @@
<?php
// Project: Web Reference Database (refbase) <http://www.refbase.net>
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
// original author(s).
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY. Please see the GNU General Public
// License for more details.
//
// File: ./contrib/skins/mediawiki-monobook/header.inc.php
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/contrib/skins/mediawiki-monobook/header.inc.php $
// Author(s): Richard Karnesky <mailto:karnesky@gmail.com>
//
// Created: 31-Oct-06, 00:28
// Modified: $Date: 2012-02-27 20:25:30 +0000 (Mon, 27 Feb 2012) $
// $Author: msteffens $
// $Revision: 1337 $
// This is the header include file.
// It contains functions that provide the HTML header
// as well as the visible header that gets displayed on every page.
// --------------------------------------------------------------------
// Inserts the HTML <head>...</head> block as well as the initial <body> tag:
//
// TODO: include OpenSearch elements in HTML header
// (see examples at <http://www.opensearch.org/Specifications/OpenSearch/1.1#Response_metadata_in_HTML.2FXHTML>)
function displayHTMLhead($pageTitle, $metaRobots, $metaDescription, $additionalMeta, $includeJavaScript, $includeJavaScriptFile, $viewType, $rssURLArray)
{
global $officialDatabaseName; // these variables are defined in 'ini.inc.php'
global $contentTypeCharset;
global $defaultStyleSheet;
global $printStyleSheet;
global $mobileStyleSheet;
global $useVisualEffects;
global $databaseBaseURL;
global $databaseKeywords;
global $defaultFeedFormat;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<title><?php echo $pageTitle; ?></title>
<meta name="date" content="<?php echo date('d-M-y'); ?>">
<meta name="robots" content="<?php echo $metaRobots; ?>">
<meta name="description" lang="en" content="<?php echo $metaDescription; ?>">
<meta name="keywords" lang="en" content="<?php echo $databaseKeywords; ?>"><?php
if (!empty($additionalMeta))
echo $additionalMeta;
?>
<meta http-equiv="content-language" content="<?php echo getUserLanguage(); ?>">
<meta http-equiv="content-type" content="text/html; charset=<?php echo $contentTypeCharset; ?>">
<meta http-equiv="Content-Style-Type" content="text/css"><?php
if (preg_match("/^Print$/i", $viewType))
{
?>
<link rel="stylesheet" href="<?php echo $printStyleSheet; ?>" type="text/css" title="CSS Definition"><?php
}
elseif (preg_match("/^Mobile$/i", $viewType))
{
?>
<link rel="stylesheet" href="<?php echo $mobileStyleSheet; ?>" type="text/css" title="CSS Definition"><?php
}
else
{
?>
<link rel="stylesheet" href="<?php echo $defaultStyleSheet; ?>" type="text/css" title="CSS Definition"><?php
}
if (!empty($rssURLArray) AND isset($_SESSION['user_permissions']) AND preg_match("/allow_rss_feeds/", $_SESSION['user_permissions'])) // if some RSS URLs were specified AND the 'user_permissions' session variable contains 'allow_rss_feeds'...
{
foreach ($rssURLArray as $rssURL)
{
if ($defaultFeedFormat == "Atom XML")
$feedContentType = "application/atom+xml";
else // RSS XML
$feedContentType = "application/rss+xml";
// ...include a link tag pointing to a dynamic RSS feed for the current query:
?>
<link rel="alternate" type="<?php echo $feedContentType; ?>" href="<?php echo $databaseBaseURL . $rssURL['href']; ?>" title="<?php echo $rssURL['title']; ?>"><?php
}
}
?>
<link rel="unapi-server" type="application/xml" title="unAPI" href="<?php echo $databaseBaseURL; ?>unapi.php">
<link rel="search" type="application/opensearchdescription+xml" title="<?php echo encodeHTML($officialDatabaseName); ?>" href="<?php echo $databaseBaseURL; ?>opensearch.php?operation=explain"><?php
if ($includeJavaScript OR (isset($_SESSION['userAutoCompletions']) AND ($_SESSION['userAutoCompletions'] == "yes")) OR ($useVisualEffects == "yes"))
{
// ...include common refbase JavaScript functions:
?>
<script language="JavaScript" type="text/javascript" src="javascript/common.js"></script><?php
}
if ((isset($_SESSION['userAutoCompletions']) AND ($_SESSION['userAutoCompletions'] == "yes")) OR ($useVisualEffects == "yes"))
{
// ...include the Prototype & script.aculo.us JavaScript frameworks:
?>
<script language="JavaScript" type="text/javascript" src="javascript/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="javascript/scriptaculous.js?load=effects,controls"></script><?php
}
if (!empty($includeJavaScriptFile))
{
// ...include additional JavaScript functions:
?>
<script language="JavaScript" type="text/javascript" src="<?php echo $includeJavaScriptFile; ?>"></script><?php
}
?>
</head>
<body><?php
}
// --------------------------------------------------------------------
// Displays the visible header:
function showPageHeader($HeaderString)
{
global $officialDatabaseName; // these variables are defined in 'ini.inc.php'
global $hostInstitutionAbbrevName;
global $hostInstitutionName;
global $hostInstitutionURL;
global $helpResourcesURL;
global $loginWelcomeMsg; // these variables are globally defined in function 'showLogin()' in 'include.inc.php'
global $loginStatus;
global $loginLinks;
global $loc; // '$loc' is made globally available in 'core.php'
?>
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a name="top" id="contentTop"></a>
<h1 class="firstHeading"><? echo encodeHTML($officialDatabaseName); ?></h1>
<div id="bodyContent">
<h3 id="siteSub">From NUCAPT</h3>
<div id="contentSub"></div>
<!-- start content -->
<h2><? echo $HeaderString; ?></h2>
<?php
}
// --------------------------------------------------------------------
?>

File diff suppressed because it is too large Load Diff