--- rat/lonwrapper.pm 2022/08/28 02:41:30 1.78 +++ rat/lonwrapper.pm 2022/08/30 11:41:27 1.79 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.78 2022/08/28 02:41:30 raeburn Exp $ +# $Id: lonwrapper.pm,v 1.79 2022/08/30 11:41:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -409,7 +409,7 @@ sub handler { } unless ($height =~ /^\d+$/) { $height = ''; - } + } } else { $width = ''; $height = ''; @@ -588,10 +588,10 @@ in Firefox 23 and later, when serving fr =item $is_ext true if URL is for an external resource. Default true value -is 1 (display in iframe, unless $uselink is true). +is 1 (display in iframe, unless $uselink is true). If external resource is to be displayed in a tab, value of $is_ext will be tab, if to be displayed in a pop-up window, -value of $is_ext will be window. +value of $is_ext will be window. =item $is_pdf @@ -603,13 +603,13 @@ If URL is for an External Tool, will con =item $linktext -optional. If URL is for an External Tool, and target type is window or tab, +optional. If URL is for an External Tool, and target type is window or tab, then the link text may be an option set in the course for each tool instance, or may be a default defined in the domain for all instances of the tool. =item $explanation -optional. If URL is for an External Tool, and target type is window or tab, +optional. If URL is for an External Tool, and target type is window or tab, then the explanation is an option set in the course for each tool instance, or may be a default defined in the domain for all instances of the tool. @@ -624,18 +624,18 @@ hidden URL set for the resource). =item $width optional. If URL is for an External Tool, and target type is window, -then a default width may have been defined in the domain for all instances of +then a default width may have been defined in the domain for all instances of the tool. If so, that width will be used for the window opened (via a link) -to launch the external tool. If the URL is for an External Resource, and +to launch the external tool. If the URL is for an External Resource, and $is_ext is window, then a default width (px) may have been defined in the current course for all external resource instances. =item $height optional. If URL is for an External Tool, and target type is window, -then a default height may have been defined in the domain for all instances of +then a default height may have been defined in the domain for all instances of the tool. If so, that height will be used for the window opened (via a link) -to launch the external tool. If the URL is for an External Resource, and +to launch the external tool. If the URL is for an External Resource, and $is_ext is window, then a default height (px) may have been defined in the current course for all external resource instances. @@ -654,21 +654,21 @@ Returns markup for the entire page. Content handler for requests for: /adm/wrapper/... used for content to be displayed in an iframe, or launched in a separate tab or window via a link. The target URL is extracted from the requested URL, by -removing the /adm/wrapper prefix. +removing the /adm/wrapper prefix. -The target URL will typically be a PDF served from the current server, an +The target URL will typically be a PDF served from the current server, an external resource URL served from a different server, or an external tool (from an LTI Provider) launched from LON-CAPA (as LTI Consumer) and launched via a link. If the request included forceedit in the query string, and the requester has -rights to modify course content, then the editor will be didplayed to allow +rights to modify course content, then the editor will be displayed to allow changes to be made to the resource (e.g., change the URL of the external resource, -or change the setting for the external tool instance. +or change the setting for the external tool instance). If not in edit mode, then the wrapper() subroutine will be called to generate the standard LON-CAPA inline menu, and then either a link to launch a separate tab or -window, or an iframe to display the content inline. +window, or an iframe to display the content inline. =back