Skip to content

Commit

Permalink
Add Status and Wayback Tracking Fields to External Resources (#307)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
ibrahimjaved12 and umar8hassan authored Dec 10, 2024
1 parent 32d0e90 commit 5711201
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
23 changes: 12 additions & 11 deletions ocw-course-v2/ocw-studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
23 changes: 12 additions & 11 deletions ocw-www/ocw-studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5711201

Please sign in to comment.