user.rst 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. User Guide
  2. ==========
  3. To add metadata to a layer follow the steps in `Adding metadata to Layer`_ . When the metadata is repeated in multiple layers it is easier to create a template and reuse the data in the template for all the layers. See `Templates`_ .
  4. .. contents:: :local:
  5. :depth: 1
  6. Adding metadata to Layer
  7. ------------------------
  8. Manually adding metadata
  9. ^^^^^^^^^^^^^^^^^^^^^^^^
  10. Open the layer: navigate to :menuselection:`Layers --> Choose the layer --> Metadata tab`.
  11. The metadata fields are available in the panel :guilabel:`Metadata fields`.
  12. .. figure:: images/basic-gui.png
  13. Import from geonetwork
  14. ^^^^^^^^^^^^^^^^^^^^^^
  15. See :ref:`community_metadata_advanced_configuration`.
  16. Choose a geonetwork from the drop downbox, add the UUID from the metadata record and click `Import`.
  17. All the content of the fields that are mapped in the geonetwork mapping configuration will be deleted.
  18. All templates will be unlinked.
  19. The content will be replaced with the content from geonetwork.
  20. Link with metadata template
  21. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  22. A metadata template can contain the content for metadata fields used in multiple layers.
  23. By defining these fields in a template you create one source for the content making it easier to maintain.
  24. To link a layer with template navigate to :menuselection:`Layers --> Choose the layer --> Metadata tab` in the :guilabel:`Link with Template` panel choose a template from the dropdown and click `Link with template`
  25. The values from the template will added to the metadata of the layer. How this is done depents on the type of the field.
  26. The field is not a list
  27. When the field is not a list the value will be replaced with the value from the template and the field will be read only. This will only happen for fields that are not empty in the template.
  28. The Field is a list
  29. For Fields that are a list the values from the template will be added as read only fields. The duplicate values in list will be removed if there are any.
  30. When multiple templates are linked with a layer the priority of the template will determine which values are added. If a field is present in both templates the value of the template with the highest priority will be picked. The priority is determined by the `template order`_
  31. Copy from other Layer
  32. ^^^^^^^^^^^^^^^^^^^^^^^
  33. Choose another layer from the drop downbox click `Copy`.
  34. Content will be replaced with any metadata content from the other layer, except for UUID's, which will be ignored.
  35. Templates
  36. ---------
  37. Templates can be created, edited, deleted and ordered in :menuselection:`Metadata --> Templates` .
  38. All changes to the templates will also update the linked layers when the templates are saved by clicking the `Save` button in the overview page.
  39. Templates that are linked to a layer cannot be removed and a warning message will appear.
  40. .. figure:: images/templatesconfig.png
  41. Create template
  42. ^^^^^^^^^^^^^^^
  43. Use the `Add new` action to create a new template and choose a name for the template. The name is required and must be unique.
  44. Edit template
  45. ^^^^^^^^^^^^^^^
  46. Click on a template name to open the template and edit the values. Click `Save` to go back to the overview page, this will also recalculate the values in all linked layers.
  47. Delete template
  48. ^^^^^^^^^^^^^^^
  49. Select the templates that needs to be removed and click delete, the selected rows will be removed from the table. Save the changes by clicking the `Save` button.
  50. Template order
  51. ^^^^^^^^^^^^^^
  52. The templates have an order. The templates at the top of the list have a higher priority than the templates at the bottom.
  53. When a field has a value in multiple templates and the layer is linked with those templates the priority will determine which value is displayed in the metadata UI.
  54. The value defined in the template with the highest priority will be displayed.
  55. Change the order of the templates with the arrow keys in the priority column and save the changes by clicking `Save` button, this will also recalculate the values in all linked layers that may be affected.
  56. Bulk Operations
  57. ---------------
  58. .. figure:: images/bulk.png
  59. This page provides a number of bulk operations mostly used for maintenance and migrations.
  60. Clean / fix all
  61. ^^^^^^^^^^^^^^^
  62. This operation will go through all layers and perform a series of different actions on each of them to clean and repair any obsolete, corrupt or inconsistent data. This operation is useful after changing the metadata attribute configuration, bug fixes or other software updates, or exceptionally, unexpected failures.
  63. The actions performed are:
  64. - remove any existing metadata that is not according to the configuration
  65. - check the internal data structure and fix it if necessary
  66. - recalculate derived metadata fields
  67. - recalculate :ref:`community_metadata_advanced_configuration_custom_native`
  68. - :ref:`Timestamp <community_metadata_uiconfiguration_hidden_fields>`
  69. Import metadata
  70. ^^^^^^^^^^^^^^^
  71. This option allows bulk import of metadata from GeoNetwork (see :ref:`community_metadata_advanced_configuration`) and/or linking layers to templates.
  72. The layers that should be imported or linked are specified in a CSV file. You may specify a GeoNetwork to import from.
  73. The CSV file should use semicolumn as separator. The first column of your CSV files should be the layer name, the second column should be the geonetwork UUID (or left empty if you do not want to import from geonetwork), and any number of templates may be specified afterwards in the following columns.
  74. Transfer Native To Custom
  75. ^^^^^^^^^^^^^^^^^^^^^^^^^
  76. This operation will attempt to do the exact reverse of the :ref:`community_metadata_advanced_configuration_custom_native` that happens usually each time you save a layer.
  77. This will work in so far as the native attributes follow the patterns configured in your custom-to-native mapping configuration, or your configuration is basic enough.
  78. This operation is useful when you are migrating layers that were previously configured without the metadata module.
  79. You may optionally specify a selected list of rules if you do not wish to apply all them (by number, in the order of which they appear in the configuration), and a text file with layer names if you do not wish to go through all of them.
  80. Clear metadata
  81. ^^^^^^^^^^^^^^
  82. Removes all existing metadata from all layers. Optionally, remove all existing templates as well.
  83. This cannot be undone.