qgreenland/util/qgis.py
def _build_dataset_citation(layer_cfg):
    """Return a string representing the layer's dataset citation."""
    citation = ''

    dataset_metadata = layer_cfg['dataset']['metadata']
    if citation_cfg := dataset_metadata.get('citation'):
        if citation_text := citation_cfg.get('text'):
            ct = _populate_date_accessed(citation_text, layer_cfg=layer_cfg)
            citation += 'Citation:\n'
            citation += ct + '\n\n'

        if citation_url := citation_cfg.get('url'):
            citation += 'Citation URL:\n'
            citation += citation_url

    return citation
Return a string representing the layer's dataset citation.
Return a string representing the layer's dataset citation.
Return a string representing the layer ' s dataset citation .
def _build_dataset_citation(layer_cfg):
    citation = ''
    dataset_metadata = layer_cfg['dataset']['metadata']
    if citation_cfg := dataset_metadata.get('citation'):
        if citation_text := citation_cfg.get('text'):
            ct = _populate_date_accessed(citation_text, layer_cfg=layer_cfg)
            citation += 'Citation:\n'
            citation += ct + '\n\n'
        if citation_url := citation_cfg.get('url'):
            citation += 'Citation URL:\n'
            citation += citation_url
    return citation
def _build_dataset_citation ( layer_cfg ) : citation = '' dataset_metadata = layer_cfg [ 'dataset' ] [ 'metadata' ] if citation_cfg := dataset_metadata . get ( 'citation' ) : if citation_text := citation_cfg . get ( 'text' ) : ct = _populate_date_accessed ( citation_text , layer_cfg = layer_cfg ) citation += 'Citation:\n' citation += ct + '\n\n' if citation_url := citation_cfg . get ( 'url' ) : citation += 'Citation URL:\n' citation += citation_url return citation
Return a string representing the layer's dataset citation.
Return a string representing the layer ' s dataset citation .
"""Return a string representing the layer's dataset citation."""
layer_cfg