Term: olfactory chapeauphilia
Example: mary was diagnosed as having olfactory chapeauphilia as she sat with her nose pressed upto her doctor's hat
Definition: a particular aspect of hat fetis centred around the sniffing of hats