from zope.component import queryAdapter from Globals import InitializeClass from mdportal import MetadataPortalView from AccessControl.SecurityInfo import ClassSecurityInfo from Products.MetadataPortal.utils import getLanguage, translate from Products.MetadataPortal.waramulib.interfaces import IWidget class AdvancedSearch(MetadataPortalView): """ advanced search """ security = ClassSecurityInfo() def __init__(self, context, request): self.request = request self.context = context self.lang = getLanguage(request) def getFieldInput(self, field): """ get field's input html """ res = u"" return res def breadcrumbs(self): """ breadcrumbs """ return MetadataPortalView.breadcrumbs(self, True) + \ " > " + translate(self.context, 'advanced search', self.lang) InitializeClass(AdvancedSearch)