[GeoNetwork-users-fr] Geonetwork 3.04 - Erreur Javascript lors de l'ajout d'un nouvel enregistrement

Bonjour,

Depuis 2 ans nous utilisons Geonetwork 2.10 dans notre Infrastructure de Données Spatiale (IDS) basée sur la solution Georchestra.

Nous testons la dernière version de notre SDI intégrant Geonetwork 3.0.4 et nous rencontrons des difficultés lorsque nous essayons d’ajouter un nouvel enregistrement, une page blanche apparaît et des erreurs Javascript s’affichent dans le navigateur.

A noter, en mode debug (ajout du paramètre ?debug), la page s’affiche correctement.

Navigator console
SyntaxError: expected expression, got ‘<’
Error: [$injector:nomod] http://errors.angularjs.org/1.3.4/$injector/nomod?p0=gn_editor

gn_editor.js


302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.





302 Found

Found


The document has moved here.


(function() {angular.module(‘gn’).run([‘$templateCache’, function($templateCache) {
$templateCache.put(‘…/…/catalog/components/common/popup/partials/popup.html’, ‘

×

{{options.title}}

’);
$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-list.html’, ‘
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-multiselect.html’, ‘
{{facetConfig.label | translate}}
{{f['@label'] || f['@name']}}  ({{f['@count']}})
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/dimension-facet-list.html’, ‘

{{f['@label'] | translate}}

’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-item.html’, ‘
{{facet}}
{{f['@count']}}{{f['@label'] || f['@name']}} {{facetResults[facet].length-initialMaxItems}} {{ (facetResults[facet].length >= maxItems) ? ('more' | translate) : ('less' | translate) }}
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-breadcrumb.html’, ‘’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/dimension-facet-category.html’, '
  • <span data-ng-

    Merci pour vos retours
    Cordialement

    Rémi EVE
    SDI Guyane SIG

Bonjour,

Il doit probablement y avoir une erreur de syntaxe sur laquelle wro4j
bloque.
Regarde dans les logs de geonetwork voir si tu ne trouves pas une erreur de
wro4j, si oui tu auras le fichier et la ligne qui pose problème.

On Thu, Apr 6, 2017 at 2:59 PM, <Remi.EVE@anonymised.com> wrote:

Bonjour,

Depuis 2 ans nous utilisons Geonetwork 2.10 dans notre Infrastructure de
Données Spatiale (IDS) basée sur la solution Georchestra.

Nous testons la dernière version de notre SDI intégrant Geonetwork 3.0.4
et nous rencontrons des difficultés lorsque nous essayons d'ajouter un
nouvel enregistrement, une page blanche apparaît et des erreurs Javascript s'affichent
dans le navigateur.

A noter, en mode debug (ajout du paramètre ?debug), la page s'affiche
correctement.

*Navigator console*
*SyntaxError: expected expression, got '<'*
*Error:
[$injector:nomod] AngularJS
<AngularJS*

*gn_editor.js*
*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/components/admin/BatchService.js
<https://localhost/static/gn_editor.js/catalog/components/admin/BatchService.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/components/common/popup/DraggableDirective.js
<https://localhost/static/gn_editor.js/catalog/components/common/popup/DraggableDirective.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/components/UrlUtilsService.js
<https://localhost/static/gn_editor.js/catalog/components/UrlUtilsService.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/components/catalog/CatalogService.js
<https://localhost/static/gn_editor.js/catalog/components/catalog/CatalogService.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/components/search/facets/FacetsConfigService.js
<https://localhost/static/gn_editor.js/catalog/components/search/facets/FacetsConfigService.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*...*
*...*

*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>302 Found</title>*
*</head><body>*
*<h1>Found</h1>*
*<p>The document has moved <a
href="https://localhost/static/gn_editor.js/catalog/js/GnEditorModule.js
<https://localhost/static/gn_editor.js/catalog/js/GnEditorModule.js&gt;&quot;&gt;here&lt;/a&gt;\.&lt;/p&gt;\*
*</body></html>*

*(function() {angular.module('gn').run(['$templateCache',
function($templateCache) {*
*$templateCache.put('../../catalog/components/common/popup/partials/popup.html',
'<div class="modal-dialog"><div class="modal-content"><div
class="modal-header"><button type="button" class="close"
data-dismiss="modal" aria-hidden="true">&times;</button><h4
class="modal-title" id="myModalLabel"><span
data-translate="">{{options.title}}</span></h4></div><div
class="modal-body" data-ng-transclude=""></div></div></div>');*
*$templateCache.put('../../catalog/components/search/facets/partials/facet-list.html',
'<div class="gn-facet-list"><div data-ng-repeat="f in facetConfig"
data-gn-facet="facets" data-params="params" data-facet="{{f.label}}"
data-index-key="{{f.key}}"
data-current-facets="currentFacets"></div></div>');$templateCache.put('../../catalog/components/search/facets/partials/facet-multiselect.html',
'<div class="gn-facet" data-ng-show="facetObj"><h5
gn-collapse="{{contentCollapsed}}" ><span class="fa
fa-arrow-circle-o-right" ng-class="{\'fa-rotate-90\': !collapsed}"></span>
{{facetConfig.label | translate}} </h5><div class="list-group"
ng-class="{\'collapse\': contentCollapsed}"><div class="checkbox
list-group-item" data-ng-repeat="f in facetObj"
data-ng-click="updateSearch(f[\'@name\'], $event)"
data-ng-class="{\'selected\': isInSearch(f[\'@name\'])}"><label><input
data-ng-checked="isInSearch(f[\'@name\'])" type="checkbox"><span
class="gn-facet-label">{{f[\'@label\'] || f[\'@name\']}}</span>&nbsp; <span
class="count">({{f[\'@count\']}})</span></label></div></div></div>');$templateCache.put('../../catalog/components/search/facets/partials/dimension-facet-list.html',
'<div class="gn-facet-list"><div data-ng-repeat="f in dimension"
class="gn-facet gn-facet-{{f[\'@label\']}}" data-ng-show="f.category"><a
class="gn-facet-collapseall" data-ng-if="$index === 0"
data-ng-click="collapseAll()" title="{{\'collapseAllFacet\' |
translate}}"><i class="fa fa-fw fa-angle-double-left"></i></a><h4
data-gn-collapse="{{collapsed}}"><i class="fa fa-fw"
data-ng-class="collapsed ? \'fa-angle-left\' : \'\'"></i> {{f[\'@label\'] |
translate}} </h4><div data-gn-facet-dimension-category="f.category"
data-category-key="f[\'@label\']" data-params="params"
data-facet-config="facetConfig" data-ng-class="{\'collapse\':
collapsed}"></div></div></div>');$templateCache.put('../../catalog/components/search/facets/partials/facet-item.html',
'<div class="gn-facet" data-ng-show="facetResults[facet].length > 1"><h5
data-gn-collapse="{{collapsed}}"><i class="fa" data-ng-class="collapsed ?
\'fa-angle-left\' : \'\'"></i><span
data-translate="">{{facet}}</span></h5><div class="list-group"
data-ng-class="{\'collapse\': collapsed}"><a class="list-group-item"
data-ng-repeat="f in facetResults[facet]" data-ng-click="add(f)" href=""
data-ng-if="$index < maxItems"><span
class="badge">{{f[\'@count\']}}</span><span
class="gn-facet-label">{{f[\'@label\'] || f[\'@name\']}}</span></a><button
data-ng-click="toggle()"
data-ng-if="facetResults[facet].length-initialMaxItems > 0" class="btn
btn-link"> {{facetResults[facet].length-initialMaxItems}} {{
(facetResults[facet].length >= maxItems) ? (\'more\' | translate) :
(\'less\' | translate) }}
</button></div></div>');$templateCache.put('../../catalog/components/search/facets/partials/facet-breadcrumb.html',
'<div class="gn-facet-breadcrumb" data-ng-show="currentFacets.length >
0"><ol class="breadcrumb"><li data-ng-repeat="facet in currentFacets"><a
data-ng-click="remove(facet)" href=""><span>{{facet.field | translate}}:
{{facet.label}}</span></a></li></ol></div>');$templateCache.put('../../catalog/components/search/facets/partials/dimension-facet-category.html',
'<ul class="list-group"><li data-ng-repeat="c in category"
data-ng-init="path = buildPath(c); isSelected = isOnDrillDownPath(c)"
data-ng-if="$index < maxItems" class="list-group-item"><span data-ng-*

*...*

Merci pour vos retours
Cordialement

Rémi EVE
SDI Guyane SIG

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users-fr mailing list
GeoNetwork-users-fr@lists.sourceforge.net
geonetwork-users-fr List Signup and Options

--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492

Bonjour Florent,

Non malheureusement, aucune erreur n’est a noter concernant wro4J dans les logs…

Cdt
Rémi EVE

-----Florent Gravin <florent.gravin@anonymised.com> a écrit : -----

A : Remi.EVE@anonymised.com
De : Florent Gravin <florent.gravin@anonymised.com.1…>
Date : 06/04/2017 10:34
Cc: “geonetwork-users-fr@anonymised.comsts.sourceforge.net” <geonetwork-users-fr@lists.sourceforge.net>
Objet : Re: [GeoNetwork-users-fr] Geonetwork 3.04 - Erreur Javascript lors de l’ajout d’un nouvel enregistrement

Bonjour,

Il doit probablement y avoir une erreur de syntaxe sur laquelle wro4j
bloque.
Regarde dans les logs de geonetwork voir si tu ne trouves pas une erreur de
wro4j, si oui tu auras le fichier et la ligne qui pose problème.

On Thu, Apr 6, 2017 at 2:59 PM, <Remi.EVE@anonymised.com> wrote:

Bonjour,

Depuis 2 ans nous utilisons Geonetwork 2.10 dans notre Infrastructure de
Données Spatiale (IDS) basée sur la solution Georchestra.

Nous testons la dernière version de notre SDI intégrant Geonetwork 3.0.4
et nous rencontrons des difficultés lorsque nous essayons d’ajouter un
nouvel enregistrement, une page blanche apparaît et des erreurs Javascript s’affichent
dans le navigateur.

A noter, en mode debug (ajout du paramètre ?debug), la page s’affiche
correctement.

Navigator console
SyntaxError: expected expression, got ‘<’
Error:
[$injector:nomod] http://errors.angularjs.org/1.3.4/$injector/nomod?p0=gn_editor
<http://errors.angularjs.org/1.3.4/$injector/nomod?p0=gn_editor>

gn_editor.js


302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.




302 Found

Found


The document has moved here.





302 Found

Found


The document has moved here.


(function() {angular.module(‘gn’).run([‘$templateCache’,
function($templateCache) {

$templateCache.put(‘…/…/catalog/components/common/popup/partials/popup.html’,

×

{{options.title}}

’);
$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-list.html’,
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-multiselect.html’,

{{facetConfig.label | translate}}
{{f['@label'] || f['@name']}}  ({{f['@count']}})
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/dimension-facet-list.html’,

{{f['@label'] |
translate}}

’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-item.html’,
{{facet}}
{{f['@count']}}{{f['@label'] || f['@name']}} {{facetResults[facet].length-initialMaxItems}} {{
(facetResults[facet].length >= maxItems) ? ('more' | translate) :
('less' | translate) }}
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/facet-breadcrumb.html’,
’);$templateCache.put(‘…/…/catalog/components/search/facets/partials/dimension-facet-category.html’,
'


camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


GeoNetwork-users-fr mailing list
GeoNetwork-users-fr@anonymised.coms.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users-fr