Changes between Initial Version and Version 1 of Ticket #1285


Ignore:
Timestamp:
May 13, 2013, 12:06:54 AM (11 years ago)
Author:
fxp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1285

    • Property Owner changed from geonetwork-devel@… to fxp
  • Ticket #1285 – Description

    initial v1  
    11In the !LoginForm widget add options to create a user information panel composed of:
    22 * User name & gravatar (customizable by template)
    3  * links to user profile and password update
     3 * links to user profile and password update (those links are only displayed if CAS is not enabled)
    44 * quick search links (configurable by user profile and widget app settings)
    55 * links to:
     
    1010[[Image(geonetwork-user-info-form.png)]]
    1111
     12
    1213This mode makes access to admin function easier and help user to make quick search and creating new metadata record.
     14
     15
     16== Default options ==
     17
     18By default, !LoginForm is not displaying user menu to preserve existing usage.
     19
     20Quick search links by default are:
     21 * Administrator
     22  * My metadata
     23  * Last updates
     24  * Record with indexing error
     25  * Harvested records
     26 * Reviewer
     27  * My metadata
     28  * Drafts
     29  * Last submitted records
     30 * Editor
     31  * My metadata
     32  * My Draft
     33  * Templates
     34
     35
     36== Developer note ==
     37
     38{{{
     39// A simple login form without user menu
     40var loginForm = new GeoNetwork.LoginForm({
     41            renderTo: 'login-form',
     42            catalogue: catalogue
     43        });
     44
     45
     46// Add user menu
     47var loginForm = new GeoNetwork.LoginForm({
     48            renderTo: 'login-form',
     49            catalogue: catalogue,
     50            withUserMenu: true
     51            searchForm: Ext.getCmp('searchForm') // The search form to interact with for quick search
     52        });
     53
     54// Turn off gravatar using a custom template for rendering user information
     55var loginForm = new GeoNetwork.LoginForm({
     56            ...
     57            userInfoTpl: new Ext.XTemplate('<tpl for=".">',
     58                    '<span class="gn-login">{name} {surname}</span>',
     59                    '</tpl>'),
     60
     61}}}