Opened 12 years ago

Closed 12 years ago

#1285 closed enhancement (fixed)

Widgets / LoginForm / Add user info & quick search links

Reported by: fxp Owned by: fxp
Priority: minor Milestone: v2.10.0 RC2
Component: General Version: v2.11.0
Keywords: Cc:

Description (last modified by fxp)

In the LoginForm widget add options to create a user information panel composed of:

  • User name & gravatar (customizable by template)
  • links to user profile and password update (those links are only displayed if CAS is not enabled)
  • quick search links (configurable by user profile and widget app settings)
  • links to:
    • create metadata
    • import metadata
    • administration

This mode makes access to admin function easier and help user to make quick search and creating new metadata record.

Default options

By default, LoginForm is not displaying user menu to preserve existing usage.

Quick search links by default are:

  • Administrator
    • My metadata
    • Last updates
    • Record with indexing error
    • Harvested records
  • Reviewer
    • My metadata
    • Drafts
    • Last submitted records
  • Editor
    • My metadata
    • My Draft
    • Templates

Developer note

// A simple login form without user menu
var loginForm = new GeoNetwork.LoginForm({
            renderTo: 'login-form',
            catalogue: catalogue
        });


// Add user menu
var loginForm = new GeoNetwork.LoginForm({
            renderTo: 'login-form',
            catalogue: catalogue,
            withUserMenu: true
            searchForm: Ext.getCmp('searchForm') // The search form to interact with for quick search
        });

// Turn off gravatar using a custom template for rendering user information 
var loginForm = new GeoNetwork.LoginForm({
            ...
            userInfoTpl: new Ext.XTemplate('<tpl for=".">', 
                    '<span class="gn-login">{name} {surname}</span>',
                    '</tpl>'),

Attachments (1)

geonetwork-user-info-form.png (41.3 KB ) - added by fxp 12 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by fxp, 12 years ago

Description: modified (diff)
Owner: changed from geonetwork-devel@… to fxp

comment:2 by fxp, 12 years ago

Resolution: fixed
Status: newclosed
  • master commit fb0d0d5f0b89dff2740f2e2e1a71dd953b3c399f
  • 2.10.x commit 153985faa3142ff80843c8fec9a1ea9725a70a9c
Note: See TracTickets for help on using tickets.