Replace outdated dataset reading commands. Add mimetype command. Use spool function to read template file.
Replace outdated dataset reading commands.
Add mimetype command.
Use spool function to read template file.

simoc/mapyrus,simoc/mapyrus,simoc/mapyrus