Skip to content

Commit

Permalink
chore: Use link without redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 26, 2024
1 parent c9e1392 commit 8fe5f34
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cove_ocds/lib/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def raise_missing_package_error():
'package </a> or <a href="https://standard.open-contracting.org/latest/en'
'/schema/record_package/"> record package</a> to provide important meta-'
'data. For more information, please refer to the <a href="https://standard.'
'open-contracting.org/latest/en/getting_started/releases_and_records/"> '
'open-contracting.org/latest/en/primer/releases_and_records/"> '
"Releases and Records section </a> in the OCDS documentation.\n\n<span "
'class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> '
"<strong>Error message:</strong> <em>Missing OCDS package</em>"
Expand Down
6 changes: 3 additions & 3 deletions cove_ocds/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ msgid ""
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
"record_package/\"> record package</a> to provide important meta-data. For "
"more information, please refer to the <a href=\"https://standard.open-"
"contracting.org/latest/en/getting_started/releases_and_records/\"> Releases "
"contracting.org/latest/en/primer/releases_and_records/\"> Releases "
"and Records section </a> in the OCDS documentation.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
Expand Down Expand Up @@ -170,7 +170,7 @@ msgstr ""
#: cove_ocds/templates/cove_ocds/base.html:133
msgid ""
"<b> A CSV file or Excel Spreadsheet </b> - using the <a href=\"https://"
"standard.open-contracting.org/latest/en/implementation/serialization/"
"standard.open-contracting.org/latest/en/guidance/build/serialization/"
"\">flattened serialization of OCDS</a>; "
msgstr ""

Expand All @@ -183,7 +183,7 @@ msgstr ""
#: cove_ocds/templates/cove_ocds/base.html:136
msgid ""
"The application works with both <a href=\"https://standard.open-contracting."
"org/latest/en/getting_started/releases_and_records/\">'release' and "
"org/latest/en/primer/releases_and_records/\">'release' and "
"'record'</a> OCDS documents that conform to the <a href=\"https://standard."
"open-contracting.org/\">Open Data Contracting Standard</a> "
msgstr ""
Expand Down
12 changes: 6 additions & 6 deletions cove_ocds/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ msgid ""
"a> or <a href=\"https://standard.open-contracting.org/latest/en/schema/"
"record_package/\"> record package</a> to provide important meta-data. For "
"more information, please refer to the <a href=\"https://standard.open-"
"contracting.org/latest/en/getting_started/releases_and_records/\"> Releases "
"contracting.org/latest/en/primer/releases_and_records/\"> Releases "
"and Records section </a> in the OCDS documentation.\n"
"\n"
"<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></"
Expand All @@ -77,7 +77,7 @@ msgstr ""
"\">paquete de entrega</a> o <a href=\"https://standard.open-contracting.org/"
"latest/es/schema/record_package/\">paquete de registros</a> para "
"proporcionar metadatos importantes. Para obtener más información, consulte "
"la <a href=\"https://standard.open-contracting.org/latest/es/getting_started/"
"la <a href=\"https://standard.open-contracting.org/latest/es/primer/"
"releases_and_records/\">sección Entregas y registros</a> en la documentación "
"de OCDS.\n"
"\n"
Expand Down Expand Up @@ -209,11 +209,11 @@ msgstr "<b>JSON</b> - siguiendo el esquema de OCDS;"
#: cove_ocds/templates/cove_ocds/base.html:133
msgid ""
"<b> A CSV file or Excel Spreadsheet </b> - using the <a href=\"https://"
"standard.open-contracting.org/latest/en/implementation/serialization/"
"standard.open-contracting.org/latest/en/guidance/build/serialization/"
"\">flattened serialization of OCDS</a>; "
msgstr ""
"<b>Un archivo CSV o hoja de cálculo Excel</b> - utilizando la <a href="
"\"https://standard.open-contracting.org/latest/es/implementation/"
"\"https://standard.open-contracting.org/latest/es/guidance/build/"
"serialization/\">seriación plana de OCDS</a>;"

#: cove_ocds/templates/cove_ocds/base.html:135
Expand All @@ -227,12 +227,12 @@ msgstr ""
#: cove_ocds/templates/cove_ocds/base.html:136
msgid ""
"The application works with both <a href=\"https://standard.open-contracting."
"org/latest/en/getting_started/releases_and_records/\">'release' and "
"org/latest/en/primer/releases_and_records/\">'release' and "
"'record'</a> OCDS documents that conform to the <a href=\"https://standard."
"open-contracting.org/\">Open Data Contracting Standard</a> "
msgstr ""
"La aplicación funciona con <a href=\"https://standard.open-contracting.org/"
"latest/es/getting_started/releases_and_records/\">'entregas' y 'registros'</"
"latest/es/primer/releases_and_records/\">'entregas' y 'registros'</"
"a> de OCDS que cumplen con los requisitos del <a href=\"https://standard.open-"
"contracting.org/latest/es/\">Estándar de Datos de Contrataciones Abiertas</a>"

