Merge pull request #43 from heikkidoeleman/master

1116: GetRecords hardcoded prefixes in TypeNames check
Added support for local:// xlinks to improve performance of linking back to same geonewtork instance

See proposal: http://trac.osgeo.org/geonetwork/wiki/LocalHrefProtocol
using latest version of maven repo again so that config-migration can be resolved
a few changes to make local:// link more robust in cases of failure or exceptions
add element will now add language combo box if required
Create pdf formatter
fixed a bug when multiple requests change thesaurus
implemented accessDenied page
fixed healthcheck security
Add element will now add language combo box if required

Added in 99879dee837ba8be76e4779f18370b874f3e5030 for classic editor. Applied to widget editor.
Do not display @geonet:addedObj attribute in the editor.

Related to commit 99879dee837ba8be76e4779f18370b874f3e5030.
Widgets / display link to feature catalogue in dataset's metadata default view (#1133)
Updated MEF load process to generate better debugging messages and better error message so that it would be easier to identify where the error is.
By better, in this case it meant adding the folder to the error message otherwise it would generally only specify "metadata.xml" which is the default filename...
Fix for 1135, Transaction fails to import if user does not have a group
Set maxWritesInTransaction on spatial database to 1 by default - this is
safest as it sets the spatial index writer to autocommit thus protecting
it from problems when connection to db is lost. Now safe to use as a result
of earlier bug fixes.
Editor / Improve keyword selection (#1129)

Squashed commit of the following:

commit 4ee245ad702ef09f21b27531e7d4ea75478f057d
Merge: 60b8cdd fdcc8b5
Author: François Prunayre <fxprunayre@gmail.com>
Date:   Fri Nov 2 10:52:51 2012 +0100

    Merge remote-tracking branch 'upstream/master' into improvement/keyword-selection

commit 60b8cddc4f9c1d25aa9090afddd994501864980f
Author: François Prunayre <fxprunayre@gmail.com>
Date:   Wed Oct 31 17:21:45 2012 +0100

    Add ConceptSelectionPanel to minified JS.

commit 41bc5d9baf38272ba4b2f39b2df386e9dd6931e8
Author: François Prunayre <fxprunayre@gmail.com>
Date:   Wed Oct 31 15:51:54 2012 +0100

    Fix image path for item selector.

commit 6fc05cd50c3c385332ecc2daba14db5acc7efdfd
Author: François Prunayre <fxprunayre@gmail.com>
Date:   Wed Oct 31 12:02:34 2012 +0100

    Editor / Improve keyword selection (#1129)

    Instead of selecting keywords in a popup, select them directly in a thesaurus widget in the editor. Improvements:

    support to easily add keyword to a previously selected thesaurus
    support CharacterString, Anchor and XLink mode (and change the mode at any time)
    keep default editing mode for free text keyword editing.

    Squashed commit of the following:

    commit 656f098e4e02aa82f6f777c738ec0da6cb4e1c79
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 31 11:59:23 2012 +0100

        Add TODO for binocular and + control to be merged.

    commit ff26dfda4bdafd14ca3385ec0890a72a43bb23a4
    Merge: a673034 8858b56
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 31 11:50:17 2012 +0100

        Merge remote-tracking branch 'upstream/master' into feature/registers-transformations

    commit a67303454a4974da3f98844327f97a197426d50a
    Merge: e0db832 0675e03
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 31 11:33:34 2012 +0100

        Merge remote-tracking branch 'upstream/master' into feature/registers-transformations

    commit e0db83238832cb68c77e9995c727bd512cae5220
    Merge: 8aa4ce2 3d9c30c
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 31 11:13:28 2012 +0100

        Merge remote-tracking branch 'upstream/master' into feature/registers-transformations

    commit 8aa4ce29769810cede78103297eb4921c4aa88e1
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 31 11:12:33 2012 +0100

        Add combo, simple list, multiple list support. Improve documentation.

    commit 03e9623059e24327328c9341158119176fc7a67e
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Tue Oct 30 14:42:22 2012 +0100

        Add thesaurus selection by menu instead of popup.

        Fixed line break for long keyword.

    commit 046099f791f13b1dc43c0d7006865e3e9847d1a2
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Mon Oct 29 18:06:57 2012 +0100

        Avoid duplicate init. Only provide Anchor mode when using a thesaurus.

    commit 9d1b214b1aaf5eeea7fceb17b8804189b181e55d
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Mon Oct 29 17:42:43 2012 +0100

        Support inline keyword edition using CharacterString, Anchor or XLink.

        Add thesaurus information header.
        Add transformation detection.
        Add max number of keywords returned option.
        Add XLink mode.
        Add loc string.
        Escaped simple quote in keywords when relevant.

    commit ebd6307cec9159785acd9559211eb1b1a7a13276
    Merge: 28339ca d1f91ae
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Mon Oct 29 08:10:23 2012 +0100

        Merge remote-tracking branch 'upstream/master' into feature/registers-transformations

        Conflicts:
        	web-client/src/main/resources/apps/css/gndefault.css
        	web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/lang/en.js

    commit 28339ca11e21da289481e95fd2736d91c34c650f
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Sun Oct 28 17:58:11 2012 +0100

        Do not display XML snippet container by default.

    commit 71e4d44a3f1919e6a655c18bcc7fe3d6de0a0256
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Sun Oct 28 17:50:22 2012 +0100

        Add concept selection inline widget.

    commit 92fb4e12f7b9d9f53e3e86baa574774db0813068
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 17 19:37:38 2012 +0200

        Move transformations to schema plugins. Add ISO19139 conversion for keyword and extent.

    commit 167a997c46374d6a727ce065d32293ae576b5ed1
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Wed Oct 17 19:35:40 2012 +0200

        Get keyword by id in raw format only.

    commit fb3e1b28e4462ade63a79ea0ee6450e7e4e9a33c
    Author: François Prunayre <fxprunayre@gmail.com>
    Date:   Tue Oct 9 09:58:34 2012 +0200

        Register concept transformation draft impl.
Fix for ticket Ticket #1128
Only show file related error if we are dealing with the "File for download" protocol.

Conflicts:
	web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/editor/EditorTools.js
Standardized the search for WWW:DOWNLOAD-*-http--download. There were a few variations Used a regular expression as it was cleaner.
Changed regular expression from ^WWW:DOWNLOAD-.*-http--download$ to ^WWW:DOWNLOAD-.*-http--download.*
So that it would include WWW:DOWNLOAD-.*-http--downloaddata
Another related fix for Ticket #1128
Removed extra parameter from call checkForFileUpload as it was no longer required.

Conflicts:
	web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/present/metadata-edit.xsl