Commit Graph

83 Commits

Author SHA1 Message Date
amercader 3da5807eb4 [#6] Update dataset map to be a pure snippet
No need to load an extension.
2013-01-18 13:07:26 +00:00
amercader 21a85a6b3f [#4] Register resources only once for all plugins
spatial_metadata will load the resources (public, templates and
resources) for all plugins to use, as it needs to be loaded anyway.
2013-01-15 20:00:46 +00:00
amercader 7abfb4eb61 Use plugins toolkit whenver possible on plugin.py 2013-01-15 19:57:31 +00:00
amercader 711391e971 [#4] Rewrtie WMS preview plugin for ResourcePreview interface
Much simplified plugin for previewing WMS. It requires the
resource_proxy plugin to work.

Also clean up public and template dir to mimic core layout.
2013-01-14 13:59:15 +00:00
amercader 0379852fe0 Merge branch '2641-spatial-widgets-new-theme' into release-v2.0 2012-11-12 16:44:05 +00:00
amercader b82dd4a9c0 Merge branch 'csw-harvester-enhancements' into release-v2.0 2012-11-12 16:43:52 +00:00
amercader a84268abf6 Don't trust the number of records returned by the remote server
Sometimes, even when requesting 10 records, the CSW server returns less
of them (see eg http://goo.gl/b7Rdj, only 9 records returned). The
current check made the process stop on this case, missing other
identifiers.
2012-11-02 11:12:46 +00:00
amercader 0444c14da2 Better check for config object 2012-10-30 16:40:32 +00:00
amercader 99dc2a7c55 Allow to define the validation profiles via source config
The profiles used are decided as follows:

1. 'validator_profiles' property of the harvest source config
object
2. 'ckan.spatial.validator.profiles' configuration option in
the ini file
3. Default value as defined in DEFAULT_VALIDATOR_PROFILES
2012-10-30 14:18:01 +00:00
amercader ac7947549e Remove unused imports 2012-10-29 16:35:52 +00:00
amercader 9e9048c272 Add validator for FGDC XSD schema 2012-10-29 14:34:29 +00:00
amercader 9488ecd5a9 Add validator for ISO 19139 NGDC XSD schema 2012-10-29 14:28:58 +00:00
amercader c1d2a479f2 Add traceback to exception when getting CSW identifiers 2012-10-23 18:57:11 +01:00
amercader 92b781d0f1 Minor model tweaks to support parsing generic ISO documents 2012-10-23 13:03:53 +01:00
amercader aeb7d27bab Fix failing tests
The WMS one is just skipped, until we have a more clear way of how the
previews will work.
2012-10-22 19:44:33 +01:00
amercader 7f58374ac7 Enable command line interface for validation, useful for debug 2012-10-22 19:39:07 +01:00
amercader d95602eaff Fix wrong resource paths on validation 2012-10-22 19:37:54 +01:00
amercader 019cb3b45f Fix wrong imports and docs 2012-10-22 19:36:03 +01:00
David Read d90114cf07 Added ability to produce report into validation errors, for when changing validation. Added report infrastructure. 2012-10-19 18:20:32 +01:00
David Read 0e8a62fe1e Reorganise XML test files into more sensible directory names. Add lower level validation tests. 2012-10-19 14:23:34 +01:00
David Read 2d6f497720 Missed off some files from the previous commit., 2012-10-19 12:14:09 +01:00
David Read 20e8f12615 Merged in ckanext-inspire.
Tests are passing, apart from a couple which didn't work before:
* test_functional.py -> functional/test_package.py (3 failures in 4)
* functional/test_dataset_map.py (1 fail in 1)
There may be some code errors still untested.
Renamed Validator -> Validators to make more sense.
2012-10-19 11:19:01 +01:00
David Read 58fa06051d Added EDEN ISO10139 schema that was missed off before. 2012-10-17 17:08:20 +01:00
David Read 8181b3d3bf Merged in ckanext-csw @44d5a04656dff084e6bca57dda7b63deec69778c. Not tested yet. 2012-10-17 16:59:02 +01:00
amercader a84034d902 Merge branch '2641-spatial-widgets-new-theme' of github.com:okfn/ckanext-spatial into 2641-spatial-widgets-new-theme 2012-10-17 13:03:11 +01:00
amercader 3bb174d56d Update WMS viewer prototype to work with the new iframe on resource read page 2012-10-17 13:02:57 +01:00
amercader 80b8bc33c6 Update jquery path 2012-09-28 12:20:37 +01:00
amercader efa2307ee5 [wms] Fix small bug 2012-08-14 12:48:39 +01:00
amercader d841bb2c17 [wms] Fix typo 2012-08-13 18:52:30 +01:00
amercader 231f5806e9 [wms] Support for map param 2012-08-13 17:50:33 +01:00
amercader 917ce0124e Merge branch '2641-spatial-widgets-new-theme' of github.com:okfn/ckanext-spatial into 2641-spatial-widgets-new-theme 2012-08-13 17:09:32 +01:00
amercader 4ca61fd48b [wms] First go at adapting the WMS previewer to the new theme 2012-08-13 17:09:08 +01:00
amercader 01d6441886 [wms] More flexible wms format check 2012-08-13 17:07:59 +01:00
amercader 100b54d119 Merge branch 'master' into 2641-spatial-widgets-new-theme 2012-08-09 11:05:14 +01:00
amercader b784be8f9e Do not use repo.are_tables_created
When checking whether the core tables have been alredy created  it is
best to use package_table.exists(), as are_tables_created reflects the
tables, causing conflicts with other extensions.

This allows ckanext-harvest and ckanext-spatial to be used together on
ckan 1.8 onwards.
2012-08-09 11:02:13 +01:00
amercader 9bc3759bd1 Update tests for auth changes in core (#2388) 2012-07-12 19:13:21 +01:00
amercader a42dcd632f [#2641] Move snippet template to follow new convention 2012-07-12 11:59:35 +01:00
amercader 87de1280f2 [#2641] Adapt dataset map to new theme
The new theme is based on Jinja2 templates. Extensions can define their
own snippets, which can used when creating custom themes. In this case
two snippets have been created, one showing the map on the primary area
and the other on the sidebar.
2012-07-11 18:24:49 +01:00
amercader 493589aaf1 [#2399] Fixes for CKAN 1.8
* Fix broken imports in model after cleanup
* Minor CSS glitch on the spatial filter widget
2012-06-25 19:27:18 +01:00
David Read 745bed4e77 Customising extent map for dgu. 2012-05-22 10:51:44 +01:00
amercader 1ffe6f42d1 [ui] Fix alignment and button classes (update to latest bootstrap) 2012-05-08 14:19:28 +01:00
amercader e18f3210b8 [ui] Update button classes to bootstrap 2012-05-08 14:00:19 +01:00
amercader cafc0b9644 [tests] Fix test for changes in logic layer 2012-04-29 18:17:13 +01:00
David Read 8010c1e16b Stray comma caused IE7 to barf. 2012-04-27 15:04:22 +01:00
David Read e19227fe61 Added option for OS tiles (subject to licence). 2012-04-27 13:06:20 +01:00
David Read 8f4ae04570 Allow extent map to be shown on configurable routes. 2012-04-27 10:44:15 +01:00
amercader 23f392bb4c Merge branch 'master' of github.com:okfn/ckanext-spatial 2012-04-16 10:33:11 +02:00
amercader 60bc030e7d [tests] Update package create functions to logic refactor 2012-04-13 10:59:21 +01:00
amercader 82e3f90fb3 [cli] Srid param was not passed from the cli 2012-04-13 10:58:39 +01:00
David Read 2ecb8498bf Geographic extent now looks for id="dataset" because DGU templates use multiple classes for the root dataset div (as might other customised templates), yet having only one value for id is a reasonable assumption. Also works for core CKAN templates. 2012-04-12 21:35:38 +01:00