From 4f32ec435f1de914391f7b2bfced697c4e7c7ac2 Mon Sep 17 00:00:00 2001 From: TNA-Allan <96120886+TNA-Allan@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:05:05 +0000 Subject: [PATCH] CHORE: sync 22 12 2023 - develop into etna-rosetta (#1499) Co-authored-by: Andrew Hosgood Co-authored-by: GitHub Action Co-authored-by: JohnHeeryTNA <110600556+JohnHeeryTNA@users.noreply.github.com> --- pyproject.toml | 2 +- .../search/_catalogue-search-grid.scss | 2 +- sass/includes/search/_search-results.scss | 1 + .../search/_search-results__list-card.scss | 2 +- .../includes/records/record-details.html | 538 ++++++++++-------- templates/records/record_detail.html | 10 +- templates/search/blocks/search_filters.html | 4 +- .../search_results__list-card--grid.html | 57 +- .../blocks/search_results__list-card.html | 35 +- .../blocks/search_sort_and_view_options.html | 4 +- templates/search/featured_search.html | 7 +- .../search/includes/results-details.html | 57 ++ 12 files changed, 368 insertions(+), 351 deletions(-) create mode 100644 templates/search/includes/results-details.html diff --git a/pyproject.toml b/pyproject.toml index ddca0f661..d67da5353 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "Etna" -version = "23.12.05.25" +version = "23.12.13.26" description = "" authors = ["James Biggs "] diff --git a/sass/includes/search/_catalogue-search-grid.scss b/sass/includes/search/_catalogue-search-grid.scss index 5fa76c155..96c41e6a0 100644 --- a/sass/includes/search/_catalogue-search-grid.scss +++ b/sass/includes/search/_catalogue-search-grid.scss @@ -20,7 +20,7 @@ &__sidebar { -ms-grid-column: 1; - min-width: 300px; + min-width: 320px; @media only screen and (max-width: $screen__xl) { grid-column: 1 / -1; -ms-grid-column: 1; diff --git a/sass/includes/search/_search-results.scss b/sass/includes/search/_search-results.scss index 25d227c10..20dff184d 100644 --- a/sass/includes/search/_search-results.scss +++ b/sass/includes/search/_search-results.scss @@ -162,6 +162,7 @@ margin-left: 2rem; margin-right: 2rem; display: block; + padding-top: 1rem; } } } diff --git a/sass/includes/search/_search-results__list-card.scss b/sass/includes/search/_search-results__list-card.scss index 4fd845794..27af75154 100644 --- a/sass/includes/search/_search-results__list-card.scss +++ b/sass/includes/search/_search-results__list-card.scss @@ -270,7 +270,7 @@ dd { .featured-search__website-results__head { @media only screen and (min-width: #{$screen__md + 1px}) { - padding-left: 1em; + padding-left: 1.75em; padding-bottom: 1em; } } diff --git a/templates/includes/records/record-details.html b/templates/includes/records/record-details.html index 931ff0bbb..312f1e239 100644 --- a/templates/includes/records/record-details.html +++ b/templates/includes/records/record-details.html @@ -1,255 +1,293 @@ {% load records_tags %} -
- - - {% if record.reference_number %} - - - - - {% endif %} - {% if record.title %} - - - - - {% endif %} - {% if record.date_created %} - - - - - {% endif %} - {% if record.description %} - - - - - {% endif %} - {% if record.note %} - - - - - {% endif %} - {% if record.arrangement %} - - - - - {% endif %} - {% if record.related_materials %} - - - - - {% endif %} - {% if record.separated_materials %} - - - + + + +{% endif %} + +{% if record.title %} + + + + +{% endif %} + +{% if record.date_created %} + + + + +{% endif %} + +{% if record.description %} + + + + +{% endif %} + +{% if record.note %} + + + + +{% endif %} + +{% if record.arrangement %} + + + + +{% endif %} + +{% if record.related_materials %} + + + - - {% endif %} - {% if record.held_by %} - - - - - {% endif %} - {% if record.former_department_reference %} - - - - - {% endif %} - {% if record.former_pro_reference %} - - - - - {% endif %} - {% if record.location_of_originals %} - - - - - {% endif %} - {% if record.legal_status %} - - - - - {% endif %} - {% if record.language %} - - - - - {% endif %} - {% if record.map_designation %} - - - < - - {% endif %} - {% if record.creator %} - - - - - {% endif %} - {% if record.physical_description %} - - - - - {% endif %} - {% if record.restrictions_on_use %} - - - - - {% endif %} - {% if record.dimensions %} - - - - - {% endif %} - {% if record.access_conditions %} - - - - - {% endif %} - {% if record.immediate_source_of_acquisition %} - - - + +{% endif %} + +{% if record.separated_materials %} + + + - - {% endif %} - {% if record.map_scale %} - - - - - {% endif %} - {% if record.physical_condition %} - - - - - {% endif %} - {% if record.closure_status %} - - - - - {% endif %} - {% if record.custodial_history %} - - - - - {% endif %} - {% if record.accumulation_dates %} - - - - - {% endif %} - {% if record.accruals %} - - - - - {% endif %} - {% if record.unpublished_finding_aids %} - - - - - {% endif %} - {% if record.appraisal_information %} - - - - - {% endif %} - {% if record.administrative_background %} - - - - - {% endif %} - {% if record.copies_information %} - - - - - {% endif %} - {% if record.publication_note %} - - - - - {% endif %} - {% if record.record_opening %} - - - - - {% endif %} - -
{{ 'reference_number'|as_label }}{{ record.reference_number }}
{{ 'title'|as_label }}{{ record.title }}
{{ 'date_created'|as_label }}{{ record.date_created }}
{{ 'description'|as_label }}{{ record.description }}
{{ 'note'|as_label }} - {{ record.note }} -
{{ 'arrangement'|as_label }}{{ record.arrangement }}
{{ 'related_materials'|as_label }} - {% for related_material in record.related_materials %} - {% if related_material.description %} -

{{related_material.description}} - {% if related_material.links %} - {% for link in related_material.links %} - {{ link.text }} - {% endfor %} - {% endif %} -

- {% endif %} - {% endfor %} -
{{ 'separated_materials'|as_label }} - {% if record.separated_materials.description %} -

{{ record.separated_materials.description }}

- {% endif %} - {% for link in record.separated_materials.links %} -

{{ link.text }}

+{% if record.reference_number %} +
{{ 'reference_number'|as_label }}{{ record.reference_number }}
{{ 'title'|as_label }}{{ record.title }}
{{ 'date_created'|as_label }}{{ record.date_created }}
{{ 'description'|as_label }}{{ record.description }}
{{ 'note'|as_label }} + {% for item in record.note %} +

{{ item }}

+ {% endfor %} +
{{ 'arrangement'|as_label }}{{ record.arrangement }}
{{ 'related_materials'|as_label }} + {% for related_material in record.related_materials %} + {% if related_material.description %} +

{{related_material.description}} + {% if related_material.links %} + {% for link in related_material.links %} + {{ link.text }} {% endfor %} -

{{ 'held_by'|as_label }} - {% if record.held_by_url %} - {{ record.held_by }} - {% else %} - {{ record.held_by }} {% endif %} -
{{ 'former_department_reference'|as_label }}{{ record.former_department_reference }}
{{ 'former_pro_reference'|as_label }}{{ record.former_pro_reference }}
{{ 'location_of_originals'|as_label }} - {{ record.location_of_originals }} -
{{ 'legal_status'|as_label }}{{ record.legal_status }}
{{ 'language'|as_label }} - {% for item in record.language %} -

{{ item }}

- {% endfor %} -
{{ 'map_designation'|as_label }}{{ record.map_designation }}
{{ 'creator'|as_label }} - {% for item in record.creator %} -

{{ item }}

- {% endfor %} -
{{ 'physical_description'|as_label }}{{ record.physical_description }}
{{ 'restrictions_on_use'|as_label }}{{ record.restrictions_on_use }}
{{ 'dimensions'|as_label }}{{ record.dimensions }}
{{ 'access_conditions'|as_label }}{{ record.access_conditions }}
{{ 'immediate_source_of_acquisition'|as_label }} - {% for item in record.immediate_source_of_acquisition %} -

{{ item }}

+

+ {% endif %} + {% endfor %} +
{{ 'separated_materials'|as_label }} + {% for separated_material in record.separated_materials %} + {% if separated_material.description %} +

{{ separated_material.description }}

+ {% endif %} + {% if separated_material.links %} + {% for link in separated_material.links %} +

{{ link.text }}

{% endfor %} -
{{ 'map_scale'|as_label }}{{ record.map_scale }}
{{ 'physical_condition'|as_label }}{{ record.physical_condition }}
{{ 'closure'|as_label }}{{ record.closure_status }}
{{ 'custodial_history'|as_label }}{{ record.custodial_history }}
{{ 'accumulation_dates'|as_label }}{{ record.accumulation_dates }}
{{ 'accruals'|as_label }}{{ record.accruals }}
{{ 'unpublished_finding_aids'|as_label }} - {{ record.unpublished_finding_aids }} -
{{ 'appraisal_information'|as_label }}{{ record.appraisal_information }}
{{ 'administrative_background'|as_label }}{{ record.administrative_background }}
{{ 'copies_information'|as_label }} - {% for item in record.copies_information %} -

{{ item }}

- {% endfor %} -
{{ 'publication_note'|as_label }} - {{ record.publication_note }} -
{{ 'record_opening'|as_label }}{{ record.record_opening }}
-
+ {% endif %} + {% endfor %} + + +{% endif %} + +{% if record.held_by %} + + {{ 'held_by'|as_label }} + + {% if record.held_by_url %} + {{ record.held_by }} + {% else %} + {{ record.held_by }} + {% endif %} + + +{% endif %} + +{% if record.former_department_reference %} + + {{ 'former_department_reference'|as_label }} + {{ record.former_department_reference }} + +{% endif %} + +{% if record.former_pro_reference %} + + {{ 'former_pro_reference'|as_label }} + {{ record.former_pro_reference }} + +{% endif %} + +{% if record.location_of_originals %} + + {{ 'location_of_originals'|as_label }} + + {% for item in record.location_of_originals %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.legal_status %} + + {{ 'legal_status'|as_label }} + {{ record.legal_status }} + +{% endif %} + +{% if record.language %} + + {{ 'language'|as_label }} + + {% for item in record.language %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.map_designation %} + + {{ 'map_designation'|as_label }} + <{{ record.map_designation }} + +{% endif %} + +{% if record.creator %} + + {{ 'creator'|as_label }} + + {% for item in record.creator %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.physical_description %} + + {{ 'physical_description'|as_label }} + {{ record.physical_description }} + +{% endif %} + +{% if record.restrictions_on_use %} + + {{ 'restrictions_on_use'|as_label }} + {{ record.restrictions_on_use }} + +{% endif %} + +{% if record.dimensions %} + + {{ 'dimensions'|as_label }} + {{ record.dimensions }} + +{% endif %} + +{% if record.access_condition %} + + {{ 'access_condition'|as_label }} + {{ record.access_condition }} + +{% endif %} + +{% if record.immediate_source_of_acquisition %} + + {{ 'immediate_source_of_acquisition'|as_label }} + + {% for item in record.immediate_source_of_acquisition %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.map_scale %} + + {{ 'map_scale'|as_label }} + {{ record.map_scale }} + +{% endif %} + +{% if record.physical_condition %} + + {{ 'physical_condition'|as_label }} + {{ record.physical_condition }} + +{% endif %} + +{% if record.closure_status %} + + {{ 'closure'|as_label }} + {{ record.closure_status }} + +{% endif %} + +{% if record.custodial_history %} + + {{ 'custodial_history'|as_label }} + {{ record.custodial_history }} + +{% endif %} + +{% if record.accumulation_dates %} + + {{ 'accumulation_dates'|as_label }} + {{ record.accumulation_dates }} + +{% endif %} + +{% if record.accruals %} + + {{ 'accruals'|as_label }} + {{ record.accruals }} + +{% endif %} + +{% if record.unpublished_finding_aids %} + + {{ 'unpublished_finding_aids'|as_label }} + + {% for item in record.unpublished_finding_aids %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.appraisal_information %} + + {{ 'appraisal_information'|as_label }} + {{ record.appraisal_information }} + +{% endif %} + +{% if record.administrative_background %} + + {{ 'administrative_background'|as_label }} + {{ record.administrative_background }} + +{% endif %} + +{% if record.copies_information %} + + {{ 'copies_information'|as_label }} + + {% for item in record.copies_information %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.publication_note %} + + {{ 'publication_note'|as_label }} + + {% for item in record.publication_note %} +

{{ item }}

+ {% endfor %} + + +{% endif %} + +{% if record.record_opening %} + + {{ 'record_opening'|as_label }} + {{ record.record_opening }} + +{% endif %} diff --git a/templates/records/record_detail.html b/templates/records/record_detail.html index 04c664353..78686312f 100644 --- a/templates/records/record_detail.html +++ b/templates/records/record_detail.html @@ -19,8 +19,14 @@

Description and record details

- {% include "includes/records/record-details.html" %} - {% include "includes/records/record-crosslink-panel.html" %} +
+ + + {% include "includes/records/record-details.html" %} + +
+
+ {% include "includes/records/record-crosslink-panel.html" %} {% if record.hierarchy %} {% if record.hierarchy|length > 2 %} diff --git a/templates/search/blocks/search_filters.html b/templates/search/blocks/search_filters.html index fe58d2f7e..a5ae09755 100644 --- a/templates/search/blocks/search_filters.html +++ b/templates/search/blocks/search_filters.html @@ -2,7 +2,7 @@
-

+

{{ form.sort_by.errors }} @@ -11,7 +11,7 @@

{# render hidden inputs for fields controlled by other forms #} {% render_fields_as_hidden form exclude='sort_by' %} - +

diff --git a/templates/search/blocks/search_results__list-card--grid.html b/templates/search/blocks/search_results__list-card--grid.html index b79cf164d..8a2416ff1 100644 --- a/templates/search/blocks/search_results__list-card--grid.html +++ b/templates/search/blocks/search_results__list-card--grid.html @@ -36,62 +36,7 @@

{{ record.listing_description }}

diff --git a/templates/search/blocks/search_results__list-card.html b/templates/search/blocks/search_results__list-card.html index 6a2071be8..4bf001b28 100644 --- a/templates/search/blocks/search_results__list-card.html +++ b/templates/search/blocks/search_results__list-card.html @@ -26,40 +26,7 @@

diff --git a/templates/search/blocks/search_sort_and_view_options.html b/templates/search/blocks/search_sort_and_view_options.html index 841c7b2b3..b404d5cf6 100644 --- a/templates/search/blocks/search_sort_and_view_options.html +++ b/templates/search/blocks/search_sort_and_view_options.html @@ -5,7 +5,7 @@
-

+

@@ -14,7 +14,7 @@

{% render_fields_as_hidden form exclude='sort_by' %} - +

Display as:

diff --git a/templates/search/featured_search.html b/templates/search/featured_search.html index 8ac932675..24c2ab726 100644 --- a/templates/search/featured_search.html +++ b/templates/search/featured_search.html @@ -18,7 +18,10 @@

Results for everything across our catalogue and website that matches your search term.

-
+ +
+ +