Browse Source

BibTeX formatting fixes

pjc 5 years ago
parent
commit
bd19ad09ad
1 changed files with 13 additions and 7 deletions
  1. 13
    7
      sections/torrents/details.php

+ 13
- 7
sections/torrents/details.php View File

655
 <pre>
655
 <pre>
656
 @misc{ BioTorrents.de-$TorrentID,";
656
 @misc{ BioTorrents.de-$TorrentID,";
657
 
657
 
658
-  foreach ($Artists as $Num => $Artist) {
659
-    $bibtex .= "\n  author = '".Artists::display_artist($Artist)."',";
660
-  }
658
+foreach ($Artists as $Num => $Artist) {
659
+  $bibtex .= "\n  author = {".Artists::display_artist($Artist)."},";
660
+}
661
+
662
+if(!empty($GroupNameRJ)) {
663
+  $bibtex .= "\n  title  = {".$GroupName."---$GroupNameRJ $GroupNameJP},";
664
+} else {
665
+  $bibtex .= "\n  title  = {".$GroupName."},";
666
+}
661
   
667
   
662
 $bibtex .= "
668
 $bibtex .= "
663
-  title  = '$GroupName',
664
-  year   = '$GroupYear',
669
+  year   = {".$GroupYear."},
665
   url    = \href{https://biotorrents.de/torrents.php?torrentid=$TorrentID},
670
   url    = \href{https://biotorrents.de/torrents.php?torrentid=$TorrentID},
666
-  note   = 'Online; accessed ".strftime('%Y-%m-%d')."',
667
-},";
671
+  note   = {Online; accessed ".strftime('%Y-%m-%d')."},
672
+},
673
+</pre>";
668
 
674
 
669
 echo $bibtex;
675
 echo $bibtex;
670
 ?>
676
 ?>

Loading…
Cancel
Save