Beispiel #1
0
 def pop_up(self, latlng):
     m = ''
     if self.founded: m += '<p><small>founded <b>' + str(self.founded)
     if self.founded and self.closure: m += '</b>, '
     else: m += '</b></small></p>'
     if not m and self.founded: m += '<p><small>'
     if self.closure:
         m += 'closure <b>' + str(self.closure) + '</b></small></p>'
     return pop_up(self, latlng, extra_information=m)
Beispiel #2
0
 def pop_up(self, latlng):
     m = ''
     if self.language:
         m += '<p><small>language <b>' + self.language.name
     if self.language and self.genre: m += '</b>, '
     else: m += '</b></small></p>'
     if not m and self.genre: m += '<p><small>'
     if self.genre:
         m += 'genre <b>' + self.genre.name + '</b></small></p>'
     return pop_up(self, latlng, extra_information=m)
Beispiel #3
0
    def pop_up(self, latlng=None):
        '''create a pop up for map rendering with information 
		about this instance.
		'''
        m = ''
        if self.life: m += '<p><small>' + self.life + '</small></p>'
        pseudonyms = self.pseudonyms
        if pseudonyms:
            m += '<p><small>pseudonym <b>' + pseudonyms + '</b></small></p>'
        p = pop_up(self, latlng, extra_information=m)
        return p
Beispiel #4
0
 def pop_up(self, latlng):
     m = ''
     if self.publisher_names:
         m += '<p><small>published by <b>' + self.publisher_names
         m += '</b></small></p>'
     if self.volume: m += '<p><small>volume <b>' + str(self.volume)
     if not self.issue: m += '</b></small></p>'
     if not self.volume and self.issue: m += '<p><small>'
     if self.issue and self.volume: m += '</b>, '
     if self.issue: m += 'issue <b>' + str(self.issue) + '</b></small></p>'
     if self.date:
         m += '<p><small>published in <b>' + self.date.name + '</b></small></p>'
     return pop_up(self, latlng, extra_information=m)
Beispiel #5
0
 def pop_up(self, latlng):
     m = ''
     if self.founded: m += '<p><small>founded <b>' + str(self.founded)
     if self.founded and self.closure: m += '</b>, '
     else: m += '</b></small></p>'
     if not m and self.founded: m += '<p><small>'
     if self.closure:
         m += 'closure <b>' + str(self.closure) + '</b></small></p>'
     x = self.periodicalpublicationrelation_set.all()
     n = ' | '.join(list(set([y.publication.publisher_names for y in x])))
     names = n
     if names:
         m += '<p><small>published by <b>' + names + '</b></small></p>'
     return pop_up(self, latlng, extra_information=m)
Beispiel #6
0
 def pop_up(self, latlng=None):
     '''creates html for the pop up for map visualization.'''
     return pop_up(self, latlng)