Skip to content

Commit

Permalink
Added callbacks to Islandora
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Stanley committed Feb 22, 2012
1 parent dff2892 commit 6de147a
Show file tree
Hide file tree
Showing 5 changed files with 2,694 additions and 2,588 deletions.
34 changes: 10 additions & 24 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script type="text/javascript" language="javascript" src="lib/jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" language="javascript" src="lib/jquery/jquery-ui-1.8.5.custom/js/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" language="javascript" src="lib/jquery/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" language="javascript" src="lib/islandora/startup.js"></script>
<script type="text/javascript" language="javascript" src="lib/jquery/plugins/DataTables-1.7.6/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript" src="lib/jquery/plugins/jgcharts/jgcharts.pack.js"></script>
<script src="lib/jquery/plugins/jquery.pngFix.pack.js" type="text/javascript"></script>
Expand All @@ -28,6 +28,7 @@
<script type="text/javascript" src="lib/VectorDrawer_1.0/VectorDrawer.js"></script>
<script type="text/javascript" src="tile.js"></script>


<script type="text/javascript" src="lib/jquery/plugins/colorpicker/js/colorpicker.js"></script>
<script type="text/javascript" src="lib/jquery/plugins/colorpicker/js/eye.js"></script>
<script type="text/javascript" src="lib/jquery/plugins/colorpicker/js/utils.js"></script>
Expand All @@ -37,32 +38,14 @@
</head>
<body>
<script type ="text/javascript">
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
pairs = getUrlVars();
PID = "<?php echo $_POST['PID']; ?>";
</script>
<div class="az header"><div class="az logo"><img src="skins/default/images/tile.gif" alt="TILE: Text-Image Linking Environment" /></div>
<div class="az header"><div class="az logo"></div>
<div id="azglobalmenu" class="az globalmenu">
<div class="globalbuttons">
<div class="modeitems"></div>
<div class="dataitems"></div>
<div class="misc">
<div class="menuitem"><span class="version">version 1.0</span></div>
<div class="menuitem"><a id="tilehelp" title="Go to the TILE documentation page" href="http://mith.umd.edu/tile/documentation">Documentation</a></div>
</div>

</div>
</div>
</div>
Expand All @@ -82,15 +65,18 @@ function getUrlVars()
<div id="az_activeBox" class="az activeBox"></div>
<div id="azcontentarea" class="az content"></div>
<script type="text/javascript">
doc = $('document');
var engine=null;

// set verbose mode either true (on) or false (off)
__v=false;


$(function(){

// Initialize Core Functions and Objects:
engine=new TILE_ENGINE({"TILE.preload":"http://localhost/Tile/?file=http://localhost:8080/fedora/objects/islandora:1619/datastreams/TILE_JSON/content"});
engine=new TILE_ENGINE({});


// Image Annotation Mode
//engine.insertMode('Image Annotation');
Expand All @@ -113,7 +99,7 @@ function getUrlVars()
// CoreData Plugin
engine.insertPlugin('CoreData');
// AutoLoad Plugin
engine.insertPlugin('AutoLoad');
engine.insertPlugin('AutoLoadEmic');

// Welcome Dialog Plugin (not loaded by default)
// engine.insertPlugin('WelcomeDialog');
Expand Down
1 change: 0 additions & 1 deletion plugins/AutoLoad/tileplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var AutoLoad={
// get data from config file
// and set the TILE.preLoad variable
// to results
var file = pairs['file'];
TILE.preLoad=$.ajax({
url:'./plugins/AutoLoad/autoLoadConfig.php?file=' + file,
dataType:'text',
Expand Down
2 changes: 1 addition & 1 deletion plugins/ImageTagger/tileplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ var SHAPE_ATTRS = {"stroke-width": "1px", "stroke": "#a12fae"};
this.zoomIn=$("#zoomIn");
this.zoomIn.click(function(e){
$("body:first").trigger("zoom",[1]);
alert('line 459');

});
this.zoomOut=$("#zoomOut");
this.zoomOut.click(function(e){
Expand Down
9 changes: 7 additions & 2 deletions skins/default/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ body {
font-family:Helvetica, Arial, Verdana, sans-serif;
font-size:90%;
line-height:1.5em;
background:#fffaef url('../images/bkgd.gif');
/*background:#fffaef url('../images/bkgd.gif'); */
}
.az {
bottom:0;
Expand Down Expand Up @@ -190,7 +190,7 @@ a:hover {
.main {
height: auto;
opacity: 1;
top: 87px;
/*top: 87px; */
z-index: 1;
}
.log {
Expand Down Expand Up @@ -312,6 +312,7 @@ a.btnIconLarge:hover {
margin:0;
cursor:pointer;
width:auto;

}
.button.inactive, .button.inactive:hover {
color:#c7c3b5;
Expand Down Expand Up @@ -1322,3 +1323,7 @@ a.btnIconLarge:hover {
.dashboard_footer p{
text-decoration:underline;
}

.modeitems{
display:none;
}
Loading

0 comments on commit 6de147a

Please sign in to comment.