I'm not sure I understand the question ?

If you are wondering about the "array('Bibliotekets materialer', 'Bibliotekskatalog')" it's because it have been changed in data well 3.x, so this makes availability work with 3.x.