When researching foreign law, it is often best to start by answering a very basic question: what kind of legal system does the country you're researching have? Types of legal systems include common law, civil law, Muslim law (also referred to as Islamic law or religious law), customary law, and also systems that are a combination one or more of those (often referred to as "mixed"). By first understanding the type of legal system you'll have a better understanding of what types of primary law may be available. Below are a few resources that can give you a quick understanding of the legal system associated with the country you are researching.
Books: