Another Bugfix for the MPA which I found while working on Foundry: The value "all" for the page parameters works now. If a MPA is called with ?page=all all sections of the MPA are shown.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2969 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-11-14 15:26:43 +00:00
parent 00d473158b
commit 627dfd8206
1 changed files with 8 additions and 4 deletions

View File

@ -59,8 +59,12 @@ public class ArticleSectionXMLGenerator implements ExtraXMLGenerator {
} }
final PageNumber number = getPageNumber(state); final PageNumber number = getPageNumber(state);
if (number.wantAllSections()) {
content.addAttribute("pageNumber", "all");
} else {
content.addAttribute("pageNumber", number.getPageNumber().toString()); content.addAttribute("pageNumber", number.getPageNumber().toString());
} }
}
public void addGlobalStateParams(final Page page) { public void addGlobalStateParams(final Page page) {
} }