function newWindow(url) { window.open(url, "sideWin", 'toolbar=no,location=no,scrollbars=yes,resizable=yes') } function newWindow2(url) { window.open(url, "sideWin2", 'toolbar=yes,location=yes,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes,personalbar=yes') } function subgif(form, addEl) { form.elements[form.elements.length-1].name = addEl form.submit() } function printText(str){ var ie4 = (document.all) ? true : false; var nn4 = (document.layers) ? true : false; mydiv = (ie4) ? div1 : eval(document.who); if (ie4){ mydiv.innerHTML = str } else if (nn4) { layer = document.layers['layer1'] doc = layer.document; anchor = document.layerAnchor layer.x = anchor.x layer.y = anchor.y layer.visibility = "show" doc.open('text/html') doc.write(str) doc.close(); } }
       
SRS Users Manual
Introduction to SRS
SRS Sessions
Querying With SRS
Linking
Views
  5.1  Overview of Views
  5.2  Using Views
  5.3  Creating Views
Applications
Command Line SRS
The SRS Query Language 
5.2 Using Views
  SRS comes pre-configured with certain default views. The SRS Administrator can edit these default views or create new views in the default set. Furthermore, users can create their own views. User created views are saved as part of the session file, enabling the user to save and reuse their view in the future.

 Views can be applied from any page that creates or holds a query, such as:
 
 

  • The "Standard" query form.
  •  The "Extended" query form.
  •  The "Entry List" page. (The results of an individual query).
  •  An "Entry" page.
  •  The "Results" page.
  •  The "Linking" page.
  •  The "Application Launch" page.
How to Apply Views
  Following are instructions for applying views to your query results. Each is given as a mini tutorial. In the first two you will begin by querying a databank and setting the query options for views so that the query results are displayed with your chosen view. The others show how to apply to an already existing set.
 
 

From the "Standard" query form

To apply a view from the "Standard" query form: 
  1. Select the EMBL databank checkbox from the "Top" page and click the "Standard" button. See chapter 3, "Querying" if necessary.
  2. Enter "oxidase" in the input box. The default "AllText" data field is fine.
  3. Select the view you would like from the pull-down menu beside the heading "Use predefined view". See figure 1.
FIGURE 1. Choose a predefined view for your "Standard" query.
  1. Click on Submit Query.
  • This will bring up the "Entry List" page with the results of your query displayed using the selected view. See figure 2.
FIGURE 2. The "Entry List" page using the selected view.

From the "Extended" query form

To apply a view for an "Extended" query:
 
 
  1. Select the EMBL databank checkbox from the "Top" page and click the "Extended" button. See chapter 3, "Querying" if necessary.
  2. Enter "oxidase" in the "AllText" input box.
  3. Select the view that you want to apply to your query results from the drop-down menu beside "Use view". See figure 3.
FIGURE 3. Choose a view for your "Extended" query.
  1. Click the "Submit Query" button.
  • This will bring up the "Entry List" page with the results of your query displayed using the selected view.

From the "Entry List" page

Querying, linking, and launching applications always returns the "Entry List" page. It contains a list of the entries found that meet the requirements specified in the operation. If you do not select a view for the results when the operation is run the default "Names only" view is used. You have already seen how to override the default view for the "Standard" and "Extended" queries, later you will see how to override the default view for the "Linking" and "Application Launch". Now, you will see how to apply a different view to the "Entry List" page when you want to change views.

 To change views in the "Entry List" page:

 In the left side-margin you will see a drop-down menu below the "View" button. See figure 4. The drop-down menu displays the name of the view currently applied.

FIGURE 4. Changing views in the "Entry List" page.
  1. Select the drop-down menu.
  2. Scroll through the list until you find the view you want.
  3. Click the view name to select it.
  4. Click the "View" button.
  • The "Entry List" page will be replaced with a new "Entry List" that displays the results using the selected view. See figure 5.
FIGURE 5. The new view in the "Entry List" page.

From the "Entry" page

To apply a view from the "Entry" page:
 
 
  1. You need to be on an "Entry" page so start with the "Entry List" page from the previous example and click the hyperlinked entry name for one of the entries. See figure 6.
FIGURE 6. Click the entry hyperlink.
  1. Select the drop-down menu that is above the entry and beside the "View" button.
  2. Scroll through the list until you find the view that you want to use for the entry. See figure 7.
FIGURE 7. Choosing a view.
  1. Click the view name to select it.
  2. Click the "View" button.
  • The "Entry" page is replaced with an "Entry" page that uses the selected view. See figure 8.
FIGURE 8. The new view.

From the "Results" page

To apply a view from the results page:
 
 
  1. Select the set that you want to apply the view to.
  • Click the checkbox to the left of "Q1".
  1. Select the view from the pull-down in the left margin. See figure 9.
FIGURE 9. Select the view for your set.
  1. Click the "View" button.

From the "Linking" page

To apply a view for the results of a linking operation from the "Linking" page:
 
 
  1. Click the "Results" tab.
  • This will bring up the "Results" page.
  1. Select the checkbox to the left of "Q1".
  2. Click the "Link" button.
  • This will bring up the "Linking" page.
  1. Choose the databank to look for links in.
  • Select the checkbox to the left of the SWISSPROT hyperlink. See figure 10.
FIGURE 10. Pick a view for links.
  1. Choose the view that you want to apply to the results of the linking operation, click the drop-down menu in the left-side margin under the "Use view" heading.
  2. Click the "Link" button.

From the "Application Launch" page

To choose a view for the results of an application other than the default view:
 
 
  1. From the "Results" page pick the application to run and click the "Launch" button. 
  • See chapter 6, "Applications" for more information on launching applications.
  1. You will see a drop-down menu near the heading "select view to display results". Select this drop-down menu.
  2. Scroll through the list until you find the view that you want. See figure 11.
FIGURE 11. Choose a view for the application results.
  1. Launch the application as usual.
  • The results of the application will be displayed in the "Entry List" page using the view you selected.
SRS 6.0.7.3