def _meta_to_inputdict(metaDict):
    """
    Converts a dictionary as returned by the isbnlib.meta() function to
    a valid inputdict for an entry object.

    :param metaDict: meta data
    :type metaDict: dict
    :return: inputdict
    :rtype: dict
    """
    inputDict = {}
    for key, vakue in metaDict.items():
        new_key = key.lower()
        if new_key == 'authors':
            new_key = 'author'
        if new_key == 'isbn-13':
            new_key = 'isbn'
        inputDict[new_key] = metaDict[key]
    inputDict['ID'] = str(inputDict.get('isbn', 'unknown'))
    inputDict['ENTRYTYPE'] = 'book'
    inputDict['author'] = ' and '.join(inputDict['author'])
    return inputDict
