X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..2a2676070f16dadca83ba8447c624f7524b75146:/src/librarian/elements/root/__init__.py?ds=sidebyside diff --git a/src/librarian/elements/root/__init__.py b/src/librarian/elements/root/__init__.py index a8cf82d..541895a 100644 --- a/src/librarian/elements/root/__init__.py +++ b/src/librarian/elements/root/__init__.py @@ -17,3 +17,11 @@ class Utwor(WLElement): # This should not generally happen. if self.getparent() is not None: return self.getparent().meta + # Fallback + return self.document.base_meta + + @property + def master(self): + for c in self: + if isinstance(c, Master): + return c