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-94f89814c4dfmaster
parent
00d473158b
commit
627dfd8206
|
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue