That sounds like a very good idea. It might be best to have a seperate
function like output_error, though, because otherwise each script that
raises a 404 will have to deal with it in the template somehow (and most
don't; for instance, opac-detail gives some odd error in C4::XSLT).

For instance:

output_error "404", sprintf("Biblio #%d was not found", $biblionumber);

This could have its own template, along the lines of auth.tmpl but with the
menus, etc.

Just putting 404 in the HTTP status line would be good, but it'd be nice to
give some feedback to the user.
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

Reply via email to