';
+
+
+ // 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.push('
'+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'] + '';
}
- html.push('');
- return (html.join(''));
-};
+ // date
+ if (hit['md-date']) {
+ html += ' ('
+ + hit['md-date'] + ')';
+ }
+ html += '
';
-Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
- var onsides = 6;
+ // 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 += '
';
+ }
- var firstClkbl = ( curPage - onsides > 0 )
- ? curPage - onsides
- : 1;
- var lastClkbl = firstClkbl + 2*onsides < pages
- ? firstClkbl + 2*onsides
- : pages;
+ // 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 += '
';
+ }
- var prev = '
<< Prev | ';
- if (curPage > 1)
- var prev = '
'
- +'<< Prev | ';
+ // CLOSE - record div
+ html += '
';
+ // CLOSE - result list item
+ html += '