Brief summary of the issue:
This was a wishlist item from NanoHUB for course resource layout. If there is a child resource with a youtube child (logical type youtube), show youtube link in the online lecture column along with Hubpresenter child resources instead of in the supplemental materials column.
Brief summary of the fix/changed code: 1) Created $logical_alias from alias of child logical_type, similar to how $alias is used for child type, to use strings instead of numeric codes in if and switch statements (much more readable and less prone to changes in numeric codes). 2) Child type aliases of 'elink' and 'youtube' were set to logical_type alias of 'YouTube'. 3) The 'youtube' subtype was then added to the online lecture column instead of defaulting to the supplemental materials column.
Brief summary of your testing: Tested on personal VirtualBox VM with sample resource containing a YouTube link.
Adjustment to course lecture presentation for resources type courses
This was a wishlist item from NanoHUB for course resource layout. If there is a child resource with a youtube child (logical type youtube), show youtube link in the online lecture column along with Hubpresenter child resources instead of in the supplemental materials column.