[VIVO-1224] Suppress default "synthetic" model from the lists on the ingest pages
This commit is contained in:
parent
b0d0925101
commit
c87a66c949
1 changed files with 9 additions and 2 deletions
|
@ -189,7 +189,14 @@ public class JenaIngestController extends BaseEditController {
|
||||||
}
|
}
|
||||||
|
|
||||||
maker = getModelMaker(vreq);
|
maker = getModelMaker(vreq);
|
||||||
request.setAttribute("modelNames", maker.listModels().toList());
|
List<String> modelNames = maker.listModels().toList();
|
||||||
|
for (int mnIdx = modelNames.size() - 1; mnIdx > -1; mnIdx--) {
|
||||||
|
if (!modelNames.get(mnIdx).startsWith("http")) {
|
||||||
|
modelNames.remove(mnIdx);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
request.setAttribute("modelNames", modelNames);
|
||||||
|
|
||||||
RequestDispatcher rd = request.getRequestDispatcher(
|
RequestDispatcher rd = request.getRequestDispatcher(
|
||||||
Controllers.BASIC_JSP);
|
Controllers.BASIC_JSP);
|
||||||
|
|
Loading…
Add table
Reference in a new issue