Opened 12 years ago

Closed 12 years ago

#697 closed defect (fixed)

EXTJS 'Actions' drop down broken with ?id=x or uuid=x

Reported by: jsewell Owned by: fxp
Priority: major Milestone: v2.7.0
Component: General Version: v2.6.3
Keywords: Cc:

Description

When using the EXTJS GUI view component like so:

http://localhost:8080/geonetwork/apps/search/index_debug.html?id=1 or http://localhost:8080/geonetwork/apps/search/index_debug.html?uuid=28bd59ee-51fa-407c-b7df-2f9e27204f2c

none of the actions under the 'Actions' drop down work with error:

Uncaught TypeError: Cannot call method 'get' of undefined, MetadataMenu.js 84

This seems to be a problem with the catalogue.metadataStore not being populated.

A fix in App.js seems to be inserting the calls to metadataShow and metadataShowById into the onSuccess of a search like so:

catalogue.search('searchForm', function() {catalogue.metadataShowById(urlParameters.id, true);}, null, 1, true);

The only downside of this is you see the search panel before the view panel is drawn on the top.

Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=CB506E813C77E9498F043F1F951BB27601244A5420C8%40optimus.ms.a2end.com&forum_name=geonetwork-devel

Change History (2)

comment:1 by fxp, 12 years ago

Owner: changed from geonetwork-devel@… to fxp

comment:2 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

Committed revision 8558.

Note: See TracTickets for help on using tickets.