def get_keywords_index(self): if self.keywords: results = [normal_kw(i[1]) for i in self.keywords] results.sort() return results else: return []
def CmetaKeywordProvider(context): try: note = zope.component.queryAdapter(context, name='cmeta') except TypeError: return [] if not (note and note.keywords): return [] results = [normal_kw(i[1]) for i in note.keywords] results.sort() return results
def cmeta_citation_title_keyword(context): note = zope.component.queryAdapter(context, name='cmeta') if not (note and note.citation_title): return [] return [normal_kw(i) for i in note.citation_title.split()]
def pmr2_citation_title(context): note = zope.component.queryAdapter(context, name='cmeta') if not (note and note.citation_title): return [] return normal_kw(note.citation_title)
def pmr2_authors_family_name(context): note = zope.component.queryAdapter(context, name='cmeta') if not (note and note.citation_authors): return [] return [normal_kw(i[0]) for i in note.citation_authors]
def get_citation_title_index(self): if self.citation_title: return normal_kw(self.citation_title)
def get_authors_family_index(self): if self.citation_authors: return [normal_kw(i[0]) for i in self.citation_authors] else: return []