fixed the issue. Will look into that further The problem are the empty div elements. It's a known issue that empty XHTML elements break the XHTML structure in older DSpace themes. You can fix this by adding a non-breaking space in the div:
hop of those help? How might I specify a regular expression in Python 3 such that it matches occurences of the word "verb" only outside of words that contain it? , You can use the meta escape sequence \b for a word boundary:
re.findall(r'\bVERB\b', "The man ADVERB VERB and VERB until he was ready.")
wish of those help This is quite an important thing. Your middleware class is instantiated only once, i.e. its constructor only runs once. If you have a dependency with lifetime of scoped or transient, it is meant to be shorter-lived. If you require such a dependency via the constructor, your middleware is dependent on a service with a shorter lifetime. The DI container can dispose the service after a request is done, leaving your middleware with a service which no longer works. By requesting it at runtime in the Invoke/InvokeAsync function, you are able to use transient and scoped dependencies. Singletons can be required in the constructor, since those have the same lifetime as the middleware.