%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.crosswire.utils.Utils" %>
<%@ page import="org.crosswire.sword.mgr.VersificationMgr" %>
<%@ page import="org.crosswire.xml.XMLBlock" %>
<%@ page import="org.crosswire.webtools.*" %>
<%@ page import="org.crosswire.webtools.annotation.*" %>
<%!
@Description(value = "Retrieve list of available versification systems.", name = "v11n/list")
public static class MyParameters extends Parameters {
@Description(value = "show usage for this web service", defaultValue = "false", example = "true")
public Boolean usage = false;
}
%>
<%
MyParameters params = new MyParameters().loadFromRequest(request, response, false);
if (params.getErrors().size() == 0 && !params.usage) {
String v11nid = Utils.getSysConfig(session).getProperty("PrimaryVersification");
StringBuffer retVal = new StringBuffer();
retVal.append("");
for (String vn: VersificationMgr.getSystemVersificationMgr().getVersificationSystems()) {
retVal.append("");
}
retVal.append("");
Serializer.output(response, out, params, XMLBlock.createXMLBlock(retVal.toString()));
}
else params.format = "html";
Serializer.reportErrors(request, response, out, params, true);
%>