World-Wide Web Support on MUSIC/SP

Index Text Search (ITS) and HTTP
Example of an ITS Document for Web (TYPE text)
Example of an ITS Document for Web (TYPE html)

Index Text Search (ITS) and HTTP

WEB pages for Index Text Search (ITS) applications can be easily created using the information from an ITS MUSIC application. See the MUSIC/SP Campus-Wide Information Systems (CWIS) Guide for information on how to prepare and create ITS applications on MUSIC.

For example, the file $MAN:MAN.GNU contains all the information necessary to provide indexed text searching for the MUSIC/SP Guide for New Users. When $MAN:MAN.GNU is invoked on MUSIC native mode, a screen with input fields is presented allowing a user to enter text for searching.

You can set up a WEB version of the indexed text by using the format below.

TYPE text_type
INDEX index_file_name
TEXTFILE text_file_name
TITLE title
HTML
... appropriate html text providing description and instruction
INDex
IDX
Specifies the name of the MUSIC file that contains the index data for the text file.

TExtfile
TXT
Specifies the name of the MUSIC file that contains the actual text.

TITle
This is a title to be used in the HTML file.

TYPE
Specifies the data type of the actual data. It usually is in plain text. Currently the data types can be either html or text.

HTMl
This is used as a marker. Any text after this is treated as html for the purpose of describing the ITS application and for providing instructions.

Example of an ITS Document for Web (TYPE text)

The following is the contents of the file $MAN:MAN.GNU (used to provide indexed text searching for the MUSIC/SP Guide for New Users online manual.

_____________________________________________________________________________

/inc itsret IDX=$MAN:GNU.WIDX TXT=$MAN:GNU.TOTAL COPYOK HDR=$MAN:HDRTXT ORDER WEIGHT SEND * COPY * PCCOPY * RDCONT S1T=MUSIC/SP V5.1 Guide for New Users - 24APR96 s1m: Sample search patterns: manage Look for only the word "manage" manage* Look for words starting with "manage" such as "management" mail email Look for entries that contain both words mail or email Look for entries that contain either word Table of contents =cs Use this search word to show summary of contents =c Use this search word to show full contents ==== end _____________________________________________________________________________

The above example was edited to include HTML tags and saved as $MAN:HTTP\GNU.ITS. The contents of this file provides index text search for the GNU manual via an html WEB page. The example below is the complete information required for a WEB version (TYPE text) of the GNU manual as an ITS application.

Note: This WEB version of GNU displays a mono-spaced text file. No changes were made to the original file ($MAN:GNU.TOTAL).

_____________________________________________________________________________

TYPE TEXT INDEX $MAN:GNU.WIDX TEXTFILE $MAN:GNU.TOTAL TITLE Guide for New Users HTML <H6>MUSIC/SP V5.1 Guide for New Users - 22APR96 </H6> <P> <EM>Sample search patterns:</EM><BR> <STRONG>manage</STRONG> Look for only the word "manage"<BR> <STRONG>manage*</STRONG> Look for words starting with "manage" such as "management"<BR> <STRONG>mail email</STRONG> Look for entries that contain both words<BR> <STRONG>mail or email</STRONG> Look for entries that contain either word<BR> <p> <DL> <DT><em>Table of contents</em><dd> <strong>=cs </strong> Use this search word to show contents summary<BR> <strong>=c </strong> Use this search word to show full contents </DL> _____________________________________________________________________________

Example of an ITS Document for Web (TYPE html)

The following shows the contents of the file $MAN:HTTP\SAMP.HTML.ITS. It is very similar to the previous example except the first line is changed to "TEXT HTML".
_____________________________________________________________________________

TYPE HTML INDEX $MAN:HTTP\SAMP.HTML.WIDX TEXTFILE $MAN:HTTP\SAMP.HTML TITLE MUSIC/SP Sample Guide (test) HTML <H6>MUSIC/SP Sample Guide </H6> <P> <EM>Sample search patterns:</EM><BR> <STRONG>world</STRONG> Look for only the word "world"<BR> <STRONG>world*</STRONG> Look for words starting with "world" such as "World-Wide Web"<BR> <STRONG>ftp telnet</STRONG> Look for entries that contain both words<BR> <STRONG>ftp or telnet</STRONG> Look for entries that contain either word<BR> <p> <DL> <DT><em>Table of contents</em><dd> <strong>=cs </strong> Use this search word to show contents summary<BR> <strong>=c </strong> Use this search word to show full contents </DL> _____________________________________________________________________________

Note: The file containing the actual manual ($MAN:HTTP\SAMP.HTML) is quite different from MAN:GNU.TOTAL as it includes HTML tags. The following shows the beginning of this file:
_____________________________________________________________________________

<H1>Chapter 1. Introduction to Electronic Communications</H1> <H2>Overview of Electronic Communications</H2> Many programs on MUSIC fit into the category of electronic communications. They can be divided into 2 groups: internal and external. <H3>Internal Communications</H3> MUSIC supports many simultaneous users. These users can communicate with each other using the following programs: <ul> <li>CONF Electronic Conferencing: An electronic conference allows a group of users to discuss topics of mutual interest at a time convenient to everyone. To invoke this program, type "CONF" in command mode. See Chapter 2 - Conferencing. <li>MAIL Electronic Mail: MUSIC provides the MAIL program for sending and receiving electronic mail. To invoke this program, type "MAIL" in command mode. See Chapter 3 - Electronic Mail. <li>CHAT Interactive Conferencing: The CHAT command accesses interactive conferencing. As each user participating in the conference enters text, the text is recorded on the screen. This written conversation is different from the CONF program as it is designed for immediate response by the participants. See Chapter 2 - Conferencing. <li>TELL Single Line Messages: The TELL command is used to send a single line message to another user signed on to the system. The message text is immediately displayed on the receiver's screen. See Chapter 2 - Conferencing. </ul> <H3>External Communications</H3> The following programs are used to communicate with colleagues using remote computers. etc. _____________________________________________________________________________


Return to "Web Support"
This page last updated May 2, 1997.