Exhibit Builder - Attach Item doesn't respond

I've cloned the Exhibitbuilder plugin from the git repository in the plugins directory of my Omeka 2.1 installation. The installation went fine and I can create Exhibits. But when I click the "Attach an item" button in "Edit page content", nothing happens (except that the URL gets "1#" added to it.

(Observed in Google Chrome, on a macbook pro with MAMP server)

Any idea what's causing this? Is this plugin finished?

-Iwe

That sounds like there's some error preventing the Javascript from executing.

Is there anything in your browser's JS/error console?

When I open the edit-page-content page, the following error appears once:

Uncaught ReferenceError: google is not defined
(anonymous function)
(anonymous function) jquery.js:612
x.extend.globalEval jquery.js:612
x.fn.extend.domManip jquery.js:6302
x.fn.extend.append jquery.js:6068
(anonymous function) jquery.js:6195
x.extend.access jquery.js:861
x.fn.extend.html jquery.js:6159
jQuery.ajax.success exhibits.js:115
c jquery.js:3074
p.fireWith jquery.js:3186
k jquery.js:8253
r

And these errors appear 8 times (for a 16 items page layout):

GET http://127.0.0.1/vb/files/square_thumbnails/63db38fcf237455cc89469cc6e6a1fb2.jpg 404 (Not Found) jquery.js:6590
x.extend.buildFragment jquery.js:6590
x.fn.extend.domManip jquery.js:6258
x.fn.extend.append jquery.js:6068
(anonymous function) jquery.js:6195
x.extend.access jquery.js:861
x.fn.extend.html jquery.js:6159
jQuery.ajax.success exhibits.js:115
c jquery.js:3074
p.fireWith jquery.js:3186
k jquery.js:8253
r

Do you have internet access on the computer viewing this site?

"google is not defined" sounds like an error from some script that's attempting to use some Google Javascript API.

The Exhibit Builder itself doesn't use any Google APIs, so it must be something added by another plugin. From where it's appearing, it seems to be something that appears when the Exhibit Builder tries to load the list of items, or possibly on the items search form.

Could this be a custom plugin from your installation that's adding this call to a Google API?

I think I've found the problem.

I supplemented the search partial with google maps js code (for autocompletion of the search field) in my maps plugin.
Now the partial gets loaded, but the js code gives this error because the google places library isn't loaded. No idea how to solve this problem though.

A thing that I noticed is that clicking "Attach an Item" loads the public search form, and not the admin form (or at least when I cancel loading my "public_items_search"-hook of my Geolocations plugin, everything seems alright.

Hope you have some quick insights on this.

I am now loading the google API code in the hookInitialize of the Geolocation plugin. Now everything works fine (except that I probably made the loading time of every page a bit longer).