Expand Down
4 changes: 2 additions & 2 deletions cove_ocds/templates/cove_ocds/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ <h1 class="heading-in-panel"> <small> {% blocktrans %}Using the data review tool

<ul>
<li> {% blocktrans %}<b> JSON </b> - following the OCDS schema; {%endblocktrans%}</li>
<li> {% blocktrans %}<b> A CSV file or Excel Spreadsheet </b> - using the <a href="https://standard.open-contracting.org/latest/en/implementation/serialization/">flattened serialization of OCDS</a>; {%endblocktrans%}</li>
<li> {% blocktrans %}<b> A CSV file or Excel Spreadsheet </b> - using the <a href="https://standard.open-contracting.org/latest/en/guidance/build/serialization/">flattened serialization of OCDS</a>; {%endblocktrans%}</li>
</ul>
<p> {% blocktrans %}Supported encodings are UTF-8 for JSON and UTF-8, Windows-1252 and ISO-8859-1 for CSV.{% endblocktrans%} </p>
<p> {% blocktrans %}The application works with both <a href="https://standard.open-contracting.org/latest/en/getting_started/releases_and_records/">'release' and 'record'</a> OCDS documents that conform to the <a href="https://standard.open-contracting.org/">Open Data Contracting Standard</a> {%endblocktrans%} </p>
<p> {% blocktrans %}The application works with both <a href="https://standard.open-contracting.org/latest/en/primer/releases_and_records/">'release' and 'record'</a> OCDS documents that conform to the <a href="https://standard.open-contracting.org/">Open Data Contracting Standard</a> {%endblocktrans%} </p>
<p> {% blocktrans %}If your data passes basic structural checks, the tool will then present a report on data quality, and information about the contents of your file. It will also offer alternative copies of the data for download. {%endblocktrans%} </p>
<p> {% blocktrans %}Data is stored for {{ delete_files_after_days }} days at a randomly generated URL. You can share this link with others to support discussion of data quality. {%endblocktrans%} </p>
<p> {% blocktrans %}To preview how the data review tool works, try <a href="{{ index_url }}?source_url=https://raw.githubusercontent.com/open-contracting/sample-data/main/fictional-example/1.1/ocds-213czf-000-00001-02-tender.json"> loading some sample data. </a>{% endblocktrans%} </p>
Expand Down
2 changes: 1 addition & 1 deletion cove_ocds/templates/cove_ocds/explore_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ <h4 class="panel-title">
{% include "additional_codelist_values.html" %}
{% endwith%}
</div>
{% blocktrans %}Make sure you list the definition of any additional codelist values you include within your <a href="https://standard.open-contracting.org/latest/en/implementation/publication_policy/">publication policy</a>, and if you believe they should be added as recommended values in the open codelist, please suggest this via the <a href="https://github.com/open-contracting/standard/issues/new"> OCDS issue tracker.</a>{% endblocktrans %}
{% blocktrans %}Make sure you list the definition of any additional codelist values you include within your <a href="https://standard.open-contracting.org/latest/en/guidance/publish/#finalize-your-publication-policy">publication policy</a>, and if you believe they should be added as recommended values in the open codelist, please suggest this via the <a href="https://github.com/open-contracting/standard/issues/new"> OCDS issue tracker.</a>{% endblocktrans %}
</div>
</div>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"format": "uri"
},
"publicationPolicy": {
"description": "A link to a document describing the publishers [publication policy](http://standard.open-contracting.org/latest/en/implementation/publication_policy/).",
"description": "A link to a document describing the publishers [publication policy](http://standard.open-contracting.org/latest/en/guidance/publish/#finalize-your-publication-policy).",
"type": ["string", "null"],
"format": "uri"
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ def test_index_page_ocds(server_url, browser):
(
"how-to-use",
"'release' and 'record'",
"https://standard.open-contracting.org/latest/en/getting_started/releases_and_records/",
"https://standard.open-contracting.org/latest/en/primer/releases_and_records/",
),
(
"how-to-use",
"flattened serialization of OCDS",
"https://standard.open-contracting.org/latest/en/implementation/serialization/",
"https://standard.open-contracting.org/latest/en/guidance/build/serialization/",
),
(
"how-to-use",
Expand Down

0 comments on commit 8fe5f34

Please sign in to comment.