-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdd156c
commit 35258ca
Showing
12 changed files
with
1,916 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":4441,"url":"https:\/\/pennstreaty.haverford.edu\/qi\/api\/files\/4441","file_urls":{"original":"https:\/\/pennstreaty.haverford.edu\/qi\/files\/original\/3a97a282ba7c2781b2f96aba21e99e90.jpg","fullsize":"https:\/\/pennstreaty.haverford.edu\/qi\/files\/fullsize\/3a97a282ba7c2781b2f96aba21e99e90.jpg","thumbnail":"https:\/\/pennstreaty.haverford.edu\/qi\/files\/thumbnails\/3a97a282ba7c2781b2f96aba21e99e90.jpg","square_thumbnail":"https:\/\/pennstreaty.haverford.edu\/qi\/files\/square_thumbnails\/3a97a282ba7c2781b2f96aba21e99e90.jpg"},"added":"2015-03-20T15:37:42+00:00","modified":"2015-03-20T15:37:44+00:00","filename":"3a97a282ba7c2781b2f96aba21e99e90.jpg","authentication":"e81a92f156b35c2dcb01f7a7058d100f","has_derivative_image":true,"mime_type":"image\/jpeg","order":null,"original_filename":"http:\/\/libdev.haverford.edu\/journalimages\/indian_journals\/swayne\/975_JoelSwayne_1.jpg","size":2979759,"stored":true,"type_os":"JPEG image data, EXIF standard","metadata":{"mime_type":"image\/jpeg","video":{"dataformat":"jpg","lossless":false,"bits_per_sample":24,"pixel_aspect_ratio":1,"resolution_x":3415,"resolution_y":4896,"compression_ratio":0.059405652207198},"iptc":{"IPTCEnvelope":{"CodedCharacterSet":["\u001b%G","\u001b%G"]},"IPTCApplication":{"ApplicationRecordVersion":["\u0000\u0000"],"By-line":["1996-2004 AccuSoft Co., All righ"]}},"jpg":{"exif":{"FILE":{"FileName":"3a97a282ba7c2781b2f96aba21e99e90.jpg","FileDateTime":1426865862,"FileSize":2979759,"FileType":2,"MimeType":"image\/jpeg","SectionsFound":"ANY_TAG, IFD0, THUMBNAIL, EXIF"},"COMPUTED":{"html":"width=\"3415\" height=\"4896\"","Height":4896,"Width":3415,"IsColor":1,"ByteOrderMotorola":0,"Thumbnail.FileType":2,"Thumbnail.MimeType":"image\/jpeg"},"IFD0":{"ImageWidth":3415,"ImageLength":4896,"BitsPerSample":[8,8,8],"Compression":1,"PhotometricInterpretation":2,"Orientation":1,"SamplesPerPixel":3,"XResolution":600,"YResolution":600,"PlanarConfiguration":1,"ResolutionUnit":2,"Software":"Adobe Photoshop CS6 (Windows)","DateTime":"2015:02:20 11:29:42","Artist":"1996-2004 AccuSoft Co., All rights reserved","Exif_IFD_Pointer":312},"THUMBNAIL":{"Compression":6,"XResolution":72,"YResolution":72,"ResolutionUnit":2,"JPEGInterchangeFormat":450,"JPEGInterchangeFormatLength":5713},"EXIF":{"ColorSpace":65535,"ExifImageWidth":3415,"ExifImageLength":4896}}}},"item":{"id":2641,"url":"https:\/\/pennstreaty.haverford.edu\/qi\/api\/items\/2641","resource":"items"},"element_texts":[],"extended_resources":[]} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
django_manage () { | ||
/usr/local/lib/python-virtualenv/QI/bin/python manage.py "$@" | ||
} | ||
|
||
echo -e "=== Pulling latest commits ===" | ||
git pull origin master | ||
echo -e "\n\n=== Applying database migrations ===" | ||
django_manage migrate | ||
echo -e "\n\n=== Restarting uWSGI ===" | ||
service uwsgi restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(function($) { | ||
$(document).on('ready', function() { | ||
var $actionsSelect, $formatsElement; | ||
if ($('body').hasClass('grp-change-list')) { | ||
// using grappelli | ||
$actionsSelect = $('#grp-changelist-form select[name="action"]'); | ||
$formatsElement = $('#grp-changelist-form select[name="file_format"]'); | ||
} else { | ||
// using default admin | ||
$actionsSelect = $('#changelist-form select[name="action"]'); | ||
$formatsElement = $('#changelist-form select[name="file_format"]').parent(); | ||
} | ||
$actionsSelect.on('change', function() { | ||
if ($(this).val() === 'export_admin_action') { | ||
$formatsElement.show(); | ||
} else { | ||
$formatsElement.hide(); | ||
} | ||
}); | ||
$actionsSelect.change(); | ||
}); | ||
})(django.jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% load staticfiles %} | ||
<!doctype html> | ||
<html class="no-js" lang="en"> | ||
<head> | ||
{% include 'top-links.html' %} | ||
<title>SW_GH1804 StoryMapJS </title> | ||
<link rel="stylesheet" href="https://cdn.knightlab.com/libs/storymapjs/latest/css/storymap.css"> | ||
|
||
</head> | ||
<body> | ||
{% include 'header.html' %} | ||
<div id = "row1"> | ||
<!-- Navigation Menu Below: --> | ||
{% include 'nav.html' %} | ||
</div> | ||
<div id = "story1" style = "background-color: #F0F8FF;"> | ||
<div> | ||
<br /> | ||
<h2 class = "text-center" style = "font-family: 'Alegreya Sans SC'; font-weight: 400; color: black"> StoryMap for SW_GH1804</h2> | ||
<!-- The StoryMap container can go anywhere on the page. Be sure to | ||
specify a width and height. The width can be absolute (in pixels) or | ||
relative (in percentage), but the height must be an absolute value. | ||
Of course, you can specify width and height with CSS instead --> | ||
<div id="mapdiv" style="width: 90%; height: 600px; margin:auto"></div> | ||
<br /> | ||
<br /> | ||
</div> | ||
</div> | ||
{% include 'footer.html' %} | ||
|
||
{% include 'bottom-links.html' %} | ||
<!-- Your script tags should be placed before the closing body tag. --> | ||
<script type="text/javascript" src="https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js"></script> | ||
<script> | ||
// storymap_data can be an URL or a Javascript object | ||
|
||
//var storymap_data = "{% static "json/StoryMapData.json" %}"; | ||
var storymap_data = "{% static "json/SW_GH1804.json" %}"; | ||
|
||
// certain settings must be passed within a separate options object | ||
var storymap_options = {}; | ||
var storymap = new VCO.StoryMap('mapdiv', storymap_data, storymap_options); | ||
window.onresize = function(event) { | ||
storymap.updateDisplay(); // this isn't automatic | ||
} | ||
</script> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
uwsgi_param QUERY_STRING $query_string; | ||
uwsgi_param REQUEST_METHOD $request_method; | ||
uwsgi_param CONTENT_TYPE $content_type; | ||
uwsgi_param CONTENT_LENGTH $content_length; | ||
|
||
uwsgi_param REQUEST_URI $request_uri; | ||
uwsgi_param PATH_INFO $document_uri; | ||
uwsgi_param DOCUMENT_ROOT $document_root; | ||
uwsgi_param SERVER_PROTOCOL $server_protocol; | ||
uwsgi_param UWSGI_SCHEME $scheme; | ||
|
||
uwsgi_param REMOTE_ADDR $remote_addr; | ||
uwsgi_param REMOTE_PORT $remote_port; | ||
uwsgi_param SERVER_PORT $server_port; | ||
uwsgi_param SERVER_NAME $server_name; |