@@ -864,6 +864,7 @@ curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin
864864 "toolName":"3D model Previewer",
865865 "scope":"file",
866866 "types":["preview"],
867+ <<<<<<< HEAD
867868 "toolUrl":"https://qualitativedatarepository.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
868869 "toolParameters": {
869870 "queryParameters":[
@@ -1004,6 +1005,148 @@ curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin
10041005 "scope":"file",
10051006 "types":["preview"],
10061007 "toolUrl":"https://qualitativedatarepository.github.io/dataverse-previewers/previewers/v1.5/VoyagerPreview.html",
1008+ =======
1009+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1010+ "toolParameters": {
1011+ "queryParameters":[
1012+ {"fileid":"{fileId}"},
1013+ {"siteUrl":"{siteUrl}"},
1014+ {"datasetid":"{datasetId}"},
1015+ {"datasetversion":"{datasetVersion}"},
1016+ {"locale":"{localeCode}"}
1017+ ]
1018+ },
1019+ "contentType":"model/x3d+xml"
1020+ }'
1021+ ```
1022+
1023+ More types for 3D models that X_ITE can load below.
1024+
1025+ ``` bash
1026+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1027+ ' {
1028+ "displayName":"Read 3D model",
1029+ "description":"Read the 3D model file using X3D from X_ITE.",
1030+ "toolName":"3D model Previewer",
1031+ "scope":"file",
1032+ "types":["preview"],
1033+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1034+ "toolParameters": {
1035+ "queryParameters":[
1036+ {"fileid":"{fileId}"},
1037+ {"siteUrl":"{siteUrl}"},
1038+ {"datasetid":"{datasetId}"},
1039+ {"datasetversion":"{datasetVersion}"},
1040+ {"locale":"{localeCode}"}
1041+ ]
1042+ },
1043+ "contentType":"model/vrml"
1044+ }'
1045+ ```
1046+
1047+ ``` bash
1048+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1049+ ' {
1050+ "displayName":"Read 3D model",
1051+ "description":"Read the 3D model file using X3D from X_ITE.",
1052+ "toolName":"3D model Previewer",
1053+ "scope":"file",
1054+ "types":["preview"],
1055+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1056+ "toolParameters": {
1057+ "queryParameters":[
1058+ {"fileid":"{fileId}"},
1059+ {"siteUrl":"{siteUrl}"},
1060+ {"datasetid":"{datasetId}"},
1061+ {"datasetversion":"{datasetVersion}"},
1062+ {"locale":"{localeCode}"}
1063+ ]
1064+ },
1065+ "contentType":"model/gltf-binary"
1066+ }'
1067+ ```
1068+
1069+ ``` bash
1070+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1071+ ' {
1072+ "displayName":"Read 3D model",
1073+ "description":"Read the 3D model file using X3D from X_ITE.",
1074+ "toolName":"3D model Previewer",
1075+ "scope":"file",
1076+ "types":["preview"],
1077+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1078+ "toolParameters": {
1079+ "queryParameters":[
1080+ {"fileid":"{fileId}"},
1081+ {"siteUrl":"{siteUrl}"},
1082+ {"datasetid":"{datasetId}"},
1083+ {"datasetversion":"{datasetVersion}"},
1084+ {"locale":"{localeCode}"}
1085+ ]
1086+ },
1087+ "contentType":"model/obj"
1088+ }'
1089+ ```
1090+
1091+ ``` bash
1092+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1093+ ' {
1094+ "displayName":"Read 3D model",
1095+ "description":"Read the 3D model file using X3D from X_ITE.",
1096+ "toolName":"3D model Previewer",
1097+ "scope":"file",
1098+ "types":["preview"],
1099+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1100+ "toolParameters": {
1101+ "queryParameters":[
1102+ {"fileid":"{fileId}"},
1103+ {"siteUrl":"{siteUrl}"},
1104+ {"datasetid":"{datasetId}"},
1105+ {"datasetversion":"{datasetVersion}"},
1106+ {"locale":"{localeCode}"}
1107+ ]
1108+ },
1109+ "contentType":"model/stl"
1110+ }'
1111+ ```
1112+
1113+ ``` bash
1114+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1115+ ' {
1116+ "displayName":"Read 3D model",
1117+ "description":"Read the 3D model file using X3D from X_ITE.",
1118+ "toolName":"3D model Previewer",
1119+ "scope":"file",
1120+ "types":["preview"],
1121+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/X3DPreview.html",
1122+ "toolParameters": {
1123+ "queryParameters":[
1124+ {"fileid":"{fileId}"},
1125+ {"siteUrl":"{siteUrl}"},
1126+ {"datasetid":"{datasetId}"},
1127+ {"datasetversion":"{datasetVersion}"},
1128+ {"locale":"{localeCode}"}
1129+ ]
1130+ },
1131+ "contentType":"model/x-ply"
1132+ }'
1133+ ```
1134+ ### Smithsonian Voyager 3D model Previewer
1135+
1136+ __ Note:__ Voyager supports multiple formats. Only * .glb (model/gltf-binary) is currently supported by the Previewer.
1137+ Also note that with current styling the Voyager app fills the window when launched as a separate page, so the usual
1138+ preview header/footer information doesn't show (and therefore isn't even requested from Dataverse).
1139+
1140+ ``` bash
1141+ curl -X POST -H ' Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \
1142+ ' {
1143+ "displayName":"View 3D model",
1144+ "description":"Explore the 3D model file using Voyager.",
1145+ "toolName":"voyagerPreviewer",
1146+ "scope":"file",
1147+ "types":["preview"],
1148+ "toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.5/VoyagerPreview.html",
1149+ >>>>>>> branch ' master' of https://github.com/QualitativeDataRepository/dataverse-previewers.git
10071150 "toolParameters": {
10081151 "queryParameters":[
10091152 {"fileid":"{fileId}"},
0 commit comments