Extraction of the MARC format/medium detection code from solrmarc