Skip to content

Instantly share code, notes, and snippets.

@rherrick
Created November 3, 2022 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rherrick/07089640120fd3c7c5ee12a0bb74b2e5 to your computer and use it in GitHub Desktop.
Save rherrick/07089640120fd3c7c5ee12a0bb74b2e5 to your computer and use it in GitHub Desktop.
Excluding experiments from image session assessments list

Copy /src/main/webapp/xnat-templates/screens/xnat_imageSessionData/xnat_imageSessionData_assessments.vm to /src/main/resources/META-INF/resources/templates/screens/xnat_imageSessionData/xnat_imageSessionData_assessments.vm.

Look for the assessor loop:

#foreach ($assessor in $om.getMinimalLoadAssessors())

Add filtering under that:

#if ($assessor.xSIType != "ais:derivative1" && $assessor.xSIType != "ais:derivative2" && $assessor.xSIType != "ais:derivative3")

Close loop with #end (should be at about line 38).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment