Skip to content

Commit

Permalink
Merge pull request #19 from Alex-bzh/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Alex-bzh authored Apr 11, 2020
2 parents c62004c + 4493a95 commit fb10eb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ galaHAL is easy to configure. The file *config.js* at the root contains a small
- *lab* (optional): the acronym of a structure, which you can find on the [*ad hoc* repository](https://api.archives-ouvertes.fr/ref/structure/?q=LLF&fl=acronym_s). If you leave this key empty, galaHAL will fetch all your publications and not only the ones affected to a declared structure.

## Coming features
- direct access to documents when available
- drupal and wordpress modules
1 change: 1 addition & 0 deletions components/references.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ let refCmpnt = {
<li v-for="doc in docs[1]" :key="doc.halId_s" class="text-justify">\
<a :href="`https://hal.archives-ouvertes.fr/${doc.halId_s}`" target="_blank">{{ doc.halId_s }}</a>\
<span>{{ decodeHtml(doc.label_s) }}</span>\
<a class="align-middle" v-show="doc.fileMain_s" :href="doc.fileMain_s" target="_blank"><span class="oi oi-file"></span></a>\
</li>\
</ul>\
</li>\
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let app = new Vue({
// HAL API: bibliographical references
let url = 'https://api.archives-ouvertes.fr/search/';
// Builds the query
let query = `${this.lab}/?q=authIdHal_s:${this.idHal}&fl=halId_s,docType_s,label_s,producedDate_tdate&facet=true&facet.field=docType_s&rows=500&wt=json&sort=producedDate_tdate+desc`;
let query = `${this.lab}/?q=authIdHal_s:${this.idHal}&fl=halId_s,docType_s,label_s,producedDate_tdate,fileMain_s&facet=true&facet.field=docType_s&rows=500&wt=json&sort=producedDate_tdate+desc`;
// Fetch API to query the HAL API
fetch(url + query)
.then(stream => stream.json())
Expand Down

0 comments on commit fb10eb8

Please sign in to comment.