// Send back all covers and french mangasName
Meteor.publish('allMangasCover', function() {
	return MangasData.find({}, {
		fields: {
			'cover': 1,
			'names.fr': 1
		}
	});
});

// Send back all mangasData
Meteor.publish('allMangasData', function() {
	return MangasData.find({});
});

// Send back one mangasData
Meteor.publish('oneMangasData', function(id) {
	return MangasData.find({
		'_id': id
	});
});

// Send all Mangas for a given mangaka
Meteor.publish('mangaka', function(author) {
	var newAuthor = author.split(' ');
	return MangasData.find({
		'authors.firstName': newAuthor[0],
		'authors.lastName': newAuthor[1]
	});
});

@@ -72,26 +72,21 @@
 Cover', 
-function()
+() =%3E
  %7B%0A%09retu
@@ -129,15 +129,13 @@
 %0A%09%09%09
-'
 cover
-'
 : 1,
@@ -170,115 +170,8 @@
 );%0A%0A
-// Send back all mangasData%0AMeteor.publish('allMangasData', function() %7B%0A%09return MangasData.find(%7B%7D);%0A%7D);%0A%0A
 // S
@@ -230,20 +230,15 @@
 a', 
-function
 (id)
+ =%3E
  %7B%0A%09
@@ -265,22 +265,17 @@
 nd(%7B
-%0A%09%09'
+ 
 _id
-'
 : id
-%0A%09
+ 
 %7D);%0A
@@ -348,24 +348,16 @@
 a', 
-function
 (author)
  %7B%0A%09
@@ -352,16 +352,19 @@
 (author)
+ =%3E
  %7B%0A%09var 
@@ -492,16 +492,213 @@
 thor%5B1%5D%0A
+%09%7D, %7B%0A%09%09fields: %7B%0A%09%09%09authors: 1,%0A%09%09%09tomes: 1%0A%09%09%7D%0A%09%7D);%0A%7D);%0A%0AMeteor.publish('allMangasCoverForAdmin', () =%3E %7B%0A%09return MangasData.find(%7B%7D, %7B%0A%09%09fields: %7B%0A%09%09%09cover: 1,%0A%09%09%09'names.fr': 1,%0A%09%09%09tomes: 1%0A%09%09%7D%0A
 %09%7D);%0A%7D);

Add and update publications