Base code for Digital Library