mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	Evernote import - use pageUrl attribute for enex source-url
This commit is contained in:
		@@ -115,7 +115,7 @@ function importEnex(taskContext, file, parentNote) {
 | 
				
			|||||||
            let labelName = currentTag;
 | 
					            let labelName = currentTag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (labelName === 'source-url') {
 | 
					            if (labelName === 'source-url') {
 | 
				
			||||||
                labelName = 'sourceUrl';
 | 
					                labelName = 'pageUrl';
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            labelName = sanitizeAttributeName(labelName);
 | 
					            labelName = sanitizeAttributeName(labelName);
 | 
				
			||||||
@@ -139,7 +139,7 @@ function importEnex(taskContext, file, parentNote) {
 | 
				
			|||||||
            else if (currentTag === 'source-url') {
 | 
					            else if (currentTag === 'source-url') {
 | 
				
			||||||
                resource.attributes.push({
 | 
					                resource.attributes.push({
 | 
				
			||||||
                    type: 'label',
 | 
					                    type: 'label',
 | 
				
			||||||
                    name: 'sourceUrl',
 | 
					                    name: 'pageUrl',
 | 
				
			||||||
                    value: text
 | 
					                    value: text
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user