-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for JSON folder, move albums to XML source folder
- Loading branch information
Showing
10 changed files
with
133 additions
and
132 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
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
gallery-demo/album_sample.xml → gallery-demo/xml/album_sample.xml
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
14 changes: 7 additions & 7 deletions
14
gallery-demo/character_ass.xml → gallery-demo/xml/character_ass.xml
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This XML assocaiates characters (friends) with albums --> | ||
<character_association> | ||
<!-- c_a is character_association; a = album_name; p = photo_id; char_id = c --> | ||
<c_a><a>sample</a><p>2</p><c>3</c></c_a> | ||
<c_a><a>sample</a><p>3</p><c>1</c></c_a> | ||
<c_a><a>sample</a><p>1</p><c>3</c></c_a> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This XML assocaiates characters (friends) with albums --> | ||
<character_association> | ||
<!-- c_a is character_association; a = album_name; p = photo_id; char_id = c --> | ||
<c_a><a>sample</a><p>2</p><c>3</c></c_a> | ||
<c_a><a>sample</a><p>3</p><c>1</c></c_a> | ||
<c_a><a>sample</a><p>1</p><c>3</c></c_a> | ||
</character_association> |
42 changes: 21 additions & 21 deletions
42
gallery-demo/characters.xml → gallery-demo/xml/characters.xml
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<?xml-stylesheet type="text/xsl" href="../xslt/characters.xslt"?> | ||
<!-- This XML lists all characters seen in the albums --> | ||
<characters> | ||
<a> | ||
<char name="a_friend" id="1"> <!-- name is unique for use in filename (name + active); id is unique for character association --> | ||
<first>A</first> <!-- given name --> | ||
<last>Friend</last> <!-- surname --> | ||
<known>grade1</known> <!-- Optional one word. Where did you meet your friend? --> | ||
<active>2006Q2</active> <!-- Year Quarter is when your friends was active for use in filename (i.e. a_friend2006Q2.jpg) --> | ||
</char> | ||
</a> | ||
<h> | ||
<char name="hurray_more" id="3"> | ||
<first>Hurray</first> | ||
<last>More</last> | ||
<nick>Best Friend</nick> | ||
<known>Canadian</known> | ||
<active>2010Q2</active> | ||
</char> | ||
</h> | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<?xml-stylesheet type="text/xsl" href="../../xslt/characters.xslt"?> | ||
<!-- This XML lists all characters seen in the albums --> | ||
<characters> | ||
<a> | ||
<char name="a_friend" id="1"> <!-- name is unique for use in filename (name + active); id is unique for character association --> | ||
<first>A</first> <!-- given name --> | ||
<last>Friend</last> <!-- surname --> | ||
<known>grade1</known> <!-- Optional one word. Where did you meet your friend? --> | ||
<active>2006Q2</active> <!-- Year Quarter is when your friends was active for use in filename (i.e. a_friend2006Q2.jpg) --> | ||
</char> | ||
</a> | ||
<h> | ||
<char name="hurray_more" id="3"> | ||
<first>Hurray</first> | ||
<last>More</last> | ||
<nick>Best Friend</nick> | ||
<known>Canadian</known> | ||
<active>2010Q2</active> | ||
</char> | ||
</h> | ||
</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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml-stylesheet type="text/xsl" href="../xslt/gallery.xslt"?> | ||
<gallery> | ||
<album> | ||
<gallery_id>1</gallery_id> | ||
<album_name>sample</album_name> <!-- unique album name --> | ||
<album_version>1.8</album_version> <!-- note for XML schema reference --> | ||
<sort>1</sort> | ||
<album_h1>Sample</album_h1> <!-- heading 1: album name --> | ||
<album_h2>British Columbia</album_h2> <!-- heading 2: State/Province --> | ||
<year>2001-2005</year> <!-- Year outputted as text in gallery view --> | ||
<filename>2004-01-04-01.jpg</filename> <!-- must start with a four letter year; file must be hosted in the media folder > year folder (i.e. media/2004/2004-01-04-01.jpg) --> | ||
</album> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml-stylesheet type="text/xsl" href="../../xslt/gallery.xslt"?> | ||
<gallery> | ||
<album> | ||
<gallery_id>1</gallery_id> | ||
<album_name>sample</album_name> <!-- unique album name --> | ||
<album_version>1.8</album_version> <!-- note for XML schema reference --> | ||
<sort>1</sort> | ||
<album_h1>Sample</album_h1> <!-- heading 1: album name --> | ||
<album_h2>British Columbia</album_h2> <!-- heading 2: State/Province --> | ||
<year>2001-2005</year> <!-- Year outputted as text in gallery view --> | ||
<filename>2004-01-04-01.jpg</filename> <!-- must start with a four letter year; file must be hosted in the media folder > year folder (i.e. media/2004/2004-01-04-01.jpg) --> | ||
</album> | ||
</gallery> |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<!-- Open this page when not running Node.js --> | ||
<p><b><a href="gallery-demo/gallery.xml">View Photo Galleries</a></b></p> | ||
<ul> | ||
<li><a href="admin">Photo admin</a></li> | ||
<li><a href="https://github.com/danactive/history">GitHub: Download code</a></li> | ||
<li><a href="http://danactive.github.io/history/">Demo site 0.15.0</a></li> | ||
<!-- Open this page when not running Node.js --> | ||
<p><b><a href="gallery-demo/xml/gallery.xml">View Photo Galleries</a></b></p> | ||
<ul> | ||
<li><a href="admin">Photo admin</a></li> | ||
<li><a href="https://github.com/danactive/history">GitHub: Download code</a></li> | ||
<li><a href="http://danactive.github.io/history/">Demo site 0.15.0</a></li> | ||
</ul> |
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 |
---|---|---|
@@ -1,80 +1,80 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> | ||
|
||
<xsl:template match="/"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> | ||
<head> | ||
<title>History - Photo Album Galleries</title> | ||
<script type="text/javascript" src="../js/global.js"></script> | ||
<style type="text/css"> | ||
.album { float: left; width: 185px; height: 170px; padding: 10px; } | ||
.even { background-color: peachpuff; } | ||
.odd { background-color: linen; } | ||
h1 { font-size: 16px; font-family: "Trebuchet MS"; } | ||
h1 a { color: black; text-decoration:none; border-bottom: 1px dotted #666; } | ||
h2 { font-size: 12px; color: #8B7765; font-family: Verdana; } | ||
h3 { font-size: 14px; font-family: "Trebuchet MS"; color: #8B5A2B; margin: 0px; } | ||
</style> | ||
</head> | ||
<body> | ||
<xsl:for-each select="gallery/album"> | ||
<xsl:sort select="sort" data-type="number" /> | ||
<div> | ||
<xsl:attribute name="class"> | ||
<xsl:text>album </xsl:text> | ||
<xsl:choose> | ||
<xsl:when test="position() mod 2"> | ||
<xsl:text>odd</xsl:text> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:text>even</xsl:text> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</xsl:attribute> | ||
<div class="album_img"> | ||
<a> | ||
<xsl:attribute name="href"> | ||
<xsl:text>album_</xsl:text> | ||
<xsl:value-of select="album_name"/> | ||
<xsl:text>.xml</xsl:text> | ||
</xsl:attribute> | ||
<img> | ||
<xsl:attribute name="src"> | ||
<xsl:text>media/thumbs/</xsl:text> | ||
<xsl:value-of select="substring-before(filename,'-')"/> | ||
<xsl:text>/</xsl:text> | ||
<xsl:value-of select="filename"/> | ||
</xsl:attribute> | ||
</img> | ||
</a> | ||
</div> | ||
<h1> | ||
<a> | ||
<xsl:attribute name="href"> | ||
<xsl:text>album_</xsl:text> | ||
<xsl:value-of select="album_name"/> | ||
<xsl:text>.xml</xsl:text> | ||
</xsl:attribute> | ||
<xsl:value-of select="album_h1"/> | ||
</a> | ||
</h1> | ||
<h2> | ||
<xsl:value-of select="album_h2"/> | ||
</h2> | ||
<xsl:if test="year != 'none'"> | ||
<h3> | ||
<xsl:value-of select="year" /> | ||
|
||
<xsl:if test="album_version >= 1.5"> | ||
<xsl:text> (Map)</xsl:text> | ||
</xsl:if> | ||
</h3> | ||
</xsl:if> | ||
</div> | ||
</xsl:for-each> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> | ||
|
||
<xsl:template match="/"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> | ||
<head> | ||
<title>History - Photo Album Galleries</title> | ||
<script type="text/javascript" src="../../js/global.js"></script> | ||
<style type="text/css"> | ||
.album { float: left; width: 185px; height: 170px; padding: 10px; } | ||
.even { background-color: peachpuff; } | ||
.odd { background-color: linen; } | ||
h1 { font-size: 16px; font-family: "Trebuchet MS"; } | ||
h1 a { color: black; text-decoration:none; border-bottom: 1px dotted #666; } | ||
h2 { font-size: 12px; color: #8B7765; font-family: Verdana; } | ||
h3 { font-size: 14px; font-family: "Trebuchet MS"; color: #8B5A2B; margin: 0px; } | ||
</style> | ||
</head> | ||
<body> | ||
<xsl:for-each select="gallery/album"> | ||
<xsl:sort select="sort" data-type="number" /> | ||
<div> | ||
<xsl:attribute name="class"> | ||
<xsl:text>album </xsl:text> | ||
<xsl:choose> | ||
<xsl:when test="position() mod 2"> | ||
<xsl:text>odd</xsl:text> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:text>even</xsl:text> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</xsl:attribute> | ||
<div class="album_img"> | ||
<a> | ||
<xsl:attribute name="href"> | ||
<xsl:text>album_</xsl:text> | ||
<xsl:value-of select="album_name"/> | ||
<xsl:text>.xml</xsl:text> | ||
</xsl:attribute> | ||
<img> | ||
<xsl:attribute name="src"> | ||
<xsl:text>../media/thumbs/</xsl:text> | ||
<xsl:value-of select="substring-before(filename,'-')"/> | ||
<xsl:text>/</xsl:text> | ||
<xsl:value-of select="filename"/> | ||
</xsl:attribute> | ||
</img> | ||
</a> | ||
</div> | ||
<h1> | ||
<a> | ||
<xsl:attribute name="href"> | ||
<xsl:text>album_</xsl:text> | ||
<xsl:value-of select="album_name"/> | ||
<xsl:text>.xml</xsl:text> | ||
</xsl:attribute> | ||
<xsl:value-of select="album_h1"/> | ||
</a> | ||
</h1> | ||
<h2> | ||
<xsl:value-of select="album_h2"/> | ||
</h2> | ||
<xsl:if test="year != 'none'"> | ||
<h3> | ||
<xsl:value-of select="year" /> | ||
|
||
<xsl:if test="album_version >= 1.5"> | ||
<xsl:text> (Map)</xsl:text> | ||
</xsl:if> | ||
</h3> | ||
</xsl:if> | ||
</div> | ||
</xsl:for-each> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |