"index.php"); if(isset($_POST['op'])) { $op = $_POST['op']; } else { $op = $_GET['op']; } if($op == "login") { // validate username and password if($_POST['username'] == $config['admin_username'] && md5($_POST['password']) == $config['admin_password']) { // mark user as logged in $_SESSION['logged_in'] = true; } // forward to admin page header("Location: admin.php"); exit; } // check if user is logged in if($_SESSION['logged_in'] !== true) { include("include/header.inc.php"); loginForm(); } else { // include html header if(!isset($op) || $op != "logout") { include("include/header.inc.php"); } switch($op) { case "updateIndex": updateIndex($_POST); break; case "addArchive": addArchive($_POST); break; case "indexArchive": updateIndex($_GET); break; case "deleteArchive": deleteArchive(isset($_POST['archive']) ? $_POST['archive'] : $_GET['archive'], $_GET['confirm']); break; case "editArchive": editArchive(isset($_POST['archive']) ? $_POST['archive'] : $_GET['archive']); break; case "updateArchive": updateArchive($_POST); break; case "viewArchive": viewArchive(isset($_POST['archive']) ? $_POST['archive'] : $_GET['archive']); break; case "archiveAction": if(isset($_POST['updateIndex'])) { updateIndex($_POST); } else if(isset($_POST['deleteArchive'])) { deleteArchive($_POST['archive']); } else if(isset($_POST['editArchive'])) { editArchive($_POST['archive']); } else { viewArchive($_POST['archive']); } break; case "newArchive": newArchive($_POST); break; case "archives": showArchives(); break; case "links": showLinks(); break; case "addLink": addLink($_POST); break; case "deleteLink": deleteLink(isset($_POST['link']) ? $_POST['link'] : $_GET['link'], $_GET['confirm']); break; case "editLink": editLink(isset($_POST['link']) ? $_POST['link'] : $_GET['link']); break; case "updateLink": updateLink($_POST); break; case "linkAction": if(isset($_POST['deleteLink'])) { deleteLink($_POST['link']); } else { editLink($_POST['link']); } break; case "config": editConfig(); break; case "updateConfig": updateConfig($_POST); break; case "oai": oaiInfo(); break; case "logout": $_SESSION['logged_in'] = false; header("Location: admin.php"); break; default: unset($op); adminScreen(); break; } if(isset($op)) { ?>

Back to Admin Harvester Administration

Please login to access the administration interface

Username:
Password:
 
Update Metadata Index



Back to Archives Add an Archive

Title of website:
Site URL:
E.g., http://www.yourarchive.com
Base URL for OAI archive:
E.g., http://www.yourarchive.com/oai/index.php
Description:
Brief description of the website and its scholarly resources.
Discipline:
Select the discipline that most closely matches the papers found in your archive.
Index method: ListRecords    ListIdentifiers
ListRecords is typically faster, but ListIdentifiers may work in situations where ListRecords does not.
 


Back to Archives Add an Archive

You did not fill out one of the form fields. Please go back and complete your submission. query("SELECT id FROM $dbtable[archives] WHERE oai='$vars[archive_oai]'"); if($db->num_rows($result) != 0) { ?> This archive has already been indexed. The URL you entered does not appear to be a valid OAI 1.1 or 2.0 archive. Please go back and verify that you entered the correct URL. query("INSERT INTO $dbtable[archives] (name, repositoryname, email, url, oai, protocol, description, rst, index_method, datestamp) VALUES ('$vars[archive_name]', '$vars[repositoryname]', '$vars[admin_email]', '$vars[archive_url]', '$vars[archive_oai]', '$vars[protocol_version]', '$vars[archive_description]', '$vars[archive_rst]', '$vars[index_method]', NOW())"); // get archive's id $result = $db->query("SELECT id FROM $dbtable[archives] WHERE oai='$vars[archive_oai]'"); $items = $db->assoc_array($result); ?> The archive has been successfully added.

Click here to index this archive now.

Back to Archives Delete an Archive

query("SELECT name FROM $dbtable[archives] WHERE id='$archive'"); if($db->num_rows($result) == 0) { ?> Invalid archive selected. assoc_array($result); if(!empty($confirm)) { // delete the archive $db->query("DELETE FROM $dbtable[archives] WHERE id='$archive'"); // delete any indexed items from this archive $db->query("DELETE FROM $dbtable[metadata] WHERE archive='$archive'"); ?> The archive has been successfully deleted.

Back to Archives Are you sure you want to delete the archive from the harvester database? This will also delete any items indexed from this archive.

Yes | No Edit an Archive

query("SELECT * FROM $dbtable[archives] WHERE id='$archive'"); if($db->num_rows($result) == 0) { ?> Invalid archive selected. assoc_array($result); $index_method[$items[index_method]] = " checked=\"checked\""; ?>
Title of website:
Repository name:
Admin email:
Site URL:
E.g., http://www.yourarchive.com
Base URL for OAI archive:
E.g., http://www.yourarchive.com/oai/index.php
OAI protocol version:
Description:
Brief description of the website and its scholarly resources.
Discipline:
Select the discipline that most closely matches the papers found in your archive.
Index method: /> ListRecords    /> ListIdentifiers
ListRecords is typically faster, but ListIdentifiers may work in situations where ListRecords does not.
 
Edit an Archive

You did not fill out one of the required form fields. Please go back and complete your submission. query("UPDATE $dbtable[archives] SET name='$vars[archive_name]', repositoryname='$vars[repositoryname]', email='$vars[archive_email]', url='$vars[archive_url]', oai='$vars[archive_oai]', protocol='$vars[archive_protocol]', description='$vars[archive_description]', rst='$vars[archive_rst]', index_method='$vars[index_method]' WHERE id='$vars[archive_id]'"); ?> The archive has been successfully updated.

Back to Archives Archive Details

query("SELECT * FROM $dbtable[archives] WHERE id='$archive'"); if($db->num_rows($result) == 0) { ?> Invalid archive selected. assoc_array($result); ?>
Title of website:
Repository name:
Admin email:
Site URL:
Base URL for OAI archive:
OAI protocol version:
Description:
Discipline:
Number of papers indexed: (Browse)
Index last updated:
 


Back to Archives query("SELECT id, name FROM $dbtable[archives] ORDER BY LOWER(name)"); $num_archives = $db->num_rows($result); ?> Update Metadata Index

Click here to update the metadata index for all archives (may take up to several minutes or hours, depending on the number and size of the archives to be indexed).



List of Archives Indexed

No archives indexed.
Perform function on the selected archive.





Add Archive

Click here to add a new archive to your index. query("SELECT id, title FROM $dbtable[links] ORDER BY title"); $num_links = $db->num_rows($result); ?> Related Links

No archives indexed. Perform function on the selected link.





Add Link

Title:
URL:
Annotation:
 
Related Links

query("INSERT INTO $dbtable[links] (title, url, annotation) VALUES ('$vars[title]', '$vars[url]', '$vars[annotation]')"); ?> Link added successfully.

Back to Links Delete a Link

query("SELECT title FROM $dbtable[links] WHERE id='$link'"); if($db->num_rows($result) == 0) { ?> Invalid link selected. assoc_array($result); if(!empty($confirm)) { // delete the link $db->query("DELETE FROM $dbtable[links] WHERE id='$link'"); ?> The link has been successfully deleted.

Back to Links Are you sure you want to delete the link ?

Yes | No Edit a Link

query("SELECT * FROM $dbtable[links] WHERE id='$link'"); if($db->num_rows($result) == 0) { ?> Invalid link selected. assoc_array($result); ?>
Title:
URL:
Annotation:
 
Related Links

query("UPDATE links SET title='$vars[title]', url='$vars[url]', annotation='$vars[annotation]' WHERE id='$vars[link]'"); ?> Link updated successfully.

Back to Links Harvester Configuration

Access

Admin username:
Admin password:
Leave blank to keep the current password.
 

Description

Full title of this site:
Abbreviated title of this site:
Contact email:
Description of this site:
Introduction:
This text will be displayed on the site home page.
/> Allow users to submit archives to this site
Enable this option to make the archive submission form available to users.
Archive submission instructions:
Instructions to be displayed on the archive submission form.
/> Send a notification email to the contact email whenever a new archive is submitted to the site
 

Appearance

Site header:
Site footer:
 
Harvester Configuration

query("UPDATE $dbtable[harvester_config] SET admin_username='$vars[admin_username]', long_title='$vars[long_title]', short_title='$vars[short_title]', contact_email='$vars[contact_email]', description='$vars[description]', intro='$vars[intro]', allow_add='$vars[allow_add]', add_instructions='$vars[add_instructions]', add_notify='$vars[add_notify]', html_header='$vars[html_header]', html_footer='$vars[html_footer]'" . (empty($vars[admin_password]) ? "" : ", admin_password='" . md5($vars[admin_password]) . "'")); ?> The harvester configuration settings have been successfully updated. OAI Indexing Information

This software is a free metadata indexing system that allows you to create a searchable index of the metadata from Open Archives Initiative-compliant archives.

Additionally, this site itself adheres to the Open Archives Initiative Protocol for Metadata Harvesting. This means that the metadata gathered in this archive can in turn be indexed by larger sites such as OAIster.

The base URL for the OAI archive for this site is: oai/ Harvester Administration

» Configuration
   Modify the harvester configuration settings.

» Archives
   View and modify harvested archives, and update the metadata index.

» Add Archive
   Add a new archive to your index.

» Related Links
   Maintain a list of related links.

» Indexing Information
   Information about this site's OAI metadata indexing interface.

» Sign Out
   Log out of the harvester admin.