[Inso Home Page] [Home] [Collection] [Book] [Expand] [Collapse] [Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] [Preferences] [Print] [Help]

 inside  Expand Search


Adding a Button to the Button Bar [Table of Contents] Removing the Expand Search Checkbox

DynaWeb Publishers Guide

[-] 5. Modifying The DynaWeb Interface
[-] Buttons
[-] Removing a Button from the Button Bar

Removing a Button from the Button Bar

To delete a button from the button bar, you need to remove the HTML that calls the button from the button bar template. There are six templates that control the button bars that appear while viewing DynaWeb collections and books. Each level of browsing (root, collection, and book level) has a button bar for frame viewing and a button bar for non-frame viewing.

The four templates are located in the bookbbar.dwc and collbbar.dwc configuration files and are named:

collbbar.dwc

dwTemplate Frames__CollectionButtonBarView
dwTemplate NoFrames__CollectionButtonBarView

bookbbar.dwc

dwTemplate Frames__BookButtonBarTemplate
dwTemplate NoFrames__BookButtonBarTemplate

The HTML for individual buttons differs, depending on the function of the particular button. Following is a list of all the buttons and the HTML that you need to remove in order to delete the button.

The HTML for each button is contained in a separate script that is called into the button bar with a dwCall statement. To remove the button completely from the button bar, remove the dwCall statement for the particular button.

Removing the Inso Home Page Button

This button provides a link to Inso's home page and a list of other places where DynaWeb collections are available for browsing. Find the following line in the above templates to remove this button.

$[dwGetLocParam [dwGet State__Language]_a_href_map inso_home_page]

Removing the Home Button

The Home button returns the viewer to the Root level of browsing (or to an alternate location if the value of the Home button destination is altered). The HTML that calls the Home button is as follows:

$[dwCall ShowHomeButton]

To put a different button in place of the Inso Home Page button, modify the dwScript "ShowHomeButton" to point to the button you desire.

Removing the Collection Button

The Collection button returns the browser to the Collection level of browsing. The HTML tags for the Collection button appear as follows:

dwSet CollectionButton \
<A HREF=\"../@[dwGet TopLevelView][dwGet UrlParamString]\"\
TARGET=_top>
[dwGetLocParam [dwGet State__Language]_button_image_srcmap collection]</A>

Removing the Book Button

The HTML tags for the Book button in the Frames__BookButtonBarTemplate and NoFrames__BookButtonBarTemplate are as follows:

<A HREF="../@Generic__CollectionView$[dwGet CollUrlParamString]"
   TARGET=_top>$[dwGetLocParam [dwGet State__Language]_button_image_srcmap book]</A>

In the Frames__CollectionButtonBarView and NoFrames__CollectionButtonBarView templates, the Book button is inactive, and the HTML is as follows:

$[dwGetLocParam [dwGet State__Language]_button_image_srcmap book_dim]

Removing the Expand Button

The Expand button displays another level of the TOC. The HTML used to call the Expand button into the bookbbar.dwc file is as follows:

$[dwGet expand_button]

Search for "dwSet expand_button" for the actual HTML.

The HTML used to show the Expand button in the collbbar.dwc file is as follows:

<A HREF="@$[dwGet TopLevelView]$[dwGet ExpandParams]$[dwGet UrlQueryString]"
   TARGET=_top>$[dwGetLocParam [dwGet State__Language]_button_image_srcmap expand]</A>

Removing the Collapse Button

The Collapse button hides the lowest level currently being shown of the TOC. The HTML to call the Collapse button into the button bar in the bookbbar.dwc file is shown below.

$[dwGet collapse_button]

Search for "dwSet collapse_button" for the actual HTML.

The HTML for the Collapse button in the collbbar.dwc is shown below.

<A HREF="@$[dwGet TopLevelView]$[dwGet CollapseParams]$[dwGet UrlQueryString]"
            TARGET=_top>$[dwGetLocParam [dwGet State__Language]_button_image_srcmap collapse]</A>

Removing the Search Button

The HTML that shows the Search button is displayed below.

$[dwGetLocParam [dwGet State__Language]_button_image_srcmap search]

Removing the Search Forms Button

The Search Forms button brings up an HTML form that mimics existing DynaText search forms. The HTML is as follows:

$[dwGetParam [dwGet State__Language]_button_image_srcmap search_forms]

Removing the Previous Search Hit Button

The Previous Search Hit button moves the view to the previous section of text that contains a successful search hit. The HTML used to call the button is shown below.

$[dwCall ShowPrevHitButton]

Removing the Next Search Hit Button

The Next Search Hit button moves the view to the following section of text that contains a successful search hit. The HTML used to call the button is shown below.

$[dwCall ShowNextHitButton]

Removing the Clear Search Button

The Clear Search button removes all visible hits from a completed search.

$[dwCall ShowClearButton]

The Clear Search button does not appear in the Frames__RootButtonBarView or the NoFrames__RootButtonBarView templates.

Removing the Show Frames/Hide Frames Button(s)

Depending on the current viewing mode, one of these buttons is always present to switch into or out of frame viewing.

The Show Frames button appears in the NoFrames__RootButtonBarView, the NoFrames__CollectionButtonBarView, and the NoFrames__BookButtonBarTemplate. The HTML for the Show Frames button in the Root view is as follows:

$[dwCall NoFrames__RootShowFramesButton]
$[dwCall NoFrames__CollectionShowFramesButton]
$[dwCall NoFrames__BookShowFramesButton]

The Hide Frames button appears in the Frames__RootButtonBarView template, the Frames__CollectionButtonBarView template, and the Frames__BookButtonBarTemplate. The HTML to call the button in the Frames__RootButtonBarView is:

<A HREF="@Generic__RootView$[dwCall RemoveHfUrlParam]$[dwGet UrlParamString];hf=0$[dwGet UrlQueryString]"\
   TARGET=_top>$[dwGetParam button_image_srcmap hide_frames]</A>

For the Frames__CollectionButtonBarView template, the HTML is:

<A HREF="$[dwGet hideframesUrlprefix]@Generic__CollectionView$[dwGet UrlParamString];hf=0$[dwGet UrlQueryString]"\
   TARGET=_top>$[dwGetParam [dwGet State__Language]_button_image_srcmap hide_frames]</A>

For the Frames__BookButtonBarTemplate, the HTML looks like:

<A HREF="@Generic__BookTextView$[dwCall RemoveHfUrlParam]$[dwGet UrlParamString];hf=0$[dwGet UrlQueryString]"\
   TARGET=_top>$[dwGetParam [dwGet State__Language]_button_image_srcmap hide_frames]</A>

Removing the Print Button

The Print button allows users to select sections of the currently viewed book to download as a PostScript file for printing. The HTML for the Print button is shown below.

$[dwCall ShowPrintButton]

The Print button only appears in the Frames__BookButtonBarView and the NoFrames__BookButtonBarView templates.

Removing the Help Button

The Help button links to a quick overview of the button bar buttons. The HTML for the help button is shown below.

<A HREF=" "\
   TARGET=_top>$[dwGetParam [dwGet State__Language]_button_image_srcmap help]</A>

The Help button does not appear in the Frames__RootButtonBarView or the NoFrames__RootButtonBarView templates.


Adding a Button to the Button Bar [Table of Contents] Removing the Expand Search Checkbox