Skip to content

Commit a94904a

Browse files
author
Andrew Kim
committed
admincontroller
1 parent ba0b3ee commit a94904a

File tree

11 files changed

+1553
-178
lines changed

11 files changed

+1553
-178
lines changed

Josh.jpg

52.7 KB
Loading

Thumbs.db

13 KB
Binary file not shown.

app/Controller/AdminController.php

+206-157
Large diffs are not rendered by default.

app/Controller/ResourcesController.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,17 @@ public function getExportData($kidArray, $schemeArrayIndex) {
528528
'query'=>array(
529529
array(
530530
'search'=>'kid',
531-
'kids'=>$kidArray
531+
'kids'=>$kidArray
532532
)
533533
)
534534
)
535535
))
536536
);
537537

538+
// echo json_encode($query);
539+
// die;
540+
541+
538542
$url = KORA_RESTFUL_URL.'search';
539543
$ch = curl_init();
540544
curl_setopt($ch,CURLOPT_URL, $url);
@@ -544,7 +548,7 @@ public function getExportData($kidArray, $schemeArrayIndex) {
544548

545549
$result = curl_exec($ch);
546550
curl_close($ch);
547-
551+
548552
return $result;
549553
}
550554

app/Controller/josh

Whitespace-only changes.

app/webroot/assets/arcs.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/webroot/assets/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ JST["admin/metadata_edits"] =
261261
"<div class=\"admin-rows-wrap\">"+
262262
"<div class=\"admin-rows-content meta\">"+
263263
"<% _.each(metadata_edits, function(f, i) { %> "+
264-
"<div class=\"admin-row meta\">"+
264+
"<div class=\"admin-row meta\" data-id=\"<%= f.MetadataEdit.id %>\">"+
265265
"<p class=\"resource-kid\"><%= f.MetadataEdit.resource_kid %></p>"+
266266
"<p class=\"username\"><%= f.MetadataEdit.user_name %></p>"+
267267
"<p class=\"metadata-kid\"><%= f.MetadataEdit.metadata_kid %></p>"+

app/webroot/js/views/admin/metadata_edits.js

+31-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev

Whitespace-only changes.

format.txt

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
"forms":
2+
"
3+
[
4+
{
5+
\"_method\":\"put\",
6+
\"form\":\"829\",
7+
\"token\":\"sZGUHpfv56qlPGWli6yM1oRl\",
8+
\"kid\":\"148-829-2299989\",
9+
\"query\":
10+
[
11+
\"{\\\"legacy_kid\\\":\\\"A8-393-3\\\",
12+
\\\"pid\\\":148,
13+
\\\"schemeID\\\":829,
14+
\\\"systimestamp\\\":\\\"2018-05-11 19:10:11\\\",
15+
\\\"recordowner\\\":\\\"admin\\\",
16+
\\\"linkers\\\":
17+
[
18+
\\\"148-830-2299994\\\",
19+
\\\"148-830-2299995\\\"
20+
],
21+
\\\"Resource_Identifier\\\":
22+
\\\"Dummy_Report_20170216\\\",
23+
\\\"Title\\\":\\\"GROTTO\\\",
24+
\\\"Sub-title\\\":\\\"Odysseus Cycle\\\",
25+
\\\"Description\\\":\\\"This is a dummy report about the sculptures in the Grotto of Tiberius\\\",
26+
\\\"Pages\\\":\\\"2\\\",
27+
\\\"Rights\\\":\\\"Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)\\\",
28+
\\\"Excavation_-_Survey_Name\\\":\\\"Dummy - Grotto Sculpture\\\",
29+
\\\"Type\\\":\\\"Report\\\",
30+
\\\"Condition\\\":\\\"Good\\\",
31+
\\\"Permissions\\\":\\\"Public\\\",
32+
\\\"Orphan\\\":\\\"FALSE\\\",
33+
\\\"Creator\\\":[
34+
\\\"Kenobi, Obi-Wan\\\",
35+
\\\"Windu, Mace\\\"
36+
],
37+
\\\"Creator_Role\\\":[\\\"Field Director\\\"],
38+
\\\"Language\\\":[\\\"English\\\"],
39+
\\\"Earliest_Date\\\":{\\\"prefix\\\":\\\"0\\\",\\\"month\\\":\\\"2\\\",\\\"day\\\":\\\"16\\\",\\\"year\\\":\\\"2017\\\",\\\"era\\\":\\\"CE\\\",\\\"suffix\\\":\\\"\\\"},
40+
\\\"Latest_Date\\\":{\\\"prefix\\\":\\\"0\\\",\\\"month\\\":\\\"2\\\",\\\"day\\\":\\\"16\\\",\\\"year\\\":\\\"2017\\\",\\\"era\\\":\\\"CE\\\",\\\"suffix\\\":\\\"\\\"},
41+
\\\"Excavation_-_Survey_Associator\\\":[\\\"148-828-2299985\\\"]}\"],
42+
\"keepFields\":true,
43+
\"zipFile\":null
44+
}
45+
]
46+
"

0 commit comments

Comments
 (0)