IMO The same action should be taken whether using the internet or the library. You research the subject, making notes as you go. You then establish the most relevant, or interesting, facts about the subject and decide what to include in your essay. You then write the essay, using your own words.
It seems to me that it doesn't matter where you get your information. The important thing is that it is YOUR essay, not someone else's words and/or ideas.