version 1.78, 2022/08/28 02:41:30
|
version 1.79, 2022/08/30 11:41:27
|
Line 409 sub handler {
|
Line 409 sub handler {
|
} |
} |
unless ($height =~ /^\d+$/) { |
unless ($height =~ /^\d+$/) { |
$height = ''; |
$height = ''; |
} |
} |
} else { |
} else { |
$width = ''; |
$width = ''; |
$height = ''; |
$height = ''; |
Line 588 in Firefox 23 and later, when serving fr
|
Line 588 in Firefox 23 and later, when serving fr
|
=item $is_ext |
=item $is_ext |
|
|
true if URL is for an external resource. Default true value |
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, |
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 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 |
=item $is_pdf |
|
|
Line 603 If URL is for an External Tool, will con
|
Line 603 If URL is for an External Tool, will con
|
|
|
=item $linktext |
=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, |
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. |
or may be a default defined in the domain for all instances of the tool. |
|
|
=item $explanation |
=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, |
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. |
or may be a default defined in the domain for all instances of the tool. |
|
|
Line 624 hidden URL set for the resource).
|
Line 624 hidden URL set for the resource).
|
=item $width |
=item $width |
|
|
optional. If URL is for an External Tool, and target type is window, |
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) |
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 |
$is_ext is window, then a default width (px) may have been defined in the current |
course for all external resource instances. |
course for all external resource instances. |
|
|
=item $height |
=item $height |
|
|
optional. If URL is for an External Tool, and target type is window, |
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) |
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 |
$is_ext is window, then a default height (px) may have been defined in the current |
course for all external resource instances. |
course for all external resource instances. |
|
|
Line 654 Returns markup for the entire page.
|
Line 654 Returns markup for the entire page.
|
Content handler for requests for: /adm/wrapper/... |
Content handler for requests for: /adm/wrapper/... |
used for content to be displayed in an iframe, or launched in a separate tab |
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 |
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 |
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 |
(from an LTI Provider) launched from LON-CAPA (as LTI Consumer) and launched |
via a link. |
via a link. |
|
|
If the request included forceedit in the query string, and the requester has |
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, |
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 |
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 |
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 |
=back |
|
|