Relations between entanglement and multifractality: deviations from ergodicity.