awips2/docs/cave/d2d-edit-menus.md

60 lines
2.7 KiB
Markdown
Raw Permalink Normal View History

2017-04-21 18:33:55 -06:00
Any of the data menus can be customized in the Localization Perspective.
2017-06-13 12:50:18 -06:00
## Changing the models displayed with D2D bundles
2017-04-21 18:33:55 -06:00
1. In the Localization Perspective you can navigate to **D2D** > **Volume Browser** > **VbSources** and click on **volume.xml** to expand. Then right-click on **BASE** and select **Copy To...** **User** (awips).
2. You can then right-click again on the **VbSources** folder and select **Refresh** to see your new localization file called **USER (awips)**.
3. Open the file and add or edit the model names:
<menuContributionFile>
<include installTo="menu:models"
fileName="menus/volume/allFamilies.xml">
<substitute key="modelName" value="CMC" />
<substitute key="menuName" value="CMC" />
<substitute key="frameCount" value="41" />
<substitute key="TP" value="TP"/>
</include>
<include installTo="menu:models"
fileName="menus/volume/allFamilies.xml">
2018-07-20 10:16:47 -06:00
<substitute key="modelName" value="GFS" />
<substitute key="menuName" value="GFS" />
2017-04-21 18:33:55 -06:00
<substitute key="frameCount" value="41" />
<substitute key="TP" value="TP"/>
</include>
...
Notice that you specify both the `modelName` (what it's named inside EDEX, such as NAM12), and `menuName`, if you prefer a more detailed menu entry, such as "NAM 12km". When you are finished, save the file and restart CAVE for the changes to take effect.
Your new localization file exists on the EDEX server (assuming username awips) as
`/awips2/edex/data/utility/cave_static/users/awips/volumebrowser/VbSources/index.html`
and will exist on the local CAVE machine under `~/caveData/etc/user/awips/volumebrowser/VbSources/index.html`
2017-06-13 12:50:18 -06:00
## Removing menus from the menubar
2017-04-21 18:33:55 -06:00
This example covers how to remove a menu (in this case **MRMS**) from D2D:
1. switch to the Localization Perspective
2. find the **mrms** folder under CAVE > Menus
3. double-click to expand **index.html**
4. right-click **BASE** and select **Copy To...**, then select **USER** level
5. right-click refresh the **mrms** entry
6. double click **USER** to open the editor and change
<menuContributionFile>
<include installTo="menu:mrms?after=MRMS_MENU_START"
fileName="menus/mrms/mrms.xml">
</include>
</menuContributionFile>
to
<menuContributionFile>
</menuContributionFile>
2018-07-20 10:16:47 -06:00
With this you can restart CAVE and will not see the MRMS menu anymore. Repeat this example for other product menus, such as **local**, **hydro**, **scan**, etc., to further customize D2D data menus for any level of localization.