Sneep
Contents
Overview
The SNEEP (Social Networking Extensions to EPrints) project originally written at the ULCC provides a commenting functionality. This package includes a new implementation of the plugin which is compatible with both EPrints 3.1 and 3.2 in an easily installable and refactored package.
The original SNEEP project can be found at http://sneep.ulcc.ac.uk/wiki/index.php/Main_Page
Installation
The preferred installation of this SNEEP system is on the EPrints 3.2 version. To check your version of EPrints, please visit http://yourrepository/cgi/counter.
If you are installing this package on the older EPrints 3.1 version, some additional installation steps are required:
Extracting Sneep
- Extract the perl_lib folder from the downloaded file into the root of your eprints installation (usually /opt/eprints3 or /usr/share/eprints3)
- Extract the files from the archives/YOUR_REPOSITORY folder in the downloaded file into your archives/repository folder.
3. Extract the files from the cgi/sneep folder in the downloaded file into the cgi/ folder in your eprints root (usually /opt/eprints3 or /usr/share/eprints3).
Core Modifications
perl_lib/EPrints/DataSet.pm
In this file locate the following section:
request => { sqlname => "request", class => "EPrints::DataObj::Request", import => 1, index => 1, datestamp => "datestamp", },
Immediately after this block, add the following:
sneep => { sqlname => "sneep", class => "EPrints::DataObj::Sneep", index => 1, },
Next find the following in the same file,
sub get_sql_dataset_ids { return( qw/ import metafield cachemap message loginticket eprint user document saved_search subject history access request / ); }
At the end of the return line add sneep so that it resembles the following;
sub get_sql_dataset_ids { return( qw/ import metafield cachemap message loginticket eprint user document saved_search subject history access request sneep / ); }
Sneep Counter
To install the sneep counter in the execute the following SQL statement on your database;
INSERT INTO counters SET countername='sneepid',counter=0;
Final Steps
Run the following commands to complete installation of the sneep extension;
bin/epadmin reload ARCHIVEID bin/epadmin update_database_structure ARCHIVEID bin/generate_static ARCHIVEID bin/generate_abstracts ARCHIVEID
After doing this and restarting your webserver Sneep is now installed.