dicogis.ui.wdg_tab_publish module¶
- Name:
TabPublish
- Purpose:
Tab to publish previously exported metadata to a catalog (uData or GeoNetwork), from DicoGIS Notebook.
- Author:
Julien Moura (@geojulien)
- class dicogis.ui.wdg_tab_publish.TabPublish(parent=None)¶
Bases:
QWidgetTab form to publish DicoGIS metadata files to a catalog.
- Parameters:
QWidget – inherited Qt widget
- __init__(parent=None)¶
Initializes UI tab for the publication.
- Parameters:
parent (
QWidget|None) – Qt parent widget
- get_geonetwork_authcfg()¶
Return the identifier of the QGIS authentication configuration to use.
- get_geonetwork_categories()¶
Return the currently entered GeoNetwork category identifiers.
- get_geonetwork_portal()¶
Return the currently entered GeoNetwork portal, srv if empty.
- Return type:
- get_geonetwork_update_mode()¶
Return what to do with a record the catalog already has.
- Return type:
- get_publish_options()¶
Return publish options as a dict. The API key and the password are not included: they are not persisted to options.ini for security reasons. The identifier of an authentication configuration is only a reference.
- Return type:
- get_publish_target()¶
Return the kind of catalog to publish to.
- Return type:
- get_udata_organization_id()¶
Return the currently entered uData organization ID, or None if empty.
- imposed_settings()¶
Publication settings imposed by an environment variable: not to be saved.
- on_browse_input_folder()¶
Browse and insert the path of the folder containing metadata files.
- set_input_folder(folder_path)¶
Set the metadata folder path, unless imposed by the environment.
- Return type:
- set_publish_options(values)¶
Apply publish options from options.ini. Empty values and the settings imposed by an environment variable are left as they are.
- set_publish_target(target)¶
Select the kind of catalog to publish to, unknown ones being ignored.
- show_report(report)¶
Display the report of a publication in the tab.
- Parameters:
report (
PublishReport) – outcome of the publication run.- Return type: