Hi Omeka folks,
I'm hoping someone can help me with setting up the SharedShelf Link Plugin. I've been working with SharedShelf (SS) support, but haven't had any success so far.
This may be related to his post, but I don't know for sure. http://omeka.org/forums/topic/sharedshelflink-publishaction-bug#post-103641
Omeka 2.2.2
SharedShelfLink-2.0
My sandbox Omeka site that I'm using for testing is here:
http://omeka.wellesley.edu/omeka-2.2.2-sandbox/
I've installed the plugin and added an authorization token "archivesomeka" in the configuration form.
I followed instructions from SS here: http://help.artstor.org/ssadmin/index.php/Publishing_Targets#Add_the_Omeka_target_in_Shared_Shelf_Admin_Tool
Where I see the problem is at step 5. The drop down menu is not populating with the collections from the Omeka site. I have two different test collections created in our site. When setting up the target in SS, the drop down shows a spinner and loading, but then goes blank and is never populated with the available collections.
The URL i'm entering for the Omeka URL is: http://omeka.wellesley.edu/omeka-2.2.2-sandbox/
I've also tried without the http://, with an ending / and without.
I've also tried the following, since "Enter the URL of your Omeka collection" is a little vague.
http://omeka.wellesley.edu/omeka-2.2.2-sandbox/collections/
http://omeka.wellesley.edu/omeka-2.2.2-sandbox/collections/show/2
Another problem I've found that could possibly be a sign of a greater problem is when I filled in an Authorization Token in the configuration of Plugin: SharedShelf Link and I return to the configuration page the field seems to be reset and shows "<Your Token Here>". If I enter a token and click save changes it returns to the list of plugins and tells me I've updated successfully. If I go in again, I see the "<Your Token Here>"
If I look at the table sandbox222_options in MySQL there is an entry for
127 shared_shelf_link_token archivesomeka
So even though it's not showing on the admin page it's in the database. But I can't help think that this may be part of the problem.
SS support was able to look at the log on their server and this was the log:
<start log>
qateam@pteserver1:~$ wget http://omeka.wellesley.edu/omeka-2.2.2-sandbox/shared-shelf-link/publishing/publish/collection?__token=archivesomeka
--2014-08-07 14:58:08-- http://omeka.wellesley.edu/omeka-2.2.2-sandbox/shared-shelf-link/publishing/publish/collection?__token=archivesomeka
Resolving omeka.wellesley.edu (omeka.wellesley.edu)... 66.147.232.198
Connecting to omeka.wellesley.edu (omeka.wellesley.edu)|66.147.232.198|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160 [application/json]
Saving to: `collection?__token=archivesomeka'
100%[==========================================================================================>] 160 --.-K/s in 0s
2014-08-07 14:58:08 (13.7 MB/s) - `collection?__token=archivesomeka' saved [160/160]
qateam@pteserver1:~$ cat c*
Notice: Undefined index: __token in /var/www/html/omeka-2.2.2-sandbox/plugins/SharedShelfLink/controllers/PublishingController.php on line 30
{"success":false}qateam@pteserver1:~$
<end log>
line 30 of the PublishingController.php falls on the if line of this function:
public function publishAction()
{
// Bypass ACL security on publication processing.
//Omeka_Context::getInstance()->acl = null;
$token = get_option('shared_shelf_link_token');
if ($token == $_POST['__token']) {
new SharedShelfImporter();
$publication = new SharedShelfImporter;
$publication->createOrUpdateItem($_POST, $_FILES);
$this->_helper->json(array('success' => true));
} else {
$this->_helper->json(array('success' => false));
}
}
Thanks for any help,
Kara