Takes publication-year as parameter. Also, fixed the consumer-producer
queuing mechanism to terminate (with empty record).