'Renders the Studio views.
Normal studio view: If block is properly configured, displays library status summary
Studio container view: displays a preview of all possible children.'

def author_view(self, context):

    fragment = Fragment()
    root_xblock = context.get('root_xblock')
    is_root = (root_xblock and (root_xblock.location == self.location))
    if is_root:
        if self.children:
            fragment.add_content(self.system.render_template('library-block-author-preview-header.html', {'max_count': self.max_count, 'display_name': (self.display_name or self.url_name)}))
            context['can_edit_visibility'] = False
            context['can_move'] = False
            self.render_children(context, fragment, can_reorder=False, can_add=False)
    fragment.add_javascript_url(self.runtime.local_resource_url(self, 'public/js/library_content_edit.js'))
    fragment.initialize_js('LibraryContentAuthorView')
    return fragment
