Skip to content

Commit

Permalink
feat(templates): operation guide links;
Browse files Browse the repository at this point in the history
- Updated old GCPedia links to new HTML Drupal Guide.
  • Loading branch information
JVickery-TBS committed Oct 29, 2024
1 parent 7986755 commit 579948e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ckanext/canada/tables/consultations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sidebar_extra_content:
en: 'Description and guidance are being developed. If you have questions, please email [[email protected]](mailto:[email protected]).'
fr: 'La description et les directives sont en développement. Si vous avez des questions, veuillez écrire à [[email protected]](mailto:[email protected]).'

gcpedia_link: http://www.gcpedia.gc.ca/wiki/Consultations_Registry_on_Open.Canada.ca
guide_link: http://www.gcpedia.gc.ca/wiki/Consultations_Registry_on_Open.Canada.ca

resources:
- title: Open Dialogue - Consultations
Expand Down
2 changes: 1 addition & 1 deletion ckanext/canada/tables/inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ notes: This dataset houses your departmental open data inventory. This is where
portal_type: dataset
collection: inventory

gcpedia_link: http://www.gcpedia.gc.ca/wiki/Open_Data_Inventory_/_l%E2%80%99inventaire_de_donn%C3%A9es_ouvertes
guide_link: http://www.gcpedia.gc.ca/wiki/Open_Data_Inventory_/_l%E2%80%99inventaire_de_donn%C3%A9es_ouvertes
upload_warn: 'IMPORTANT: New or updated inventories / rows will be published on open.canada.ca daily. IMSO approval must be obtained and sent to <a href="mailto:[email protected]">[email protected]</a> before uploading your inventory data. By clicking the Submit button, you are confirming IMSO approval.'

resources:
Expand Down
2 changes: 1 addition & 1 deletion ckanext/canada/tables/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template_version: 3
portal_type: dataset
collection: service

gcpedia_link: http://www.gcpedia.gc.ca/wiki/GC_Service_Policy_Agenda
guide_link: http://www.gcpedia.gc.ca/wiki/GC_Service_Policy_Agenda

resources:
- title: Service Identification Information & Metrics
Expand Down
7 changes: 4 additions & 3 deletions ckanext/canada/templates/recombinant/resource_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
<div class="panel panel-primary">
<div class="panel-heading">{{ _("Guide") }}</div>
<div class="panel-body">
{% set gcpedialink = h.recombinant_language_text(h.recombinant_get_geno(dataset_type).get('gcpedia_link', 'http://www.gcpedia.gc.ca/wiki/Proactive_Disclosure_on_Open.Canada.ca') ) %}
{% set default_guidelink = 'https://ouvert.canada.ca/fr/guide-operations-registre/publication-proactive' if h.lang() == 'fr' else 'https://open.canada.ca/en/registry-operations-guide/proactive-publication' %}
{% set guide_link = h.recombinant_language_text(h.recombinant_get_geno(dataset_type).get('guide_link', default_guidelink) ) %}
<p>
{% trans gclink=gcpedialink %}
For information on how to prepare, maintain and upload templates to the Registry, refer to the appropriate documentation posted on <a href="{{ gclink }}">GCPEDIA</a>
{% trans guide_link=guide_link %}
For information on how to prepare, maintain and upload templates to the Registry, refer to the appropriate documentation posted on the <a href="{{ guide_link }}">Operations Guide.</a>
{% endtrans %}
</p>
{{ h.render_markdown(h.recombinant_language_text(h.recombinant_get_geno(dataset_type).get('sidebar_extra_content', ''))) }}
Expand Down

0 comments on commit 579948e

Please sign in to comment.