you can restrict types / aspects in the document library pages using Surf Extensiblity Modules. These allow you to provide dynamic configuration additions based on the context of a request and can have an evaluator assigned determining when that configuration should be used. Have a look at this <a href="http://blogs.alfresco.com/wp/developer/2012/03/05/share-configuration-extensibility/">blog post by Dave Draper</a> for a way to do this.
That link helped, but i'm now confused at where to write the module. Do i create a new .xml file for it, append it in share-documentlibrary-config.xml, or overwrite share-documentlibrary-config.xml.