Ejemplo n.º 1
0
         $nam = $pag ? '' : ' <div class="rht">' . J_NAME . '</div>';
         echo "{$pag}<h2>{$year}, Vol. {$vol}, Issue {$abs['issue']}{$nam}</h2>";
         echo linker($doi, $doi, 'rht') . plural(count($cur), 'article');
         foreach ($cur as $abs) {
             if ($cursec != $subj[$abs['section']]) {
                 $cursec = $subj[$abs['section']];
                 echo "<h3>{$cursec}</h3>";
             }
             $loc = array_values(array_slice($abs, 0, 4));
             $url = linkabs($loc);
             $pdf = linkpdf($loc);
             $edt = $user ? linkedt($loc, 'rht') : '';
             echo '<div class="entry">';
             echo $edt . '<h4>' . linker($url, $abs['title']) . '</h4>';
             echo '<div>' . $abs['author'] . '</div>';
             echo cite($loc) . ' ' . linker(mkdoi($abs['doi']));
             if (file_exists($_SERVER['DOCUMENT_ROOT'] . $pdf)) {
                 echo '<div>' . linker($url, 'Abstract') . ' | Full text: ' . linker($pdf, 'PDF [' . getlang($abs['pdf']) . ']') . '</div>';
             }
             echo '</div>';
         }
     }
     echo '</div>';
 } else {
     echo '<div class="panel">';
     echo '<h3 class="h">' . "{$year}, Volume {$vol}" . '</h3>';
     echo '<div>';
     foreach (array_keys($issue) as $num) {
         echo '<a href="/archive/' . $vol . '/' . $num . '" class="issue btn">' . '<img src="/img/cover-' . $year . '-' . $num . '.jpg" alt="cover">' . '<span class="btn">Issue ' . $num . '</span>' . '</a>' . PHP_EOL;
     }
     echo '</div></div>';
Ejemplo n.º 2
0
            $val = ' value="' . $val . '"';
        }
    } else {
        if ($tx) {
            $val = $def . $tx . '">';
        } else {
            $val = '';
        }
    }
    return ' name="' . $c . '"' . $val;
}
if (!empty($_GET['page'])) {
    $rec = $db->getRow($_GET, TBL_CON);
    if ($rec) {
        array_unshift($prefix, 'Edit');
        $rec['doi'] = mkdoi($rec['doi']);
        $rec['pdf'] = getlang($rec['pdf']);
        $_GET = array_slice($rec, 0, 4);
    }
}
?>
		<div class="addabs">
			<a href="#addauto">Autofill &amp; format text</a>
			<div class="autofill">
				<div contenteditable="true" data-ph="Paste content here..."></div>
				<p>Paste content in the in above field. Each item must be newline-delimited, except for Institute and References - they can span any number of lines. The order of items should be as the fields below. First three should contain citation, section and DOI link. The following lines will be used to populate the subsequent fields. Abstract needs to be longer than 200 chars. Words &quot;keywords&quot; and &quot;abstract&quot; at the beginning of lines are cropped off.</p>
			</div>
			<form action="/<?php 
echo $path;
?>
" name="newabs" method="post">