performant-software / Neatline

A lightweight framework for building interactive maps and publishing them on the web.
www.neatline.org
Other
105 stars 34 forks source link

Omeka items not linking to neatline #415

Closed caitmckinney closed 7 years ago

caitmckinney commented 7 years ago

Hi everyone,

Sorry if this is outside the scope of github--I'm not a developer but need help. I work at the Canadian Lesbian and Gay Archives and we need to hire a developer on short notice to fix our neatline/Omeka installation (http://digitalcollections.clga.ca/) Our current web developer has said that this problem is beyond the scope of their contract with us and that they don't know how to fix it. We have a group of very eager undergraduate students working on neatline exhibits this week and next, so are eager to get this issue solved.

Here is the deal:

We are having a problem linking neatline items to Omeka items. We have imported Omeka objects to our neatline exhibit, and did not receive any error messages but when we try to attach neatline items to Omeka items, it just hangs on the search pinwheel.

Detailed steps: Create neatline exhibit using and Image layer

If anyone knows a developer who might be able to help our organization with this problem on short notice, I can be reached at mckinneycait@gmail.com.

Thank you! Cait

davidmcclure commented 7 years ago

Hey @caitmckinney,

Sounds like some kind of bug / misconfiguration on the server. Try this - in Chrome, open up the Developer Tools (little 3-vertical-dots icon at top right > More Tools > Developer Tools), and then click on the "Console" tab. Then open up the Neatline exhibit and try to link a record to an item. Do any errors appear in the Console? Also, does this happen for all exhibits, or just one in particular?

Let me know, -David

jamiefolsom commented 7 years ago

Thanks @davidmcclure!

rondauva commented 7 years ago

What @jamiefolsom said! Thanks @davidmcclure!

caitmckinney commented 7 years ago

Thanks @davidmcclure It's all exhibits. Here is the error I got in the console: screen shot 2017-05-17 at 11 43 35 am

jamiefolsom commented 7 years ago

Hi @caitmckinney -- both the API version warning, and the missing API key error you're showing are fixed in the most recent commits merged to the master branch. Those fixes will be released within the next couple of weeks if all goes as planned. Whether that's what's causing the trouble you're seeing I'm not sure; your thoughts on that, @davidmcclure?

davidmcclure commented 7 years ago

Yeah, I don't think the Google Maps thing would affect this. @caitmckinney - does the problem show up when you search for Omeka items, or when you try to save the record? Eg, is it that you click the "Search Omeka Items" dropdown, and is just says "Searching" and no items ever appear; or can you select an item, but then it hangs when you save the Neatline record?

caitmckinney commented 7 years ago

@davidmcclure @jamiefolsom

It's the former situation "you click the "Search Omeka Items" dropdown, and is just says "Searching" and no items ever appear"

davidmcclure commented 7 years ago

Ok, sounds like it's something with Omeka's items/browse API, which provides the list of items. Let's try this - back in the Developer Tools, click on "Network." Then click on the "Search Omeka items" dropdown. In the Network tab, you should see a new entry that looks like:

browse?output=omeka-xml&search=&page=1&_=XXX

Click on that, and then open the "Response" tab in the menu that appears on the right. What does it say there?

caitmckinney commented 7 years ago

@davidmcclure Here's what it says, not sure if I've captured this the way you need. screen shot 2017-05-17 at 12 49 54 pm

davidmcclure commented 7 years ago

@caitmckinney Can you select everything in the box and paste it in? I wonder if there's something in the item content that's messing up the parsing that Neatline does.

(Be aware that the XML output will include metadata from the items that might not be public on the site - if there's anything that you don't want to have on the open web, shoot me an email at dclure at stanford dot edu.)

caitmckinney commented 7 years ago

@davidmcclure This is all the text in the response box.

CLGA_Omeka&Neatline problem.txt

Kent-Gerber commented 7 years ago

@caitmckinney,

In the Omeka dashboard and the Neatline Plugin tab do you see that the Omeka items have been imported into the Neatline exhibit? I had this issue and realized that I needed to enable the PHP-CLI function and point Omeka to it. We use Reclaim hosting and here is the help article related to fixing this issue - https://community.reclaimhosting.com/t/setting-the-php-cli-path-in-omeka/231

Maybe this can help.

caitmckinney commented 7 years ago

Thanks @Kent-Gerber . How does one see if the omeka items have been imported? When I import, I receive a "import successful" message, but I don't know how to verify that the items have been imported beyond that. I will ask the person who manages our hosting to try the PHP-CLI function fix--thanks for the suggestion.

Kent-Gerber commented 7 years ago

@caitmckinney, Here is a screenshot of the Omeka dashboard I am referencing. I am thinking of looking at the number of items in the Neatline exhibit after you click the "Import Items" option and seeing whether it shows the number of items you expected to import.

neatline import items on dashboard

caitmckinney commented 7 years ago

@Kent-Gerber Thanks for the screenshot.

In our exhibit, It only gives a count for the number of neatline items created in the exhibit (map points), not the number of imported Omeka items. Sounds like this could be our problem?

caitmckinney commented 7 years ago

Resolved! Turns out that the "Bagit" plugin was throwing a lot of exceptions that were affecting neatline. We don't actually use Bagit, so just uninstalled the plugin, and now neatline is working like a dream. Thanks everyone for your support.