hello Martin,
OSPFv2 used for ipv4 routing is defined in RFC 2328.
inside the RFC you can find a description of all the data structures used by the protocol.
Among Cisco press books I recommend the book from Jeff Doyle Routing TCP/IP vol. I both first and second edition.
Hope to help
Giuseppe