Skip to content

Commit

Permalink
Simplify vocabulary information per #105
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed May 30, 2019
1 parent 3434dd1 commit 28cc7f1
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 100 deletions.
19 changes: 19 additions & 0 deletions src/app/layout/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,25 @@ a.subject-tag:active {
margin-left:75px;
}

/*****************************************
* Landing page
*****************************************/

.landing_page {
max-width:800px;
padding: 10px;
margin-left:80px;
}
.landing_page ul {
list-style-type: none;
padding-left:.4em;
}
.landing_page li {
padding: 3px 0;
margin-left:0;

}

/*****************************************
* Catalogue view
*****************************************/
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout/main.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="container-fluid">

<div ui-view="info"></div>

<div class="row">
<div id="left" class="col-md-8">
<app-authority-search></app-authority-search>
Expand Down
65 changes: 35 additions & 30 deletions src/app/pages/home.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
<div style="max-width:800px; padding: 10px; margin-left:auto;margin-right:auto;">
<div class="landing_page">

<p translate>
Find books and other material about a specific topic in the collections of Norwegian academic libraries. Start by choosing a vocabulary from the list below. A vocabulary is a controlled set of topics. Searching all vocabularies at the same time isn't yet supported, but definitely something we would like to add support for in the future.
</p>
<!--You can also try to search in <a ui-sref="subject.vocab({vocab:'all'})">all of the vocabularies at the same time</a>,
but this is currently not very user friendly as overlapping concepts from different vocabularies
do not cluster, but rather shows up as duplicates.-->
<p translate>
Once in, you can toggle between <em>broad</em> and <em>narrow</em> search. With <em>narrow</em> search, you will only get highly relevant results carefully indexed by librarians and subject specialists. By switching to <em>broad</em> search, you will get more results, but without the same level of precision.
</p>

<h3>» <a ui-sref="subject.vocab({vocab:'humord', lang: vm.lang})" translate>Humanities and social sciences (Humord)</a></h3>
<p translate>
The university libraries of Oslo, Bergen, Trondheim and Tromsø collaborate on the Humord vocabulary to provide multilingual (Norwegian Bokmål and English) subject search to their humanities and social science collections.
</p>
<h2>Subject search</h2>

<h3>» <a ui-sref="subject.vocab({vocab: 'realfagstermer', lang: vm.lang})" translate>Science, technology, engineering and mathematics (Science Terms)</a></h3>
<p translate>
Search the science, technology and mathematics collections of University of Oslo and Bergen using Norwegian Bokmål, Nynorsk, English or the scientific names of species.
I would like to find books about:
</p>

<h3>» <a ui-sref="subject.vocab({vocab:'tekord', lang: vm.lang})" translate>Technology and engineering (Tekord)</a></h3>
<p translate>
Subject search for the technical and engineering literature of NTNU is provided by Tekord. Search is only available in Norwegian Bokmål, but terms are mapped to UDC, providing possibilities for multilingual search in the future.
</p>
<ul>
<li>
<a ui-sref="subject.vocab({vocab:'humord', lang: vm.lang})">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
{{ 'Humanities and social sciences (Humord)' | translate }}
</a>
</li>
<li>
<a ui-sref="subject.vocab({vocab:'realfagstermer', lang: vm.lang})">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
{{ 'Science (Realfagstermer)' | translate }}
</a>
</li>
<li>
<a ui-sref="subject.vocab({vocab:'tekord', lang: vm.lang})">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
{{ 'Technology and engineering (Tekord)' | translate }}
</a>
</li>
<li>
<a ui-sref="subject.vocab({vocab:'mrtermer', lang: vm.lang})">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
{{ 'Human rights (Human Rights terms)' | translate }}
</a>
</li>
<li>
<a href="https://app.uio.no/ub/ujur/l-skjema/">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
{{ 'Law (L scheme)' | translate }}
</a>
</li>
</ul>

<h3>» <a ui-sref="subject.vocab({vocab:'mrtermer', lang: vm.lang})" translate>Human rights</a></h3>
<p translate>
The University of Oslo Library has a small vocabulary to search its human rights collections. This vocabulary is only available in English.
</p>

<h3>» <a href="https://app.uio.no/ub/ujur/l-skjema/" translate>Law (L scheme)</a></h3>
<p translate>
The collections of the University of Oslo Law Library can be searched and navigated using a special classification scheme.
</p>
</div>
22 changes: 6 additions & 16 deletions src/app/pages/vocabularyInfo/humord.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<div class="vocabulary-info">

<h1>Humord</h1>

<p translate>
Humord is the best portal to the humanities and social sciences. The vocabulary also has a relatively large amount of interdisciplinary subject headings. This vocabulary has only Norwegian Bokmål terms.
</p>

<p ng-show="vm.topicCount" translate>
The vocabulary contains {{ vm.topicCount }} subjects.
<h2 translate>Subject search using Humord</h2>
<p>
<span translate>The university libraries of Oslo, Bergen, Trondheim and Tromsø collaborate on the Humord vocabulary to provide multilingual (Norwegian Bokmål and English) subject search to their humanities and social science collections.</span>
<a href="http://www.bibsys.no/files/out/humord/" target="external" translate>Learn more about the vocabulary</a>.
</p>

