Render 'url:' ID type as a link
Calibre allows 'url:' as a kind of book identifier and shows it in the UI as a link; this change makes calibre-web do the same.
This commit is contained in:
		
							parent
							
								
									3a9a59b751
								
							
						
					
					
						commit
						83db0f9ad5
					
				| 
						 | 
					@ -112,6 +112,8 @@ class Identifiers(Base):
 | 
				
			||||||
            return u"https://books.google.com/books?id={0}".format(self.val)
 | 
					            return u"https://books.google.com/books?id={0}".format(self.val)
 | 
				
			||||||
        elif self.type == "kobo":
 | 
					        elif self.type == "kobo":
 | 
				
			||||||
            return u"https://www.kobo.com/ebook/{0}".format(self.val)
 | 
					            return u"https://www.kobo.com/ebook/{0}".format(self.val)
 | 
				
			||||||
 | 
					        elif self.type == "url":
 | 
				
			||||||
 | 
					            return u"{0}".format(self.val)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            return u""
 | 
					            return u""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user