What it does
The ghosts of others within 18 tiles of a boss's lair are sent to the nearest shrine.
Into your book
You have it from its scroll, which a scribe writes (how). A scroll let go onto your book writes the spell into it for good. How casting goes, step by step, is on Magic.
See also: The Black Book, Reagents, Scrolls and scribing