export default class Collection {
    constructor(title = '', description = '', uri ='/', from, to) {
	this.title = title
	this.description = description
	this.uri = uri
	this.from = from || 1700
	this.to = to || new Date().getFullYear()
    }
}

export class IEDCollection extends Collection {
    constructor() {
	super();
	
	this.types = [
	    "Diaries and Journals",
	    "Family Papers",
	    "Folklore, Song, Music",
	    "Hansard",
	    "Letters (Emigrants)",
	    "Letters (Other)",
	    "Births, Deaths, Marriages",
	    "Newspapers Extracts",
	    "Shipping Advertisements",
	    "Shipping News",
	    "Official Documents",
	    "Periodical Extracts",
	    "Statistics",
	    "Wills",
	    "Interviews"
	]
    }
}

export class EPPICollection extends Collection {
    constructor() {
	super();

	this.types = ["Account", "Bill", "Report", "Command Paper"]
    }
}

export class VMRCollection extends Collection {
    constructor() {
	super();

	this.types = ["Interviews"]
	
	// Demographics
	this.gender = "";
	this.age = "";
	this.denomination = "";
	
	// Places 
	this.birthplace = "";
	this.childhoodResidence = "";
	this.currentResidence = "";
	this.destination = "";
    }
}


@@ -19,34 +19,32 @@
 ss Collection %7B%0A
-  
   constructor(ti
@@ -93,17 +93,20 @@
 , to) %7B%0A
-%09
+    
 this.tit
@@ -116,17 +116,20 @@
 = title%0A
-%09
+    
 this.des
@@ -151,17 +151,20 @@
 ription%0A
-%09
+    
 this.uri
@@ -170,17 +170,20 @@
 i = uri%0A
-%09
+    
 this.fro
@@ -199,17 +199,20 @@
 %7C%7C 1700%0A
-%09
+    
 this.to 
@@ -244,18 +244,16 @@
 lYear()%0A
-  
   %7D%0A%7D%0A%0Ae
@@ -291,34 +291,32 @@
 ds Collection %7B%0A
-  
   constructor() 
@@ -321,21 +321,29 @@
 ) %7B%0A
-%09
+    
 super()
-;%0A%09%0A%09
+%0A    %0A    
 this
@@ -353,17 +353,18 @@
 pes = %5B%0A
-%09
+  
     %22Dia
@@ -379,25 +379,26 @@
  Journals%22,%0A
-%09
+  
     %22Family 
@@ -406,21 +406,22 @@
 apers%22,%0A
-%09
+ 
     
+ 
 %22Folklor
@@ -437,17 +437,18 @@
 Music%22,%0A
-%09
+  
     %22Han
@@ -454,21 +454,22 @@
 nsard%22,%0A
-%09
+ 
     
+ 
 %22Letters
@@ -483,21 +483,22 @@
 ants)%22,%0A
-%09
+ 
     
+ 
 %22Letters
@@ -508,21 +508,22 @@
 ther)%22,%0A
-%09
+ 
     
+ 
 %22Births,
@@ -543,21 +543,22 @@
 iages%22,%0A
-%09
+ 
     
+ 
 %22Newspap
@@ -568,29 +568,30 @@
  Extracts%22,%0A
-%09
+ 
     
+ 
 %22Shipping Ad
@@ -601,25 +601,26 @@
 tisements%22,%0A
-%09
+  
     %22Shippin
@@ -628,21 +628,22 @@
  News%22,%0A
-%09
+ 
     
+ 
 %22Officia
@@ -652,25 +652,26 @@
 Documents%22,%0A
-%09
+  
     %22Periodi
@@ -685,21 +685,22 @@
 racts%22,%0A
-%09
+ 
     
+ 
 %22Statist
@@ -709,45 +709,28 @@
 s%22,%0A
-%09
+ 
     
+ 
 %22Wills%22
-,%0A%09
+%0A
     
-%22Interviews%22%0A%09%5D%0A  
+%5D%0A
   %7D%0A
@@ -773,34 +773,32 @@
 ds Collection %7B%0A
-  
   constructor() 
@@ -795,36 +795,41 @@
 tructor() %7B%0A
-%09
+    
 super()
-;
 %0A%0A
-%09
+    
 this.types =
@@ -876,18 +876,16 @@
 Paper%22%5D%0A
-  
   %7D%0A%7D%0A%0Ae
@@ -931,18 +931,16 @@
 ction %7B%0A
-  
   constr
@@ -953,20 +953,25 @@
 ) %7B%0A
-%09
+    
 super()
-;
 %0A%0A
-%09
+    
 this
@@ -994,19 +994,25 @@
 views%22%5D%0A
-%09%0A%09
+    %0A    
 // Demog
@@ -1019,17 +1019,20 @@
 raphics%0A
-%09
+    
 this.gen
@@ -1037,25 +1037,28 @@
 ender = %22%22;%0A
-%09
+    
 this.age = %22
@@ -1056,25 +1056,28 @@
 s.age = %22%22;%0A
-%09
+    
 this.denomin
@@ -1092,11 +1092,17 @@
 %22%22;%0A
-%09%0A%09
+    %0A    
 // P
@@ -1108,17 +1108,20 @@
 Places %0A
-%09
+    
 this.bir
@@ -1130,25 +1130,28 @@
 place = %22%22;%0A
-%09
+    
 this.childho
@@ -1164,25 +1164,28 @@
 dence = %22%22;%0A
-%09
+    
 this.current
@@ -1204,9 +1204,12 @@
 %22%22;%0A
-%09
+    
 this
@@ -1231,13 +1231,9 @@
 %22%22;%0A
-  
   %7D%0A%7D
-%0A%0A

Correct bad autoindentation.