<p translate>
<a href="http://www.bibsys.no/files/out/humord/" target="external">Learn more about the vocabulary</a>
</p>

<h2>Top concepts</h2>

<h3 translate>Navigate the vocabulary</h3>
<table>
<tr>
<td>
Expand Down Expand Up @@ -106,5 +96,5 @@ <h2>Top concepts</h2>
</td>
</tr>
</table>

<h3 translate>Search it</h3>
</div>
16 changes: 0 additions & 16 deletions src/app/pages/vocabularyInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,6 @@ function VocabularyInfoController($stateParams, Config, TitleService, AuthorityS
/*jshint validthis: true */
var vm = this;
var vocabName = Config.vocabularies[$stateParams.vocab].name;

TitleService.set(vocabName);

AuthorityService.clearCurrentSubject();

AuthorityService.getVocabulary($stateParams.vocab).then(function(vocabulary) {
forOwn({
topicCount: 'Topic',
genreCount: 'GenreForm',
placeCount: 'Place',
timeCount: 'Time',
compoundConceptCount: 'CompoundConcept',
virtualCompoundConceptCount: 'VirtualCompoundConcept'
}, function(val, key) {
vm[key] = result(find(vocabulary.subTypes, { 'type': 'http://data.ub.uio.no/onto#' + val }), 'count');
});
});

}
18 changes: 4 additions & 14 deletions src/app/pages/vocabularyInfo/mrtermer.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
<div class="vocabulary-info">

<h1>Human Rights Terms</h1>

<p translate>
The Human Rights Terms vocabulary was initially developed in 1991 by the Human Rights Research and Education Centre of the University of Ottawa, Canada. In the late 1990s it was adopted by the Norwegian Centre for Human Rights (SMR), who has since adjusted and expanded the vocabulary in order to provide a great entry to the SMR library collections.
<h2 translate>Subject search using Human Rights Terms</h2>
<p>
<span translate>The University of Oslo Library has a small vocabulary to search its human rights collections. This vocabulary is only available in English.</span>
<a translate href="https://www.ub.uio.no/om/tjenester/emneord/menneskerettighetstermer.html" target="external">Learn more about the vocabulary</a>.
</p>

<p ng-show="vm.topicCount" translate>
The vocabulary contains {{ vm.topicCount }} subjects.
</p>

<p translate>
<a href="https://www.ub.uio.no/om/tjenester/emneord/menneskerettighetstermer.html" target="external">Learn more about the vocabulary</a>
</p>

</div>
16 changes: 3 additions & 13 deletions src/app/pages/vocabularyInfo/realfagstermer.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
<div class="vocabulary-info">

<h1>Realfagstermer</h1>

<p translate>
Search for scientific concepts. <em>Realfagstermer</em> is a controlled vocabulary maintained by the science libraries at the University at Oslo and Bergen, and is the best portal to our collections. Realfagstermer is a multilingual vocabulary that can be searched in Bokmål, Nynorsk (translation in progress), English (translation in progress) and Latin (scientific names).
<h2 translate>Subject search using Realfagstermer</h2>
<p>
<span translate>Search the science, technology and mathematics collections of University of Oslo and Bergen using Norwegian Bokmål, Nynorsk, English or the scientific names of species.</span> <a translate href="https://www.ub.uio.no/english/using/search-the-library/subject-search-terms/science-subject-terms.html">Learn more about the vocabulary</a>,
</p>

<p ng-show="vm.topicCount" translate>
The vocabulary contains {{ vm.topicCount }} subjects, {{ vm.genreCount }} form/genres, {{ vm.timeCount }} time periods, {{ vm.placeCount }} geographic names or features, {{ vm.compoundConceptCount }} compound concepts and {{ vm.virtualCompoundConceptCount }} virtual compound concepts.
</p>
<p translate>
<a href="https://www.ub.uio.no/english/using/search-the-library/subject-search-terms/science-subject-terms.html">Learn more about the vocabulary</a>
</p>

</div>
13 changes: 3 additions & 10 deletions src/app/pages/vocabularyInfo/tekord.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<div class="vocabulary-info">

<h1>Tekord</h1>

<p translate>
Tekord is a vocabulary created at NTNU (Norwegian University of Science and Technology). It is an especially useful search portal to technical and engineering literature. This vocabulary has only Norwegian Bokmål terms.
<h2 translate>Subject search using Tekord</h2>
<p>
<span translate>Subject search for the technical and engineering literature of NTNU is provided by Tekord. Search is only available in Norwegian Bokmål, but terms are mapped to UDC, providing possibilities for multilingual search in the future.</span>
</p>

<p ng-show="vm.topicCount" translate>
The vocabulary contains {{ vm.topicCount }} subjects.
</p>

</div>
2 changes: 1 addition & 1 deletion src/app/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function configure($stateProvider, $urlRouterProvider) {
.state('subject.vocab', {
url: '/',
views: {
'catalogue': 'appVocabularyInfo',
'info': 'appVocabularyInfo',
},
})
.state('subject.search', {
Expand Down

0 comments on commit 28cc7f1

Please sign in to comment.