Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into es
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Mar 2, 2017
2 parents ce7c5f2 + abd3f9c commit ec758a2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
1 change: 0 additions & 1 deletion web-ui/src/main/resources/catalog/js/CatController.js
Expand Up @@ -332,7 +332,6 @@
try {
var tokens = location.href.split('/');
$scope.service = tokens[6].split('?')[0];
console.log($scope.service);
} catch(e) {
// console.log("Failed to extract current service from URL.");
}
Expand Down
32 changes: 32 additions & 0 deletions web-ui/src/main/resources/catalog/views/api/README.md
@@ -0,0 +1,32 @@
This folder contains a simple HTML page using the API mode.


Configure a custom host to load the API:

* In apache config add a new virtual host

```
<VirtualHost gnapi:80>
ServerName gnapi
DocumentRoot /data/dev/geonetwork/web-ui/src/main/resources/catalog/views/api/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /data/dev/geonetwork/web-ui/src/main/resources/catalog/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
```


* In ```/etc/hosts``` add the new host

```
127.0.0.1 gnapi
```

Load ```http://gnapi```.

0 comments on commit ec758a2

Please sign in to comment.