diff --git a/charts/prod-ohstaff-values.yaml b/charts/prod-ohstaff-values.yaml index 4b21ada..ce405aa 100644 --- a/charts/prod-ohstaff-values.yaml +++ b/charts/prod-ohstaff-values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: uclalibrary/oral-history-staff-ui - tag: v1.0.11 + tag: v1.0.12 pullPolicy: Always nameOverride: "" diff --git a/oh_staff_ui/classes/OralHistoryMods.py b/oh_staff_ui/classes/OralHistoryMods.py index 47b3530..2ffd5a8 100644 --- a/oh_staff_ui/classes/OralHistoryMods.py +++ b/oh_staff_ui/classes/OralHistoryMods.py @@ -41,7 +41,7 @@ def populate_fields(self): self._populate_rights() self._populate_subjects() self._populate_constituent_audio() - self._populate_narrator_image() + self._populate_interviewee_image() self._populate_interview_content() self._populate_series_content() @@ -177,21 +177,21 @@ def _create_relateditem_audio(self, mi: MediaFile) -> MODSv34: ri.toc = TableOfContents(text=toc.value) for ts in MediaFile.objects.filter( - item=pi, file_type__file_code="text_master_index" + item=pi, file_type__file_code="text_master_transcript" ): - if ts.file_url != "": - ri.locations.append( - LocationOH(url=ts.file_url, usage="primary display") - ) + if ts.file_url != "" and ts.file_url.endswith(".xml"): + # Due to legacy design the text_master_transcript can have 2 file types + # associated with it, we only want to show xml (TEI), and ignore html files + ri.locations.append(LocationOH(url=ts.file_url, usage="timed log")) return ri - def _populate_narrator_image(self): + def _populate_interviewee_image(self): for img in MediaFile.objects.filter( item=self._item, file_type__file_code="image_submaster" ).order_by("sequence"): self.locations.append( - LocationOH(url=img.file_url, label="Image of Narrator") + LocationOH(url=img.file_url, label="Image of Interviewee") ) def _populate_interview_content(self): diff --git a/oh_staff_ui/templates/oh_staff_ui/release_notes.html b/oh_staff_ui/templates/oh_staff_ui/release_notes.html index 4efc9b4..6f94766 100644 --- a/oh_staff_ui/templates/oh_staff_ui/release_notes.html +++ b/oh_staff_ui/templates/oh_staff_ui/release_notes.html @@ -4,6 +4,13 @@

Release Notes


+

1.0.12

+

April 26, 2024

+ +

1.0.11

April 26, 2024