Changeset 12178


Ignore:
Timestamp:
2006-07-12T16:40:21+12:00 (18 years ago)
Author:
kjdon
Message:

changed the args for navtab, renamed the old navtab to navtaborig cos home, help, pref uses it, removed tabtextXXX macros which are no longer used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/nav_css.dm

    r11822 r12178  
    1515
    1616_globallinks_ {_If_("_cgiargu_" ne "1",_homelink_) _helplink_ _preflink_}
    17 _homelink_ {_navtab_(_httppagehome_,_linktextHOME_,_textdescrhome_)}
    18 _helplink_ {_navtab_(_httppagehelp_,_linktextHELP_,_textdescrhelp_)}
    19 _preflink_ {_navtab_(_httppagepref_,_linktextPREFERENCES_,_textdescrpref_)}
     17_homelink_ {_navtaborig_(_httppagehome_,_linktextHOME_,_textdescrhome_)}
     18_helplink_ {_navtaborig_(_httppagehelp_,_linktextHELP_,_textdescrhelp_)}
     19_preflink_ {_navtaborig_(_httppagepref_,_linktextPREFERENCES_,_textdescrpref_)}
    2020
    2121# The following is useful if collection specific macro.  Override
     
    3939# 3. alt/title explanatory text
    4040# 4. optional "selected" or not if it is the current tab
    41 #_navtab_ {<span _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink"><a href="_1_" title="_3_">_2_</a>)</span>}
    42 _navtab_ {<a _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink" href="_1_" title="_3_">_2_)</a>}
     41_navtaborig_ {<a _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink" href="_1_" title="_3_">_2_)</a>}
    4342
    44 # this is done like this because the receptionist checks if a macro called
    45 # _tabtext$FIELD_ is defined. This way we can make sure things are
    46 # undefined for nav_ns4.dm and it can fall back to using the roll-over images
    47 _tabtextSearch_ {_labelSearch_}
    48 _tabtextTitle_ {_labelTitle_}
    49 _tabtextCreator_ {_labelCreator_}
    50 _tabtextSubject_ {_labelSubject_}
    51 _tabtextDescription_ {_labelDescription_}
    52 _tabtextPublisher_ {_labelPublisher_}
    53 _tabtextContributor_ {_labelContributor_}
    54 _tabtextDate_ {_labelDate_}
    55 _tabtextTypes_ {_labelTypes_}
    56 _tabtextFormat_ {_labelFormat_}
    57 _tabtextIdentifier_ {_labelIdentifier_}
    58 _tabtextSource_ {_labelSource_}
    59 _tabtextLanguage_ {_labelLanguage_}
    60 _tabtextRelation_ {_labelRelation_}
    61 _tabtextCoverage_ {_labelCoverage_}
    62 _tabtextRights_ {_labelRights_}
    63 _tabtextOrg_ {_labelOrg_}
    64 _tabtextKeyword_ {_labelKeyword_}
    65 _tabtextHow_ {_labelHow_}
    66 _tabtextSeries_ {_labelSeries_}
    67 _tabtextList_ {_labelList_}
    68 _tabtextTo_ {_labelTo_}
    69 _tabtextFrom_ {_labelFrom_}
    70 _tabtextTopic_ {_labelTopic_}
    71 _tabtextBrwse_ {_labelBrwse_}
    72 _tabtextCollage_ {_labelCollage_}
    73 _tabtextbrows_ {_labelbrows_}
    74 _tabtextPeople_ {_labelPeople_}
    75 _tabtextAcronym_ {_labelAcronym_}
    76 _tabtextPhrase_ {_labelPhrase_}
    77 _tabtextArtist_ {_labelArtist_}
    78 _tabtextVolume_ {_labelVolume_}
    79 _tabtextCaptions_ {_labelCaptions_}
    80 _tabtextCountries_ {_labelCountries_}
     43# parameters are
     44# 1. The url to go to when clicked
     45# 2. The metadata name - this gets used to determine the title and alt text
     46# 3. optional "selected" if it is the current tab
     47_navtab_ {<a _If_("_3_" eq "selected",class="navlink_sel">_navlinktitle_(_2_),class="navlink" href="_1_" title="_navlinkalt_(_2_)">_navlinktitle_(_2_))</a>}
    8148
    8249
     
    9259}
    9360
    94 # image macros for all the classifications currently supported by
    95 # this receptionist.
    96 
    97 ## used to make the tabs in the navigation bar
    98 
    9961# cgiargu means "static page", so no search link should be shown
    100 _navtabsearch_ {_If_("_cgiargu_" ne "1",_navtabsearchlink_(_1_))}
    101 _navtabsearchlink_ {_navtab_(_httpquery_,_labelSearch_,_textdescrsearch_,_1_)}
    102 
     62_navtabsearch_ {_If_("_cgiargu_" ne "1",_navtab_(_httpquery_,Search,_1_))}
    10363
    10464package about
     65
    10566_imagethispage_ {_titleabout_}
    10667
    10768package query
     69
    10870_imagethispage_ {_labelSearch_}
    10971
Note: See TracChangeset for help on using the changeset viewer.