Add support for predesigned covers to Marquise. Remove support for changing cover...
[librarian.git] / src / librarian / elements / ref / __init__.py
index 2019da1..7a72a38 100644 (file)
@@ -2,12 +2,17 @@ from ..base import WLElement
 
 
 class Ref(WLElement):
+    ASIDE = True
+    HTML_TAG = 'a'
+    
     def txt_build(self, builder):
         pass
 
-    def html_build(self, builder):
-        pass
+    def get_html_attr(self, builder):
+        return {
+            'class': 'reference',
+            'data-uri': self.attrib.get('href', ''),
+        }
 
     def epub_build(self, builder):
         pass
-