diff --git a/sefaria/model/manuscript.py b/sefaria/model/manuscript.py index 9b1fe2b6a4..607608a87d 100644 --- a/sefaria/model/manuscript.py +++ b/sefaria/model/manuscript.py @@ -25,6 +25,7 @@ class Manuscript(AbstractMongoRecord): 'description', 'he_description' ] + optional_attrs = ['license'] def normalize_slug_field(self, slug_field: str) -> str: """ diff --git a/static/js/ConnectionsPanel.jsx b/static/js/ConnectionsPanel.jsx index a9b5133175..a8f09aef94 100644 --- a/static/js/ConnectionsPanel.jsx +++ b/static/js/ConnectionsPanel.jsx @@ -1821,8 +1821,21 @@ function ManuscriptImage(props) { : '' } + { + manuscript.manuscript['license'] + ?
+ License + : + + {Sefaria._(manuscript.manuscript['license'])} + +
+ : '' + } - {manuscript.manuscript['source'].replace("https://", "")} + + { Sefaria.util.parseUrl(manuscript.manuscript['source']).host.replace("www.", "") } +