#Repository Link
#EPrints Plugin to dynamically link items in different EPrints repositories
#Rory McNicholl, ULCC, 2015
#Repository link configuration file
# How?
# The Repository link plugin will allow depositors to search other enabled
# repositoies from the workflow and save links in the master repository to
# associated items in other repositories. Those other enabled repositories
# (satellite repositories) will be able to check the master repository and
# display reciprocal links to the master repository thus closing the loop
# of association
# The plugin/package is designed to be installed on both the master and
# satellite repositories though it will work differently on each.
######################################################################################
# To this end, you should set the master parameter below to 1 only on one repository #
######################################################################################
# So far only used with a single satellite, however with some work on the
# response handling in /users/lookup/repo_links this could potentially be deployed on
# multiple satellite repositories
$c->{repo_link} = {
#Is this master (or local) repository or a satellite (or remote) repository?
#The master repo will store the repository links
#The metadata structure of the satellite repository will be unchanged
master => 0,
#Once this config file file is loaded on the master repository
#You will need to update the database structure.. (or can I do that?)
#Minimum characters to trigger the lookup of satellite repository from workflow
min_chars => 5,
#The hostname that will be used to contact master from satellite
master_repo_host => 'my.repo.ac.uk',
#The port that will be used to contact the master from satellite
#master_repo_port => 8081,
#The auto-complete script used to contact the satellite repositories from the workflow
#NB This and the workflow paste below could be potentially replaced by a direct ajax
#call to a cross-domain enabled search_script on the satellite(s)
lookup_script => "/users/lookup/repo_link",
#The config for the satellite repositories (see below)
remote_repos => [],
};
$c->{repo_link}->{remote_repos} = [
{
repo_uri => 'myother.repo.ac.uk',
#repo_port => 8080,
search_script => "/cgi/lookup/title_search"
},
];
=comment
###################################################################################################
###### Much as we would love to do this all automatically, we can't so...
###### In the MASTER repository - Add the following to cfg/workflow/eprint/default.xml