LibreCat / Catmandu-Template

Catmandu modules for template toolkit
Other
0 stars 1 forks source link

template_before isn't called when records are skipped #6

Closed phochste closed 7 years ago

phochste commented 9 years ago

When the Fix script skips records, then the template_before (and template_after?) isn't called.

test.fix:
marc_map(020a,isbn.$append)  
select any_match(isbn.*,'^900')

Commandline:

$ catmandu convert MARC to Template --template_before head.xml --template body.xml --template_after foot.xml

This will show only body.xml if the first record was skipped.

nics commented 7 years ago

title should be "template_before isn't called when records are skipped"

vpeil commented 7 years ago

thanks @nics! #10 merged, so this one is solved.