';
+
+
+ // media type
+ if (hit["md-medium"] && hit["md-medium"][0]) {
+ html += '
'
+ + '
'
+ + '- ';
+ switch (hit["md-medium"][0]) {
+ case '(CD)videorecording':
+ html += Drupal.t('CD');
+ break;
+ case '(DVD)videorecording':
+ html += Drupal.t('DVD');
+ break;
+ case 'article':
+ html += Drupal.t('article');
+ break;
+ case 'book':
+ html += Drupal.t('book');
+ break;
+ case 'cartographic material':
+ html += Drupal.t('map');
+ break;
+ case 'electronicresource':
+ html += Drupal.t('online');
+ break;
+ case 'Enregistrementsonore':
+ html += Drupal.t('recording');
+ break;
+ case 'enregistrementvidéo':
+ html += Drupal.t('video');
+ break;
+ case 'map':
+ html += Drupal.t('map');
+ break;
+ case 'microform':
+ html += Drupal.t('microform');
+ break;
+ case 'microforme':
+ html += Drupal.t('microform');
+ break;
+ case 'resourceélectronique':
+ html += Drupal.t('online');
+ break;
+ case 'soundrecording':
+ html += Drupal.t('recording');
+ break;
+ case 'videorecording':
+ html += Drupal.t('video');
+ break;
+ default:
+ html += Drupal.t('other');
+ break;
+ }
+ html += '
';
}
- if (hit["md-title-responsibility"] !== undefined) {
- html += '
'
- + hit["md-title-responsibility"]
- + '';
+
+
+ // title and link
+ var link = choose_url(hit);
+ if (!link) link = choose_url(hit['location'][0]);
+
+ html += '
';
+
+
+ html += '
';
+ // author
+ if (hit["md-author"]) {
+ html += '' + Drupal.t('By')
+ + ' ' + hit['md-author'] + ' ';
+ } else if (hit['md-title-responsibility']) {
+ html += '' + ' ' + hit['md-title-responsibility'] + '';
+ }
+ // date
+ if (hit['md-date']) {
+ html += ' ('
+ + hit['md-date'] + ')';
}
+ html += '
';
+
+ // journal title
+ html += '
';
+ if (hit["location"] && hit["location"][0] && hit["location"][0]["md-journal-title"]) {
+ html += hit["location"][0]["md-journal-title"];
+ if (hit["location"][0]["md-journal-subpart"]) {
+ html += ' ' + hit["location"][0]["md-journal-subpart"];
+ }
+ } else if (hit["md-journal-title"]) {
+ html += hit["md-journal-title"];
+ if (hit["md-journal-subpart"]) {
+ html += ' ' + hit["md-journal-subpart"];
+ }
+ }
+ html += '
';
+
+
+ // description
+ if (hit["md-description"]) {
+ html += '
';
+ // limit description to 400 characters
+ html += hit["md-description"][0].substr(0, 400);
+ html += '
';
+ }
+
+
+ // subjects
+ if (hit["location"] && hit["location"][0] && hit["location"][0]["md-subject"]) {
+ html += '
'
+ + Drupal.t('Subjects') + ':
';
+ for (var i = 0; i < hit["location"][0]["md-subject"].length; i++) {
+ html += '- ' + hit["location"][0]["md-subject"][i] + '
';
+ }
+ html += '
';
+ }
+
+ // CLOSE - record div
+ html += '
';
+ // CLOSE - result list item
html += '