Geonetwork - Javascript error when adding new record

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Geonetwork - Javascript error when adding new record

Remi.EVE
Hi,

Since two years, we are using Geonetwork 2.10 in our Spatial Data Infrastructure based on Georchestra solution.

We are testing the last release of our SDI integrating Geonetwork 3.0.4 and we have some trouble when clicking on "Add new record", a blank page is displayed and some Javascript errors occurs.

To note, when we are in debug mode (add parameter ?debug), the page is displayed and we can had new record.


Navigator console
SyntaxError: expected expression, got '<'

gn_editor.js
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
</body></html>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
</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">here</a>.</p>
</body></html>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
</body></html>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
</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">here</a>.</p>
</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-
...



Thanks for your help.

Best regards
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 mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork