INSERT IGNORE INTO export_format( profile, description, content, csv_separator, type, used_for ) VALUES ( "Zeitschriftenreklamationen", "Standardprofil für den Export von Heftinformationen für Zeitschriftenreklamationen", "LIEFERANT=aqbooksellers.name|TITEL=subscription.title|HEFTNUMMER=serial.serialseq|VERSPÄTET SEIT=serial.planneddate", ",", "sql", "late_issues" ), ("Late orders (CSV profile)", "Default CSV export for late orders", 'Title[% separator %]Author[% separator %]Publication year[% separator %]ISBN[% separator %]Quantity[% separator %]Number of claims [% FOR order IN orders ~%] [%~ SET biblio = order.biblio ~%] "[% biblio.title %]"[% separator ~%] "[% biblio.author %]"[% separator ~%] "[% bibio.biblioitem.publicationyear %]"[% separator ~%] "[% biblio.biblioitem.isbn %]"[% separator ~%] "[% order.quantity%]"[% separator ~%] "[% order.claims.count%][% IF order.claims.count %]([% FOR c IN order.claims %][% c.claimed_on | $KohaDates %][% UNLESS loop.last %], [% END %][% END %])[% END %]" [% END %]', ",", "sql", "late_orders");