Add getters to library and fix product type search