Use proper warn class for delete dialog buttons.
Externalized raw search string, prepared retrieval by year.