[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1262: Editor window unusable in IE if a <gmd:Date> is empty

#1262: Editor window unusable in IE if a <gmd:Date> is empty
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0
Keywords: |
---------------------+------------------------------------------------------
Using IE9, if the XML contains smth like
{{{
<gmx:editionDate><gmd:Date/></gmx:editionDate>
}}} (for a thesaurus keyword)

then ext-ux DateTime component barfs on
{{{
web-client/src/main/resources/apps/js/ext-ux/DateTime/DateTime.js:
this.dateValue = new
                   Date(Ext.isIE ? val.getTime() : val);
}}}

probably because val is undefined....

The js error makes the toolbar inactive, so editing a MD is not possible.
Experienced on 2.8.x and master.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1262: Editor window unusable in IE if a <gmd:Date> is empty
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0
Keywords: |
---------------------+------------------------------------------------------

Comment(by fxp):

The problem comes from val.getTime which is undefined. Not sure why.
{{{
this.dateValue = new Date(Ext.isIE && val.getTime ? val.getTime() : val);
}}}
Any better fix ?

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

I put a try catch block to get around this problem and other javascript issues...seems to work...

-----Original Message-----
From: GeoNetwork opensource Developer website [mailto:trac_osgeo@anonymised.com]
Sent: Thursday, 11 April 2013 4:30 PM
Subject: Re: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #1262: Editor window unusable in IE if a <gmd:Date> is empty

#1262: Editor window unusable in IE if a <gmd:Date> is empty
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@anonymised.com
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0
Keywords: |
---------------------+------------------------------------------------------

Comment(by fxp):

The problem comes from val.getTime which is undefined. Not sure why.
{{{
this.dateValue = new Date(Ext.isIE && val.getTime ? val.getTime() : val);
}}}
Any better fix ?

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is intended for the addressee(s) named and may contain confidential and/or privileged information.
If you are not the intended recipient, please notify the sender and then delete it immediately.
Any views expressed in this email are those of the individual sender except where the sender expressly and with authority states them to be the views of the Office of Environment and Heritage, NSW Department of Premier and Cabinet.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL

Hello,

Apologies...I should elaborate: Put a try catch block -catch the exception and do nothing. If there is a better way, please let me know...

Suresh

-----Original Message-----
From: Ramayah Suresh
Sent: Thursday, 11 April 2013 4:33 PM
To: 'geonetwork-devel@lists.sourceforge.net'
Subject: RE: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #1262: Editor window unusable in IE if a <gmd:Date> is empty

I put a try catch block to get around this problem and other javascript issues...seems to work...

-----Original Message-----
From: GeoNetwork opensource Developer website [mailto:trac_osgeo@anonymised.com]
Sent: Thursday, 11 April 2013 4:30 PM
Subject: Re: [GeoNetwork-devel] [GeoNetwork opensource Developer website] #1262: Editor window unusable in IE if a <gmd:Date> is empty

#1262: Editor window unusable in IE if a <gmd:Date> is empty
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@anonymised.com
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0
Keywords: |
---------------------+------------------------------------------------------

Comment(by fxp):

The problem comes from val.getTime which is undefined. Not sure why.
{{{
this.dateValue = new Date(Ext.isIE && val.getTime ? val.getTime() : val);
}}}
Any better fix ?

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is intended for the addressee(s) named and may contain confidential and/or privileged information.
If you are not the intended recipient, please notify the sender and then delete it immediately.
Any views expressed in this email are those of the individual sender except where the sender expressly and with authority states them to be the views of the Office of Environment and Heritage, NSW Department of Premier and Cabinet.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL

#1262: Editor window unusable in IE if a <gmd:Date> is empty
----------------------+-----------------------------------------------------
  Reporter: landry | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by fxp):

  * status: new => closed
  * resolution: => fixed

Comment:

2.8.x commit d358ba06d21b5fb6ab6d4628dd62e8dd4ad91f07
master commit c564ce0d33623f779296c151cb09bf90a4554daa

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262#comment:2&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1262: Editor window unusable in IE if a <gmd:Date> is empty
----------------------+-----------------------------------------------------
  Reporter: landry | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.8.1
Component: General | Version: v2.8.0
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by ianwallen):

  * milestone: v2.9.0 => v2.8.1

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1262#comment:3&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.