# Apache::LONCAPA::FromTheGateway # # FromTheGateway.pm # API for passing information to LONCAPA from the Gateway Server # # For more documentation, read the POD documentation # of this module with the perldoc command: # # perldoc ./FromTheGateway.pm # # Brief description # ================= # # This module contains functionality for # transferring information to LON-CAPA from the Gateway Server. # # In terms of the overall data flow, the # '=====>' below indicates the role of this # module. # # NSDL ---------> Gateway ========> LON-CAPA # LON-CAPA -----> Gateway --------> NSDL # # SUBROUTINES: # LONCAPA->search_or_browse_against_NSDLgateway # LONCAPA->view_NSDLgateway_results # LONCAPA->view_NSDLgateway_metadata_record # LONCAPA->access_NSDLgateway_resource # Year 2002 # Scott Harrison # February-May # ### package Apache::LONCAPA::FromTheGateway; # ================================================================ DEPENDENCIES use strict; # enforce handling of variables, references and subroutines # ============================================================ MODULE VARIABLES my $VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/); # ================================================================= SUBROUTINES # ------------------------------- LONCAPA->search_or_browse_against_NSDLgateway sub search_or_browse_against_NSDLgateway { # Not yet implemented # Need to specifically characterize INPUT arguments and OUTPUT data } # ------------------------------------------- LONCAPA->view_NSDLgateway_results sub view_NSDLgateway_results { # Not yet implemented # Need to specifically characterize INPUT arguments and OUTPUT data } # ----------------------------------- LONCAPA->view_NSDLgateway_metadata_record sub view_NSDLgateway_metadata_record { # Not yet implemented # Need to specifically characterize INPUT arguments and OUTPUT data } # ---------------------------------------- LONCAPA->access_NSDLgateway_resource sub access_NSDLgateway_resource { # Not yet implemented # Need to specifically characterize INPUT arguments and OUTPUT data } 1; __END__ =pod =head1 NAME B - API for passing information to LONCAPA from the Gateway Server =head1 SYNOPSIS use Apache::LONCAPA::FromTheGateway; my $arrayref= Apache::LONCAPA::FromTheGateway::view_NSDLgateway_results ($information_location); =head1 DESCRIPTION This module contains functionality for transferring information to LON-CAPA from the Gateway Server. In terms of the overall data flow, the '=====>' below indicates the role of this module. NSDL ---------E B LON-CAPA> LON-CAPA -----E Gateway --------E NSDL =head2 EXIT CODES The subroutines of this module all output an exit code which describes the status of function completion. The exit code may be followed by a more descriptive message such as: FORMATERROR:Sun May 5 20:15:16 GMT 2002:missing 'protocol://' pattern =over 4 =item * B<'SUCCESS'>, information was found and is being returned =item * B<'EMPTY'>, everything functioned properly, but no information was present =item * B<'BADEMPTY'>, everything appeared to function properly, but no information was present (which defies expectation); this is useful for detecting phantom cases of connectivity when verifying test cases of vertical software partitions =item * B<'TIMEOUT'>, the request is taking WAY too long =item * B<'FORMATERROR'>, the input argument is not formatted correctly in a way that can be processed by the NSDL server =item * B<'CONNECTIONFAILURE'>, the NSDL server cannot be contacted =back =head2 SUBROUTINES Note that the subroutines all output an exit code which describes the status of function completion. In the case of failed function completion, the other output argument(s) will typically only be 'NULL' values. =over 4 =item B =over 4 =item B - Scalar string Memory location of Gateway Server results. =item B - Scalar string, Scalar string reference An exit code is returned as a scalar string. View the Gateway Server results. =item B This facilitates the viewing of LON-CAPA record lists. B GATEWAY>. =item B n/a =back =item B =over 4 =item B - Scalar string Identifier for a specific NSDL metadata record. =item B - Scalar string, Scalar string reference An exit code is returned as a scalar string. A pointer to the metadata. =item B This provides the content of the resource matching a given request. B GATEWAY>. =item B n/a =back =item B =over 4 =item B - Scalar string Identifier for LON-CAPA resource. =item B - Scalar string, Scalar string reference. An exit code is returned as a scalar string. Pointer to information about accessing NSDL resource. =item B This accepts access to a NSDL resource. B GATEWAY>. =item B n/a =back =item B =over 4 =item B - Scalar string Set of search expressions and corresponding fields to pass onto the NSDLgateway. Alternatively, a browse request. =item B - Scalar string, Scalar array reference An exit code is returned as a scalar string. A pointer to the location of search results is returned. =item B This models the functionality by which a LONCAPA server will pass a search request to the NSDL-LONCAPA Gateway Server. This launches the search or browse request and receives a pointer as to where the results will be. =item B n/a =back =back =head1 README B is part of the NSDL-LONCAPA Gateway Server system. Please see http://nsdl.lon-capa.org/ for more information. =head1 AUTHOR Scott Harrison, 2002 =head1 PREREQUISITES This module requires the C module. =head1 COREQUISITES Apache::NSDL::FromTheGateway Apache::NSDL::ToTheGateway Apache::GATEWAY::ToNSDL Apache::GATEWAY::FromNSDL Apache::GATEWAY::ToLONCAPA Apache::GATEWAY::FromLONCAPA Apache::LONCAPA::ToTheGateway =head1 SEE ALSO http://www.lon-capa.org/ http://www.smete.org/ Also visit the other Apache::NSDL::*, Apache::LONCAPA::*, and Apache::GATEWAY::* manpages. =head1 OSNAMES linux =cut