Example #1
0
def journal_id(soup):
    # the first non-nil tag
    return firstnn(
        extract_nodes(soup,
                      "journal-id",
                      attr="journal-id-type",
                      value="publisher-id"))
Example #2
0
 def date_accepted(self):
     # TODO: this sucks. normalize these into 'event' data or something
     x = [(self.initial_decision, self.date_initial_decision),
          (self.decision, self.date_full_decision),
          (self.rev1_decision, self.date_rev1_decision),
          (self.rev2_decision, self.date_rev2_decision),
          (self.rev3_decision, self.date_rev3_decision),
          (self.rev4_decision, self.date_rev4_decision)]
     return second(firstnn(filter(lambda p: p[0] == AF, x)))
Example #3
0
def journal_id(soup):
    # the first non-nil tag
    return firstnn(extract_nodes(soup, "journal-id", attr = "journal-id-type", value = "hwp"))