// Use this script to display a location popup. ;;webscript LocationPopup( Record request, Assoc data, String dirtyCallback = Undefined ) ;Assoc element ;List location = data.Location ;String webdocSupport = .Module( "webdoc" ).SupportPrefix() ;Boolean Breadcrumbs = false ;if (IsDefined(request.Breadcrumbs) && request.Breadcrumbs == 'on') ;Breadcrumbs = true ;end ;if (Str.LocateI(request.QUERY_STRING,'&Breadcrumbs')) ;request.QUERY_STRING = request.QUERY_STRING[:Str.LocateI(request.QUERY_STRING,'&Breadcrumbs')-1] ;end ;if Breadcrumbs // add in a HTML Form Select Control to ensure that any functions that are looking for the control find it, // but its hidden from the user display using CSS ;for element in location // check that we have a URL, this is to solve the issue of some elements such as a Form Template that don't provide a URL // and have code on their forms to remove themselves from this list. ;if (Length(element.url)>0) // put a link in for each element and add a | delimiter if not the last item. `element.name``%L( element in location == Length( location ) ) ? "" : " | "` ;end ;end // add a link to toggle the style Show as Dropdown ;else // add a link to toggle the style Show as BreadCrumbs ;end ;if IsDefined( data.ParentInfo ) `[WebDoc_HTMLLabel.UpOneLevelAltImage]` ;end ;;end