The app module has become somewhat confusing in that it does provide content for many different, not necessarily related functionalities (reading view, catalogue records, working papers, author/lemma pages) at once.
I think it would be worthwile splitting this into "thematic" modules (such as catrecord.xqm, work.xqm, etc.) which include functions only for the respective functionality. This would make application design more intelligible and, perhaps, also could address performance issues.
The app module has become somewhat confusing in that it does provide content for many different, not necessarily related functionalities (reading view, catalogue records, working papers, author/lemma pages) at once.
I think it would be worthwile splitting this into "thematic" modules (such as catrecord.xqm, work.xqm, etc.) which include functions only for the respective functionality. This would make application design more intelligible and, perhaps, also could address performance issues.