Commit d4f7e5fc authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

Merge branch '153-provide-possibility-to-view-sandbox-objects' into 'develop'

Resolve "Provide possibility to view sandbox objects"

Closes #153

See merge request !17
parents 564e020b 449aa337
Pipeline #304947 failed with stages
in 5 minutes and 18 seconds
......@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.SessionAttribute;
import info.textgrid.namespaces.middleware.tgsearch.FacetType;
import info.textgrid.rep.service.TgrepConfigurationService;
import info.textgrid.rep.service.TgsearchClientService;
import info.textgrid.rep.usersettings.UserSettings;
......@@ -20,12 +21,17 @@ import info.textgrid.rep.usersettings.UserSettings;
public class BrowseFacetController {
private TgsearchClientService tgsearchClientService;
private TgrepConfigurationService tgrepConfig;
private static final Log log = LogFactory.getLog(BrowseFacetController.class);
@Autowired
public BrowseFacetController(TgsearchClientService tgsearchClientService) {
public BrowseFacetController(
TgsearchClientService tgsearchClientService,
TgrepConfigurationService tgrepConfig) {
this.tgsearchClientService = tgsearchClientService;
this.tgrepConfig = tgrepConfig;
}
@GetMapping("/facet/{facet}")
......@@ -37,10 +43,7 @@ public class BrowseFacetController {
@RequestParam(value="limit", required=false, defaultValue="0") int limit,
@RequestParam(value="order", required=false, defaultValue="count.desc") String order) {
boolean sandbox = false;
if(userSettings != null) {
sandbox = userSettings.getSandboxEnabled();
}
boolean sandbox = this.tgrepConfig.getSandboxEnabled();
// list facets configured for this portlet
List<String> facetList = new ArrayList<String>();
......
......@@ -66,10 +66,7 @@ public class BrowseProjectController {
@RequestParam(value="limit", required=false, defaultValue="0") int limit,
@RequestParam(value="order", required=false, defaultValue="count.desc") String order) throws IOException {
boolean sandbox = false;
if(userSettings != null) {
sandbox = userSettings.getSandboxEnabled();
}
boolean sandbox = this.tgrepConfig.getSandboxEnabled();
I18N i18n = i18nProvider.getI18N(locale);
......@@ -101,10 +98,7 @@ public class BrowseProjectController {
I18N i18n = i18nProvider.getI18N(locale);
boolean sandbox = false;
if(userSettings != null) {
sandbox = userSettings.getSandboxEnabled();
}
boolean sandbox = this.tgrepConfig.getSandboxEnabled();
// common variables for browse-root aggregations and browse single items
model.addAttribute("mode", mode);
......
......@@ -18,6 +18,7 @@ import org.springframework.web.util.HtmlUtils;
import info.textgrid.namespaces.middleware.tgsearch.Response;
import info.textgrid.rep.i18n.I18N;
import info.textgrid.rep.i18n.I18NProvider;
import info.textgrid.rep.service.TgrepConfigurationService;
import info.textgrid.rep.service.TgsearchClientService;
import info.textgrid.rep.shared.Pager;
import info.textgrid.rep.shared.ToolLink;
......@@ -28,13 +29,18 @@ import info.textgrid.rep.usersettings.UserSettings;
public class SearchController {
private TgsearchClientService tgsearchClient;
private TgrepConfigurationService tgrepConfig;
private I18NProvider i18nProvider;
private static final Logger logger = LoggerFactory.getLogger(SearchController.class);
@Autowired
public SearchController(TgsearchClientService tgsearchClient, I18NProvider i18nProvider) {
public SearchController(
TgsearchClientService tgsearchClient,
TgrepConfigurationService tgrepConfig,
I18NProvider i18nProvider) {
this.tgsearchClient = tgsearchClient;
this.tgrepConfig = tgrepConfig;
this.i18nProvider = i18nProvider;
}
......@@ -63,10 +69,7 @@ public class SearchController {
I18N i18n = i18nProvider.getI18N(locale);
boolean sandbox = false;
if(userSettings != null) {
sandbox = userSettings.getSandboxEnabled();
}
boolean sandbox = this.tgrepConfig.getSandboxEnabled();
String aggregatorSandboxParam = sandbox ? "&sandbox=true" : "";
String realQueryString = query;
......
......@@ -27,6 +27,8 @@ public class TgrepConfigurationService {
private String toolDigilibHost;
@Value("${tool.switchboard.host}")
private String toolSwitchboardHost;
@Value("${sandbox.enabled}")
private Boolean sandboxEnabled;
@Value("${sentry.enabled}")
private Boolean sentryEnabled;
@Value("${tracking.enabled}")
......@@ -92,6 +94,13 @@ public class TgrepConfigurationService {
this.toolSwitchboardHost = toolSwitchboardHost;
}
public Boolean getSandboxEnabled() {
return sandboxEnabled;
}
public void setSandboxEnabled(Boolean sandboxEnabled) {
this.sandboxEnabled = sandboxEnabled;
}
public Boolean getSentryEnabled() {
return sentryEnabled;
}
......@@ -127,7 +136,8 @@ public class TgrepConfigurationService {
@PostConstruct
public void postConstruct() {
log.info("textgrid host: " + textgridHost);
log.info("tgsearch url : " + tgsearchUrl);
log.info("tgsearch url: " + tgsearchUrl);
log.info("sandbox enabled: " + sandboxEnabled);
log.info("handle host: " + handleHost);
log.info("voyant host: " + voyantHost);
log.info("annotate host: " + toolAnnotateHost);
......
......@@ -11,6 +11,9 @@ textgrid.host: https://textgridlab.org
tgsearch.url: ${textgrid.host}/1.0/tgsearch-public
handle.host: https://hdl.handle.net
# should this instance include sandbox results
sandbox.enabled: false
# tool defaults
tool.voyant.host: https://voyant-tools.org
tool.annotate.host: https://annotation.de.dariah.eu/AnnotationViewer
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="280"
height="350"
viewBox="0 0 280 350"
version="1.1"
id="svg36"
sodipodi:docname="sandbox-bg.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata42">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs40" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2048"
inkscape:window-height="1088"
id="namedview38"
showgrid="false"
inkscape:zoom="2.4914286"
inkscape:cx="140"
inkscape:cy="175"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg36" />
<path
fill="#618FB4"
d="M233.815 50l-14.432-25 14.432-25h28.87l14.432 25-14.433 25"
id="path2"
style="fill:#d3bc5f" />
<path
fill="#6798C0"
d="M233.815 100l-14.432-25 14.432-25h28.87l14.432 25-14.433 25"
id="path4"
style="fill:#c8ab37" />
<path
fill="#628FB5"
d="M147.216 50l-14.433-25 14.433-25h28.868l14.434 25-14.434 25"
id="path6"
style="fill:#decd87" />
<path
fill="#689AC2"
d="M147.216 100l-14.433-25 14.433-25h28.868l14.434 25-14.434 25"
id="path8"
style="fill:#c8ab37;fill-opacity:1" />
<path
fill="#537A99"
d="M103.915 75L89.482 50l14.433-25h28.868l14.434 25-14.434 25"
id="path10"
style="fill:#d3bc5f" />
<path
fill="#618FB4"
d="M103.915 125l-14.433-25 14.433-25h28.868l14.434 25-14.434 25"
id="path12"
style="fill:#decd87" />
<path
fill="#6393B9"
d="M60.615 100L46.183 75l14.432-25h28.868l14.434 25-14.434 25"
id="path14"
style="fill:#e9ddaf" />
<path
fill="#5D8AAE"
d="M60.615 150l-14.432-25 14.432-25h28.868l14.434 25-14.434 25"
id="path16"
style="fill:#c8ab37;fill-opacity:1" />
<path
fill="#6B9CC5"
d="M60.615 200l-14.432-25 14.432-25h28.868l14.434 25-14.434 25"
id="path18"
style="fill:#decd87" />
<path
fill="#6695BC"
d="M60.615 250l-14.432-25 14.432-25h28.868l14.434 25-14.434 25"
id="path20"
style="fill:#c8ab37;fill-opacity:1" />
<path
fill="#5A85A7"
d="M60.615 300l-14.432-25 14.432-25h28.868l14.434 25-14.434 25"
id="path22"
style="fill:#e9ddaf" />
<path
fill="#6B9DC6"
d="M60.615 350l-14.432-25 14.432-25h28.868l14.434 25-14.434 25"
id="path24"
style="fill:#d3bc5f" />
<path
fill="#73A9D6"
d="M103.915 325l-14.433-25 14.433-25h28.868l14.434 25-14.434 25"
id="path26"
style="fill:#decd87" />
<path
fill="#5D89AC"
d="M17.315 175L2.883 150l14.432-25h28.87l14.432 25-14.433 25"
id="path28"
style="fill:#d3bc5f" />
<path
fill="#618DB3"
d="M17.315 275L2.883 250l14.432-25h28.87l14.432 25-14.433 25"
id="path30"
style="fill:#d3bc5f" />
<path
fill="#699ac2"
d="m 0,1000000 v 0 0 0 0 0"
id="path32" />
<path
fill="#6797BE"
d="M190.516 75l-14.433-25 14.433-25h28.868l14.433 25-14.433 25"
id="path34"
style="fill:#e9ddaf" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1052.4"
height="402.75"
viewBox="0 0 1052.4 402.75"
version="1.1"
id="svg12"
sodipodi:docname="textgrid-repository-sandbox-logo.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1662"
inkscape:window-height="870"
id="namedview925"
showgrid="false"
inkscape:zoom="1.0566324"
inkscape:cx="208.84567"
inkscape:cy="201.375"
inkscape:window-x="26"
inkscape:window-y="23"
inkscape:window-maximized="0"
inkscape:current-layer="svg12" />
<metadata
id="metadata18">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs16" />
<path
fill="#FFF"
fill-opacity=".917"
d="M79.453 81.4h113.525c33.09 0 59.917 26.824 59.917 59.915v45.727c0 33.09-26.826 59.917-59.917 59.917H79.453c-33.092 0-59.918-26.827-59.918-59.918v-45.727c0-33.09 26.826-59.916 59.918-59.916z"
id="path2" />
<path
fill="#1974BB"
d="M597.384 236.043c-1.19 1.494-2.86 1.787-10.168 1.79-7.438.002-9.645-.426-11.758-2.28-1.51-1.324-1.85-2.266-2.64-7.255-1.443-9.144-5.07-16.244-11.898-23.304l-3.32-3.43 1.553-1.247c.853-.685 4.782-3.547 8.732-6.36 6.088-4.332 7.295-5.053 7.93-4.737 1.46.728 9.025 8.775 11.37 12.092 5.874 8.306 10.223 20.386 10.79 29.966.205 3.46.16 3.826-.59 4.765zm-56.61-65.878c-2.89 2.227-6.79 5.298-8.673 6.824-1.88 1.527-3.59 2.775-3.8 2.775-.606 0-6.222-5.92-8.54-9.002-2.867-3.815-5.695-8.845-7.257-12.904-3.385-8.802-5.263-20.502-3.757-23.413.927-1.793 2.448-2.074 11.247-2.074h7.868l1.77 1.04c2.393 1.405 3.48 3.39 4.414 8.046 1.824 9.09 4.895 15.63 10.36 22.05.895 1.052 1.63 2.07 1.63 2.262-.004.19-2.37 2.167-5.26 4.393zm-284.373 18.217c-1.152 28.382-6.607 52.157-16.357 71.283-13.492 26.467-35.653 43.847-65.497 51.365-23.17 5.838-53.585 6.215-76.218.944-14.674-3.417-28.202-9.59-38.652-17.642-25.58-19.708-39.068-52.3-41.525-100.332-.445-8.733-.525-173.462-.082-173.462.162 0 .96 1.47 1.77 3.272 3.333 7.403 8.617 15.138 14.602 21.382 6.128 6.392 11.236 10.18 18.36 13.616l3.748 1.806 80.212.005 80.214.005 4.27-3.056c7.34-5.253 11.545-8.84 18.34-15.646 6.89-6.906 10.91-11.877 14.41-17.826 1.155-1.958 2.257-3.56 2.45-3.56.424 0 .38 157.39-.043 167.844zm-12.535-59.195c-3.77-17.33-16.35-31.568-32.774-37.093-7.17-2.412-15.74-3.185-23.166-2.087-16.093 2.376-30.04 12.506-37.44 27.19-5.664 11.238-6.666 25.222-2.69 37.467 6.59 20.28 25.616 34.123 47 34.195 13.822.047 25.44-4.733 35.26-14.507 8.214-8.176 12.697-17.2 14.525-29.244.364-2.412-.117-13.182-.715-15.923zm-31.032 6.202c-3.105 9.533-12.853 15.125-22.144 12.705-11.55-3.007-17.382-15.79-12.03-26.355 1.86-3.672 6.18-7.518 9.923-8.84 9.163-3.233 18.817.668 23.098 9.338 1.428 2.89 1.475 3.104 1.56 7.306.056 2.796-.087 4.863-.407 5.845zm-56.194 58.8c-1.89-1.813-5.124-3.217-9.66-4.195-4.802-1.035-15.827-.94-20.277.173-5.688 1.425-9.303 3.774-10.043 6.525-.74 2.745.735 7.18 4.37 13.145 4.35 7.144 15.085 20.505 16.473 20.505.616 0 7.526-8.233 11.45-13.64 6.256-8.623 9.295-14.74 9.306-18.738.005-2.132-.06-2.28-1.62-3.776zm-28.322-64.903c-4.025-19.63-18.993-34.547-39.077-38.94-4.312-.944-14.915-.94-19.306.008-19.99 4.315-34.855 19.113-39.114 38.932-1.077 5.015-1.152 14.603-.15 19.183 2.32 10.613 6.643 18.678 13.865 25.87 9.665 9.622 21.455 14.505 35.053 14.515 10.308.01 19.165-2.676 27.82-8.432 6.367-4.234 13.233-12.023 16.762-19.014 2.254-4.467 4.27-11.4 5.01-17.236.376-2.95-.1-11.172-.862-14.887zm-31.684 5.637c-1.778 6.466-6.908 11.454-13.563 13.186-8.237 2.147-17.192-2.182-20.97-10.135-1.235-2.6-1.387-3.267-1.544-6.738-.142-3.19-.035-4.302.622-6.463 3.062-10.084 13.93-15.45 24.057-11.876 3.75 1.324 8.034 5.114 9.864 8.725 2.026 4 2.636 9.287 1.534 13.3z"
id="path4" />
<path
fill="#090909"
d="M1028.19 229.852c-.71 3.596-2.25 4.552-9.86 6.125-14.216 2.937-33.407 4.172-43.942 2.828-11.913-1.52-20.247-5.097-27.014-11.596-7.896-7.582-11.946-17.748-13.228-33.208-.526-6.35-.243-17.738.583-23.53 3.186-22.31 13.346-34.708 31.846-38.862 3.663-.823 14.882-1.147 19.547-.565 4.797.6 11.12 2.242 15.096 3.92 1.744.738 3.295 1.342 3.446 1.342.15 0 .324-8.978.387-19.95.11-19.823.117-19.962.953-21.662.58-1.175 1.342-1.996 2.435-2.622 1.51-.865 1.913-.913 7.775-.913 3.4 0 6.81.133 7.576.297 2.125.45 3.856 2.31 4.365 4.686.51 2.365.54 131.157.036 133.71zm-26.07-76.56c-4.624-2.135-9.264-3.165-15.31-3.395-6.502-.248-9.89.355-14.38 2.56-5.534 2.717-9.132 7.13-11.507 14.118-1.99 5.847-2.52 10.735-2.292 21.058.173 7.737.314 9.304 1.168 12.925 1.463 6.215 3.652 10.45 7.26 14.056 1.873 1.87 3.73 3.313 5.275 4.09 6.655 3.355 15.796 3.846 27.558 1.483 2.044-.412 4.025-.913 4.403-1.114.66-.354.688-1.7.688-32.413v-32.043l-2.86-1.324zm-76.364 78.678c-.797 2.238-1.937 3.167-5.116 4.172-6.18 1.952-15.077 2.042-20.962.213-6.007-1.867-9.884-6.47-11.708-13.9-1.284-5.226-1.42-10.326-1.306-48.122.124-40.54-.013-38.083 2.23-40.145 1.537-1.413 3.437-1.703 10.25-1.568 6.977.14 8.014.427 9.696 2.683.788 1.055.788 1.167 1.003 39.712.23 41.62.187 40.788 2.203 42.944 1.517 1.624 3.517 2.022 7.074 1.408 4.605-.796 5.233-.27 6.424 5.38.875 4.136.91 5.272.212 7.222zM910.43 113.563c-.615 2.19-2.046 3.76-3.95 4.33-.85.255-4.24.43-8.332.43-6.413 0-7.02-.06-8.574-.843-1.22-.616-1.9-1.293-2.514-2.515-.792-1.568-.844-2.138-.844-9.193 0-7.062.052-7.623.844-9.172 1.41-2.76 2.658-3.167 10.205-3.325 9.018-.188 11.48.513 12.858 3.663.81 1.854 1.035 14.022.306 16.625zm-40.19 30.046c-.505 2.264-1.163 4.492-1.46 4.948-.82 1.25-3.18 1.75-5.97 1.264-2.968-.517-13.69-.523-17.816-.01-3.97.495-8.227 1.36-10.668 2.168l-1.872.622-.188 40.462c-.18 38.984-.212 40.506-.902 41.645-.395.65-1.405 1.578-2.248 2.06-1.447.828-1.896.877-8.087.877-4.47 0-7.004-.158-7.95-.494-1.68-.596-3.124-2.22-3.65-4.108-.556-2.006-.532-90.027.026-92.06.94-3.417 5.038-5.725 14.01-7.89 6.984-1.686 11.024-2.092 22.854-2.297 9.2-.16 12.056-.08 15.734.426 6.042.833 7.087 1.15 8.215 2.493.82.975.957 1.49.926 3.458-.023 1.274-.452 4.17-.957 6.434zm-84.68 87.4c-.752 1.528-1.88 2.33-4.997 3.555-2.895 1.138-11.264 3-17.105 3.807-10.718 1.478-29.2 1.676-37.595.402-28.342-4.3-43.123-21.37-47.077-54.36-.9-7.51-.9-28.39.003-35.18 4.13-31.122 18.943-48.64 46.064-54.482 6.18-1.332 12.622-1.904 21.426-1.904 11.136 0 19.204.777 29.096 2.8 8.16 1.67 10.137 3.676 9.565 9.7-.524 5.544-1.637 8.13-4.01 9.322-1.697.854-3.962.828-9.437-.106-15.78-2.692-28.464-2.94-38.533-.747-7.24 1.575-12.502 4.322-17.245 9.003-7.525 7.427-10.672 17.038-11.632 35.517-.46 8.833-.013 21.868.99 28.88 2.925 20.467 11.372 30.5 27.94 33.188 4.566.74 16.048.748 22.936.018 2.845-.3 5.33-.648 5.525-.768.216-.132.355-9.042.356-22.768 0-14.58.14-23.052.396-23.967.217-.778.9-1.99 1.517-2.693 1.592-1.815 3.62-2.173 11.387-2.015 7.594.155 8.824.55 10.21 3.3l.84 1.67-.007 28.302c-.005 25.3-.07 28.428-.613 29.525zm-117.344 1.394c-.732 2.798-2.032 3.653-6.792 4.463-5.443.926-7.52 1.025-12.628.608-9.865-.806-15.964-3.122-20.73-7.875-3.004-2.993-4.61-5.618-5.957-9.747-1.814-5.548-1.893-7.178-1.9-38.965-.005-16.38-.133-29.975-.284-30.206-.156-.24-1.744-.49-3.667-.58-6.36-.298-8.038-2.122-8.038-8.74 0-3.172.135-4.04.844-5.438 1.22-2.407 2.675-3.11 6.813-3.29 2.534-.11 3.512-.3 3.862-.745.342-.437.47-2.816.47-8.838 0-9.61.26-10.64 3.09-12.23 1.428-.803 2.154-.912 7.034-1.05 8.024-.228 10.674.512 12.266 3.432.543.995.677 2.618.835 10.176l.19 8.992 8.618.187c9.8.212 10.69.432 12.127 2.99 1.56 2.774 1.522 9.314-.07 11.675-1.718 2.55-2.473 2.735-12.056 2.943l-8.617.187-.11 28.287c-.12 30.07-.065 31.167 1.666 34.655 1.29 2.597 2.822 4.068 5.51 5.287 2.074.94 2.685 1.04 6.234 1.006 2.163-.02 4.775-.207 5.8-.417 4.1-.833 5.47 1.104 5.665 7.986.062 2.267-.018 4.625-.18 5.244zm-70.747-92.352c-2.695 15.613-7.945 26.506-17.31 35.918-4.09 4.11-7.582 6.892-17.81 14.178-11.732 8.36-15.58 11.684-19.855 17.154-4.654 5.957-7.27 11.447-9.006 18.92-1.548 6.643-1.643 6.95-2.48 8.015-.43.548-1.486 1.372-2.34 1.83-1.44.77-2.146.84-9.28.953-8.997.14-10.085-.097-11.054-2.413-.68-1.628-.508-3.734.822-10.162 3.185-15.38 10.47-27.995 22.265-38.547 1.957-1.75 6.846-5.735 10.863-8.853 9.55-7.412 12.953-10.315 17.077-14.565 6.696-6.903 10.54-13.558 12.895-22.328 1.04-3.873 2.52-6.17 4.633-7.192 1.46-.705 2.285-.773 9.36-.773 8.338 0 9.7.238 10.873 1.917.59.84.75 3.61.347 5.95h-.003v-.002zM493.213 232.36c-.42 1.31-1.703 2.734-3.135 3.48-2.306 1.198-13.25 2.837-23.284 3.482-25.882 1.67-42.945-2.347-53.84-12.678-9.454-8.964-13.775-21.97-13.787-41.486-.02-32.715 12.16-50.214 37.55-53.94 5.74-.84 18.297-.56 23.53.526 11.512 2.394 19.254 7.194 24.8 15.378 4.8 7.083 7.296 15.812 8.192 28.647.702 10.033.06 13.662-2.78 15.764-1.048.775-1.333.784-33.453.97-35.196.203-33.258.073-32.915 2.23.082.525.346 2.22.582 3.764 1.014 6.61 3.338 11.66 7.07 15.36 2.774 2.752 5.577 4.37 9.943 5.732 5.206 1.628 8.28 1.95 18.358 1.932 9.426-.02 12.616-.267 21.93-1.705 5.77-.89 7.38-.703 9.07 1.062 1.663 1.733 3.007 8.858 2.166 11.48zm-22.884-64.887c-2.03-9.854-7.622-16.31-15.805-18.24-3.118-.734-10.33-.733-13.225.004-9.9 2.516-15.516 10.358-17.116 23.905-.37 3.13-.355 3.73.105 4.022.31.196 10.225.344 23.274.348 18.712.005 22.823-.085 23.243-.507.577-.575.322-5.65-.477-9.532zm-60.84-58.704c-.68 1.85-2.336 3.385-4.215 3.908-.897.25-7.34.396-17.4.4-14.223 0-16.003.065-16.204.594-.124.325-.226 27.22-.226 59.768 0 64.642.14 60.645-2.194 62.61-1.755 1.475-4.538 1.894-11.464 1.724-5.504-.136-6.147-.225-7.605-1.047-1.1-.623-1.85-1.427-2.434-2.61l-.844-1.712-.187-59.568-.188-59.57-17.046-.187c-16.338-.18-17.106-.22-18.53-.966-2.465-1.294-3.198-3.172-3.198-8.194 0-3.582.12-4.403.842-5.832.5-.985 1.377-1.973 2.153-2.42 1.297-.75 1.817-.76 48.143-.76 46.156 0 46.85.012 48.105.75 2.097 1.234 2.82 3.12 2.937 7.68.075 2.75-.058 4.382-.443 5.43z"
id="path6" />
<g
fill="#257BBF"
id="g10">
<path
d="M481.885 356.875c-3.38 0-4.777-1.398-4.777-4.777v-73.172c0-3.38 1.398-4.66 4.66-5.243 4.895-.933 12.235-1.864 20.39-1.864 20.508 0 31.228 6.64 31.228 25.865v1.864c0 11.768-5.476 19.225-16.08 22.603 6.41 6.642 14.565 17.827 18.062 29.362 1.514 3.96.582 5.36-3.146 5.36h-5.243c-3.73 0-4.778-1.05-6.41-4.195-4.194-12.35-15.497-26.1-19.69-28.43-2.797 0-6.06 0-9.322-.233v28.08c0 3.38-1.398 4.777-4.777 4.777h-4.895zm36.236-57.326V297.8c0-10.37-5.242-15.264-16.428-15.264-3.263 0-7.574.466-10.137.932v30.527c2.563.233 6.06.7 9.67.7 11.886 0 16.896-4.662 16.896-15.148zM597.038 350.7c.583 3.262-.466 4.894-3.495 5.592-4.195.933-11.07 1.748-18.643 1.748-21.673 0-33.09-8.972-33.09-31.11v-1.98c0-20.273 9.204-30.993 27.73-30.993 18.292 0 27.497 9.09 27.613 29.945v1.515c0 3.38-1.397 5.126-4.66 5.126H556.49c.816 12.35 6.525 16.778 20.274 16.778 7.34 0 11.65-.814 15.38-1.396 3.03-.35 4.194.815 4.66 3.38l.234 1.395zm-40.664-29.362h27.614c-.232-10.836-4.544-16.662-13.516-16.662-9.087 0-13.4 5.593-14.098 16.662zM621.87 356.176v20.273c0 3.262-1.397 4.66-4.66 4.66h-4.428c-3.262 0-4.776-1.398-4.776-4.66v-73.755c0-4.66 2.563-5.477 4.776-6.06 3.846-1.63 12.468-2.68 19.575-2.68 17.478 0 31.81 7.457 31.81 29.828v1.515c0 20.74-9.09 32.74-26.916 32.74-5.592.002-10.72-.813-15.38-1.862zM649.6 323.9c0-13.748-7.456-19.225-17.243-19.225-3.962 0-8.156.815-10.486 1.515v39.383c2.215.815 7.108 1.747 11.187 1.747 11.302 0 16.545-8.04 16.545-22.138v-1.28zM672.66 324.95c0-20.508 10.37-30.994 29.48-30.994 19.107 0 29.594 10.486 29.594 30.993v1.98c0 20.507-10.486 31.11-29.595 31.11-19.11 0-29.48-10.604-29.48-31.11v-1.98zm44.392.116c0-13.283-5.01-20.39-14.914-20.39-10.02 0-14.914 7.106-14.914 20.272v1.864c0 13.05 4.894 20.507 14.914 20.507 9.903 0 14.914-7.574 14.914-20.508v-1.746zM784.342 301.18c-.35 4.545-1.166 5.01-3.962 4.545-2.913-.466-5.243-1.05-12-1.05-8.04 0-14.565 1.05-14.565 6.41 0 11.768 32.974 3.495 32.974 27.963 0 14.914-13.982 19.108-25.984 19.108-6.408 0-14.215-.932-17.36-1.397-3.73-.468-4.428-1.283-4.428-5.128v-.7c0-4.776 1.864-5.242 5.127-4.893 2.33.465 8.622 1.28 15.03 1.28 10.137 0 13.516-3.38 13.516-8.04 0-15.263-32.973-5.94-32.973-28.43 0-14.447 12.584-17.01 26.216-17.01 8.506 0 13.75 1.048 15.147 1.28 2.913.467 3.96 1.05 3.495 5.127l-.233.934zM800.746 287.082c-3.38 0-4.777-1.515-4.777-4.777v-5.36c0-3.378 1.397-4.776 4.776-4.776h5.127c3.38 0 4.777 1.397 4.777 4.776v5.36c0 3.262-1.398 4.776-4.777 4.776h-5.127zm18.76 62.92c.466 3.145 0 5.125-3.03 5.94-2.213.7-4.194.933-6.64.933-8.273 0-13.518-3.03-13.518-16.545v-40.432c0-3.38 1.398-4.777 4.777-4.777h4.312c3.38 0 4.777 1.4 4.777 4.778v40.314c0 4.312.932 5.942 3.73 5.942.93 0 2.096-.35 2.91-.466 1.283-.233 2.1.932 2.448 3.612l.234.7zM827.718 305.607h-2.33c-3.263 0-4.66-1.397-4.66-4.776v-.932c0-3.38 1.397-4.777 4.66-4.777h2.33v-8.504c0-3.38 1.515-4.777 4.777-4.777h4.31c3.38 0 4.778 1.396 4.778 4.776v8.505h8.156c3.378 0 4.776 1.4 4.776 4.778v.933c0 3.38-1.398 4.777-4.777 4.777h-8.157V337.3c0 5.243 2.098 8.854 7.574 8.854 1.165 0 2.68-.116 4.194-.466 1.98-.35 2.914 1.63 2.914 4.544v1.632c0 3.03-.933 4.194-3.846 4.427-1.515.35-3.146.584-4.66.584-14.1 0-20.04-5.826-20.04-19.458v-31.81zM860.98 324.95c0-20.508 10.37-30.994 29.48-30.994 19.107 0 29.594 10.486 29.594 30.993v1.98c0 20.507-10.486 31.11-29.595 31.11-19.11 0-29.48-10.604-29.48-31.11v-1.98zm44.393.116c0-13.283-5.01-20.39-14.914-20.39-10.022 0-14.915 7.106-14.915 20.272v1.864c0 13.05 4.894 20.507 14.914 20.507 9.902 0 14.913-7.574 14.913-20.508v-1.746zM966.882 301.18c-.698 3.147-.35 4.428-3.61 4.428-2.1-.466-4.662-.466-6.992-.466-2.913 0-8.04.583-11.65 1.864v45.092c0 3.38-1.4 4.777-4.662 4.777h-4.428c-3.262 0-4.777-1.398-4.777-4.777v-49.985c0-2.796 1.282-4.544 4.66-5.477 5.827-2.214 12.817-2.68 19.343-2.68 4.894 0 6.99.35 9.787.815 2.33.35 3.495 1.283 2.563 5.478l-.234.933zM1002.937 345.34c6.99-12.117 12.468-26.682 12.468-43.81v-1.632c0-3.38 1.397-4.777 4.66-4.777h3.73c3.378 0 4.776 1.4 4.776 4.778v1.748c0 32.158-14.797 52.55-36.47 78.065-.814 1.166-1.747 1.75-2.795 1.75-.933 0-1.864-.467-3.03-1.4l-2.446-1.98c-2.914-2.33-2.914-4.077-1.283-5.708 3.73-4.195 8.39-9.438 12.934-15.613-5.01-6.177-17.477-30.412-20.855-57.094-.582-3.38 0-4.545 4.194-4.545h5.593c3.61 0 4.194 2.564 4.427 4.662 2.913 23.187 11.77 42.528 13.517 44.043l.58 1.515z"
id="path8" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:82.0618px;line-height:125%;font-family:'Comic Sans MS';-inkscape-font-specification:'Comic Sans MS, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="32.118759"
y="398.6322"
id="text845"><tspan
id="tspan843"
x="32.118759"
y="398.6322"
style="stroke-width:1px">SANDBOX</tspan></text>
</svg>
......@@ -44,3 +44,5 @@ $drop-shadow: 0 0 $grid rgba(#000, .2)
// Breakpoints
$breakpoints: ( large: 1260px, medium: 1004px, small: 700px, tiny: 479px )
$widths: ( max: (48 * $grid), large: (36 * $grid), medium: 100%, small: 100%, tiny: 100% )
$primary-sandbox-color: #f7e660
......@@ -2,6 +2,9 @@
background: mix($primary-color, #bbb, 50)
height: 100%
&.-sandbox
background: mix($primary-sandbox-color, #bbb, 50)
.html_body
padding: 0 0 $grid
margin: 0
......
......@@ -43,3 +43,8 @@
*
box-sizing: border-box
&.-sandbox
&:before
background: url('../images/sandbox-bg.svg') no-repeat
<!DOCTYPE html>
<html lang="en" class="html">
<html lang="en" class="html ${config.sandboxEnabled ? '-sandbox' : '' }">
<head>
<title>TextGrid Repository</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width">
......@@ -9,7 +9,7 @@
</head>
<body class="html_body aui ${pagename}">
<div class="tg site">
<div class="tg site ${config.sandboxEnabled ? '-sandbox' : '' }">
<span hidden="true" id="i18n-remove-from-shelf-label" data-value="${i18n['remove-from-shelf']}"></span>
<span hidden="true" id="i18n-add-to-shelf-label" data-value="${i18n['add-to-shelf']}"></span>
......@@ -17,7 +17,7 @@
<header class="tg header">
<div class="tg header_logo" role="banner">
<a href="/" title="TextGrid Repository">
<img src="/images/textgrid-repository-logo.svg" alt="TextGrid Repository Logo">
<img src="/images/${config.sandboxEnabled ? 'textgrid-repository-sandbox-logo.svg' : 'textgrid-repository-logo.svg' }" alt="TextGrid Repository Logo">
</a>
</div>
<%@ include file="topbox.jsp" %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment