Ticket #949 (new defect)

Opened 4 months ago

Last modified 3 months ago

After 3.09 release

Reported by: ak19 Owned by: nobody
Priority: moderate Milestone:
Component: Greenstone3 Runtime Severity: major
Keywords: Cc:


1. In collectionConfig.xml: add support for ServiceRack? element attribute servlet-scope="OAIMessageRouter,..." ("all" by default if no servlet-scope specified). And then use it for OAIPMH ServiceRack? with servlet-scope="OAIMessageRouter".

Then merge OAIPMH.java's configure() and configureOAI().

2. Support metamode="replaceall" in modmetadata cgiaction, which will not print a warning and replace all meta with new value unlike when no metapos and prevmetaval provided with metamode=override.

Fix calling functions.

3. Also in modmetadata cgiaction: Maybe rename "override" to "replace" since override has a different meaning in metadata.xml to what it now has in doc.xml/archives.

Fix calling functions.

4. In documentedit_scripts(_util).js: replace saved state with current state AFTER building is successful or at least set archives metadata is successful? Ask permission first.

At present, editInitStates = currentStates and map_editor.savedOverlays = map_editor.overlays takes place just before set-archives-meta and rebuild() actually happens. That means if either goes wrong (particularly set-archives-meta is of importance here), then there's no way to attempt to resave the changes.

Change History

Changed 4 months ago by ak19

5. In javascript-global-functions.js

- confirm that callMetadataServer() is never called outside the file

- if so, rename to "_callMetadataServer()"

- make it take another compulsory param: onErrorResponseFunction (and rename responseFunction here to onSuccessResponseFunction)

if compulsory param is null onErrorResponseFunction, proceed as usual to print to console.log, else call the function parameter (onErrorResponseFunction).

- make all callers of callMetadataServer() take a final optional parameter onErrorResponseFunction.

Test for its existence ( https://stackoverflow.com/questions/5113374/javascript-check-if-variable-exists-is-defined-initialized/35504698) else default its value to null if(typeof onErrorResponseFunction === 'undefined') onErrorResponseFunction = null;

Finally, in all callers of callMetadataServer, pass this onErrorResponseFunction param as the pre-opts argument to callMetadataServer().

Changed 4 months ago by ak19

6. Phind applet to Java web start application. See how GLI Applet was done. As Dr Bainbridge warned, it will now run in its own window rather than run within the browser.

Changed 4 months ago by ak19

7. Tutorial for Zeddy's map-editor and its features.

Changed 3 months ago by ak19

Item 5 was completed in tandem with 4, included with the same commit revisions listed.

Changed 3 months ago by ak19

On Linux at least, the bundled JRE version 7.x complains of missing permissions in Java Web Start version of GLI application before failing to start the GLI web start app.

But using the the JRE of the JDK 8 I installed on the linux got past this issue. Consider releasing subsequent versions of Greenstone 3 with JRE 8 bundled?

Changed 3 months ago by ak19

Client-GLI and/or Java Web Start checklist from Kathy:

8. Running check-installation, I get FEDORA_HOME and VERSION printed out. even though I don't use fedora. Should I?

* Based on default settings in build.properties: fedora.home=#${basedir}/ext/fedora3

I get

FEDORA_HOME: /Scratch/kjdon/testing/3.09/#/Scratch/kjdon/testing/3.09/ext/fedora3

If I comment out the whole line, then I get: FEDORA_HOME: /Scratch/kjdon/testing/3.09/${fedora.home}

And if I have an empty value, I get


What should it be doing? And should it be printing them out anyway if we are not using fedora??

* when I run localhost:8989/greenstone3/cgi-bin/gliserver.pl?cmd=get-site-names&un=admin&pw=admin

it says error: no site specified. But thats weird as you are asking for site names so how do you know what to put???

9. shall we rename gli4gs3.xsl? eg to webgli.xsl? and I think it should go into pages folder as all the other pageaction ones live there...

Changed 3 months ago by ak19

Consider if item 6 is cancelled: Java Web Start has become deprecated and removed from Java 9 to 11 onwards. Dr Nichols has found this alternative:


Think of moving not just Phind, but more important GLI applet turned web start app in this direction if it's at all possible.

Note: See TracTickets for help on using tickets.