return JSONUtils.SimpleJSONError("Cannot resolve LibraryType from selected Platform");
}
public JSONObject getTagBarcodesForStrategy(HttpSession session, JSONObject json) {
if (json.has("strategy")) {
TagBarcodeStrategy tbs = tagBarcodeStrategyResolverService.getTagBarcodeStrategy(json.getString("strategy"));
if (tbs != null) {
Map<String, Object> map = new HashMap<String, Object>();
Map<Integer, Set<TagBarcode>> barcodes = tbs.getApplicableBarcodes();
StringBuilder tagsb = new StringBuilder();
for (Integer i : barcodes.keySet()) {
//select
tagsb.append("Barcode "+i+": " + "<select id='tagBarcodes[\""+i+"\"]' name='tagBarcodes[\""+i+"\"]'>");
tagsb.append("<option value=''>No Barcode</option>");