From 5711201a7d4e75669d0dbfd01e9429a06b11142e Mon Sep 17 00:00:00 2001 From: ibrahimjaved12 <109785089+ibrahimjaved12@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:17:13 +0500 Subject: [PATCH] Add Status and Wayback Tracking Fields to External Resources (#307) * Add status and wayback fields to external resources * Add status and wayback fields to external resources in www theme * Use Status and Wayback URL only * added readonly property for wayback url field --------- Co-authored-by: Umar Hassan --- ocw-course-v2/ocw-studio.yaml | 23 ++++++++++++----------- ocw-www/ocw-studio.yaml | 23 ++++++++++++----------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/ocw-course-v2/ocw-studio.yaml b/ocw-course-v2/ocw-studio.yaml index afdf0c0..ad20c77 100644 --- a/ocw-course-v2/ocw-studio.yaml +++ b/ocw-course-v2/ocw-studio.yaml @@ -296,6 +296,13 @@ collections: The URL. For example, https://owl.english.purdue.edu/owl/resource/747/01/ + - label: Wayback URL + name: wayback_url + widget: string + required: false + readOnly: true + help: URL to the last Wayback Machine snapshot of the resource. + - label: License name: license widget: select @@ -324,19 +331,13 @@ collections: If true, user sees warning that external content is not covered by OCW licensing. - - label: Is Broken - name: is_broken + - label: Status + name: status widget: hidden - default: null required: false - help: Whether or not this link is broken. - - - label: Internet Archive Backup URL - name: backup_url - widget: hidden - default: null - required: false - help: URL to use when is_broken is true. + help: > + The current status of the external resource + (e.g., valid, broken, unchecked, check_failed). - category: Settings name: metadata diff --git a/ocw-www/ocw-studio.yaml b/ocw-www/ocw-studio.yaml index fe4289d..c0b8cf6 100644 --- a/ocw-www/ocw-studio.yaml +++ b/ocw-www/ocw-studio.yaml @@ -484,6 +484,13 @@ collections: The URL. For example, https://owl.english.purdue.edu/owl/resource/747/01/ + - label: Wayback URL + name: wayback_url + widget: string + required: false + readOnly: true + help: URL to the last Wayback Machine snapshot of the resource. + - label: License name: license widget: select @@ -512,19 +519,13 @@ collections: If true, user sees warning that external content is not covered by OCW licensing. - - label: Is Broken - name: is_broken + - label: Status + name: status widget: hidden - default: null required: false - help: Whether or not this link is broken. - - - label: Internet Archive Backup URL - name: backup_url - widget: hidden - default: null - required: false - help: URL to use when is_broken is true. + help: > + The current status of the external resource + (e.g., valid, broken, unchecked, check_failed). - category: Content folder: content/instructors