This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.php
52 lines (48 loc) · 2.31 KB
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Admin page to add usage to database
*
* @author Jared Howland <book.usage@jaredhowland.com>
* @version 2013-06-05
* @since 2013-05-15
*
*/
require_once 'config.php';
$html = <<<HTML
<div class="span-14 span7 page append-1">
<p>Things to know before loading usage data:</p>
<ol class="link_list large">
<li>This program assumes that an individual book is only listed once per platform. If you have usage data where a book is listed multiple times per platform (as can happen with book series such as those found in BioOne), you will need to manually combine usage for that book into a single entry for that platform.</li>
<li>Only plain text, Microsoft formatted CSV files may be loaded.</li>
<li><strong>Format for Project COUNTER Book Report #1</strong>:
<ul>
<li><strong>Column order for Revision 1</strong>: Title, Publisher, Platform, ISBN, ISSN, Annual Usage, Usage Year, Vendor Name</li>
<li><strong>Column order for Revision 4</strong>: Title, Publisher, Platform, DOI, Proprietary Identifier, ISBN, ISSN, Annual Usage, Usage Year, Vendor Name</li>
</ul>
</li>
<li><strong>Format for Project COUNTER Book Report #2</strong>:
<ul>
<li><strong>Column order for Revision 1</strong>: Title, Publisher, Platform, ISBN, ISSN, Annual Usage, Usage Year, Vendor Name</li>
<li><strong>Column order for Revision 4</strong>: Title, Publisher, Platform, DOI, Proprietary Identifier, ISBN, ISSN, Annual Usage, Usage Year, Vendor Name</li>
</ul>
</li>
</ul>
</div>
<div class="span-7 page">
<h2>Project COUNTER Book Report #1</h2>
<form enctype="multipart/form-data" action="ingest.php" method="post">
<p><input type="file" name="uploadedfile"/></p>
<input type="hidden" name="report" value="1" id="report"/>
<p><input type="submit" class="btn btn-primary" value="Upload file"/></p>
</form>
<h2 class="h2">Project COUNTER Book Report #2</h2>
<form enctype="multipart/form-data" action="ingest.php" method="post">
<p><input type="file" name="uploadedfile"/></p>
<input type="hidden" name="report" value="2" id="report"/>
<p><input type="submit" class="btn btn-primary" value="Upload file"/></p>
</form>
</div>
HTML;
$html = array('title' => 'Admin', 'html' => $html);
template::display('generic.tmpl', $html);
?>