%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.crosswire.community.RightsAndRoles" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Apparatus" %>
<%
int segID = -1; try {segID = Integer.parseInt(request.getParameter("segID"));} catch (Exception e){}
int docID = -1; try {docID = Integer.parseInt(request.getParameter("docID"));} catch (Exception e){}
String hand = request.getParameter("hand"); if (hand == null) hand = "";
if (docID > -1 && segID > -1) {
response.setContentType("text/xml");
String role = "Live Text Critic";
// let's check to see if we're a privileged user
boolean permission = RightsAndRoles.hasRole(request, response, role);
// ---------------------------------------------
if (true || permission) {
Apparatus.deleteWitnessSegmentReading(docID, segID, hand);
%>
delete variant segment
| docID | manuscript id for the variant reading, e.g., 10046 |
| segID | segment id for the variant reading, e.g., 10 |
| hand | optional alternatate hand for the variant reading, e.g., 'C' |