Skip to content

Commit

Permalink
cors proxy temporary fix, update contact form (#204)
Browse files Browse the repository at this point in the history
* fix: change the cors proxy server

* fix: updated package-lock

Co-authored-by: Sepideh Alassi <>
  • Loading branch information
SepidehAlassi committed Oct 27, 2022
1 parent afba0a4 commit debcd29
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
26 changes: 15 additions & 11 deletions src/app/contact/contact.component.html
Expand Up @@ -11,30 +11,34 @@
<div class="main-content">

<section class="text">
<h1 class="mat-headline">Contact for Editorial Questions</h1>

Bernoulli Euler Center (<a href="https://bez.unibas.ch/en/" target="_blank">BEZ</a>), University of Basel
<h1 class="mat-headline">Contact for Editorial Questions:</h1>
<ul>
<li>Martin Mattmüller
<br/>
<a href="mailto:martin.mattmueller@unibas.ch">martin.mattmueller@unibas.ch</a>
<br/><br/>
<li>Bernoulli Euler Center (<a href="https://bez.unibas.ch/en/" target="_blank">BEZ</a>), University of Basel.
<br/>
<a href="mailto:bez@unibas.ch">bez@unibas.ch</a>
<br/><br/>
</li>
</ul>
</section>

<mat-divider></mat-divider>

<section class="text">
<h2 class="mat-headline">Contact for Technical Questions</h2>
<h2 class="mat-headline">Contact for Technical Questions:</h2>

Data and Service Center for the Humanities (<a href="https://dasch.swiss/" target="_blank">DaSCH</a>)
<ul>
<li> Dr. Sepideh Alassi

<li> Dr. Sepideh Alassi, Digital Humanities Lab (<a href="https://dhlab.philhist.unibas.ch/en/" target="_blank">DHLab</a>),
University of Basel.
<br/>
<a href="mailto:sepideh.alassi@unibas.ch">sepideh.alassi@dasch.swiss</a>
<a href="mailto:sepideh.alassi@unibas.ch">sepideh.alassi@unibas.ch</a>
<br/><br/>
</li>
<li> Data and Service Center for the Humanities (<a href="https://dasch.swiss/" target="_blank">DaSCH</a>).
<br/>
<a href="mailto:info@dasch.swiss">info@dasch.swiss</a>
<br/>
</li>

</ul>

Expand Down
2 changes: 1 addition & 1 deletion src/app/resource/newton-letter/newton-letter.component.ts
Expand Up @@ -105,7 +105,7 @@ export class NewtonLetterComponent extends BeolResource {


private getNewtonLetterText(filename) {
const cors_proxyurl = 'https://thingproxy.freeboard.io/fetch/';
const cors_proxyurl = 'https://cors-container.herokuapp.com/';
const basePath = this.newtonLetterPath;

const url = basePath + filename; // site that doesn’t send Access-Control-*
Expand Down
4 changes: 2 additions & 2 deletions src/app/search-results/search-results.component.ts
Expand Up @@ -195,7 +195,7 @@ export class SearchResultsComponent implements OnInit, OnDestroy {
'datum_anzeige', 'datum_gregorianisch', 'datum_julianisch', 'kontext'];
const format = ')&rows=9999&wt=json';
const searchExpression = this.makeLeibnizSearchExpressions(searchRoute, experssions) + format;
fetch(searchExpression) // https://cors-anywhere.herokuapp.com/https://example.com
fetch(searchExpression)
.then(response => response.json())
.then(contents => {
this.getLeibnizLetters(contents.response.docs);
Expand Down Expand Up @@ -233,7 +233,7 @@ export class SearchResultsComponent implements OnInit, OnDestroy {
[this._appInitService.getSettings().ontologyIRI + '/ontology/0801/newton/v2']).subscribe(
(info2: OntologyInformation) => {*/
const searchRoute = this.newtonBasePath + '/search/results?n=25&cat=';
const cors_proxyurl = 'https://thingproxy.freeboard.io/fetch/';
const cors_proxyurl = 'https://cors-container.herokuapp.com/';
const mathCategory = 'Mathematics&ce=0&keyword=';
const opticsCategory = 'Optics&ce=0&keyword=';
const queryTail = '&sort=relevance';
Expand Down

0 comments on commit debcd29

Please sign in to comment.