| 1 | = Proposal title = |
| 2 | |
| 3 | || '''Date''' || 2011/05/23 || |
| 4 | || '''Contact(s)''' || François Prunayre || |
| 5 | || '''Last edited''' || || |
| 6 | || '''Status''' || draft/to be discussed || |
| 7 | || '''Assigned to release''' || Release number, to be determined || |
| 8 | || '''Resources''' || Module available in sandbox || |
| 9 | || '''Ticket #''' || || |
| 10 | |
| 11 | == Overview == |
| 12 | |
| 13 | |
| 14 | This proposal aims to move current GUI for search, view and editing to a new layout based on the work made in the [https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/sandbox/guiwidgets/web-client/ widgets sandbox]. The main application is composed of one page which allows user to search, view and edit metadata records. The administration remains as it was. |
| 15 | |
| 16 | |
| 17 | === Proposal Type === |
| 18 | * '''Type''': User interface |
| 19 | * '''App''': GeoNetwork |
| 20 | * '''Module''': User interface |
| 21 | |
| 22 | === Links === |
| 23 | * '''Documents''': |
| 24 | * Sandbox creation proposal: http://trac.osgeo.org/geonetwork/wiki/proposals/componentsBasedGui |
| 25 | * '''Demo web sites ''': |
| 26 | * http://188.165.244.186/geonetwork/ |
| 27 | * http://opencarto.net/geonetwork/ |
| 28 | * http://geosourcedemo.brgm.fr/geosource/ |
| 29 | * http://geo.semide.net/geonetwork/ |
| 30 | * http://www.mymaps.gov.au/geonetwork/ |
| 31 | * Blog & description (screenshots): |
| 32 | * http://www.neogeo-online.net/blog/archives/1045/ |
| 33 | * http://www.neogeo-online.net/blog/archives/1075/ |
| 34 | * '''Email discussions''': |
| 35 | * '''Other wiki discussions''': |
| 36 | |
| 37 | === Voting History === |
| 38 | * Vote proposed by X on Y, result was +/-n (m non-voting members). |
| 39 | |
| 40 | ---- |
| 41 | |
| 42 | == Motivations == |
| 43 | |
| 44 | The idea was to provide a sample client application which could be easily modified and customized for your needs. It depends on simple JS components. The view and edit mode still depends on GeoNetwork XSLTs rendering. |
| 45 | |
| 46 | == Proposal == |
| 47 | |
| 48 | A new maven module nammed "web-client" has been created for the client application. This module is only composed of JS and html page. YUI pluggin is used for compression (all in one file for the application + ext.js). The number of JS dependencies has been reduced to the minimum focusing on using : |
| 49 | * !OpenLayers |
| 50 | * Ext.js + some Ext.ux |
| 51 | * !GeoExt.js + one !GeoExt.ux |
| 52 | The overall size of JS decrease and the number of request for the page load also decrease which results on faster page initialization. |
| 53 | |
| 54 | |
| 55 | The 2 GUI could coexist for some times event if it's probably better to clean the code base. Hook needs to be added to : |
| 56 | * the admin create metadata action |
| 57 | * the admin import results page |
| 58 | |
| 59 | New services has been created in order to make the old and new GUI work. |
| 60 | XSLTs for view and edit mode has been refactored a bit and grouped in a metadata folder. |
| 61 | Hardcoded CSS styles have been removed. |
| 62 | |
| 63 | |
| 64 | === New feature : === |
| 65 | |
| 66 | * search form : |
| 67 | * autocompletion (using !OpenSearch suggestion) |
| 68 | * organisation search field |
| 69 | * scale denominator search field |
| 70 | * spatial representation type search field |
| 71 | * validation status search field |
| 72 | * search results : |
| 73 | * Thumbnail view |
| 74 | * Bbox highlighting |
| 75 | * Zoom to bbox |
| 76 | * Display organisation logo |
| 77 | * validation status information |
| 78 | * select "all in page" |
| 79 | * summary by keyword to refine the current search |
| 80 | * Metadata view : |
| 81 | * a simple view mode by default |
| 82 | * Editor : |
| 83 | * suggestion panel |
| 84 | * Interactive map |
| 85 | * Search for WMS from the add WMS panel |
| 86 | * Layer opacity slider in layer tree |
| 87 | |
| 88 | For the search results, access to all actions are available using a contextual menu (right click) or using the "Actions" menu which is displayed next to the title. |
| 89 | |
| 90 | === Missing feature : === |
| 91 | |
| 92 | * search form |
| 93 | * distributed search form (Z3950RepositoryStore.js already provides access to the list of nodes) |
| 94 | * INSPIRE search fields |
| 95 | * search results (Template.js) |
| 96 | * remote search when harvested |
| 97 | * bbox, date |
| 98 | * i18n : Update/Create language file from existing element in strings.xml. Add missing one (see lang folder). |
| 99 | * Interactive map |
| 100 | * WMSTime button to be restored |
| 101 | |
| 102 | |
| 103 | === Backwards Compatibility Issues === |
| 104 | None that I can see |
| 105 | |
| 106 | === New libraries added === |
| 107 | New libraries : some ux for Ext.js (Rating). |
| 108 | Libraries removed (for the client) : Scripaculos, Prototoype |
| 109 | |
| 110 | == Risks & improvements == |
| 111 | |
| 112 | Add missing features. |
| 113 | |
| 114 | Future improvements: Provide JSON response (from Jeeves services) to reduce the XML parsing on the client side. |
| 115 | |
| 116 | == Participants == |
| 117 | |
| 118 | * François Prunayre |
| 119 | * Part of the JS libs comes from the geocat.ch work. |