Skip to content

Instantly share code, notes, and snippets.

View tonyahowe's full-sized avatar

Tonya Howe tonyahowe

View GitHub Profile
This file has been truncated, but you can view the full file.
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META HTTP-EQUIV="Generator" CONTENT="OmniPage 18"></META>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"></META>
<LINK type="text/css" href="test9.css" rel="stylesheet"></LINK>
<SCRIPT>
<!--
var reloaded = 0;
if (navigator.userAgent.indexOf("MSIE")==-1)
@tonyahowe
tonyahowe / aww.xml
Created September 2, 2014 23:07
NiC Project: Sample XML the app is set up to work with
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="sha-aww">
<teiHeader>
<fileDesc>
<titleStmt>
<title>All's Well That Ends Well</title>
<author>William Shakespeare</author>
<respStmt>
<name>Craig A. Berry, Martin Mueller, and Clifford Wulfman</name>
<resp>editors</resp>
</respStmt>
@tonyahowe
tonyahowe / johnson.xml
Last active August 29, 2015 14:06
NiC Project: Working XML
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="johns-ramb4">
<teiHeader>
<fileDesc>
<titleStmt>
<title type="statusBar">The Rambler No. 4</title>
<author>Samuel Johnson</author>
<respStmt>
<resp>Transcription, correction, editorial commentary, and markup</resp>
<name>Tonya Howe</name>
</respStmt>
@tonyahowe
tonyahowe / tei2html.xql
Last active August 29, 2015 14:06
NiC Project: TEI to HTML transformation
module namespace tei2="http://exist-db.org/xquery/app/tei2html";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare function tei2:tei2html($nodes as node()*) {
for $node in $nodes
return
typeswitch ($node)
case text() return
$node
@tonyahowe
tonyahowe / app.xql
Last active August 29, 2015 14:06
NiC Project: Main Application
xquery version "3.0";
module namespace app="http://exist-db.org/apps/";
import module namespace templates="http://exist-db.org/xquery/templates";
import module namespace config="http://exist-db.org/apps/NiC/config" at "config.xqm";
import module namespace tei2="http://exist-db.org/xquery/app/tei2html" at "tei2html.xql";
import module namespace kwic="http://exist-db.org/xquery/kwic" at "resource:org/exist/xquery/lib/kwic.xql";
(:~
@tonyahowe
tonyahowe / index.html
Created September 11, 2014 00:16
NiC index page
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="main">
<form action="search.html" class="form form-horizontal">
<div class="col-md-3 col-md-push-9">
<div class="well well-sm">
<div class="form-group">
<div class="col-md-12 col-xs-12">
<span class="input-group">
<input name="query" type="search" class="templates:form-control form-control" placeholder="Search String"/>
<span class="input-group-btn">
<button id="f-btn-search" type="submit" class="btn btn-primary">
@tonyahowe
tonyahowe / templates.xql
Created September 10, 2014 22:23
The templates file (?) stored in a different directory.
xquery version "3.0";
(:~
: HTML templating module
:
: @version 2.1
: @author Wolfgang Meier
: @contributor Adam retter
:)
module namespace templates="http://exist-db.org/xquery/templates";
@tonyahowe
tonyahowe / exist log
Created October 2, 2014 15:22
Exist log
This file has been truncated, but you can view the full file.
2014-10-01 16:49:11,592 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:406) - Authentication try for 'admin'.
2014-10-01 16:49:11,593 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:449) - Authenticated by 'exist' as '[auth] <account name="admin" id="1048574"><group name="dba" id="1048575"><manager name="admin"/></group></account>'.
2014-10-01 16:49:11,594 [eXistThread-191] DEBUG (XQuery.java [execute]:300) - Execution took 64 ms
2014-10-01 16:49:11,594 [eXistThread-191] DEBUG (HTTPUtils.java [addLastModifiedHeader]:63) - mostRecentDocumentTime: 0
2014-10-01 16:49:11,595 [eXistThread-191] DEBUG (HttpRequestWrapper.java [<init>]:142) - Retrieved 0 parameters.
2014-10-01 16:49:11,596 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:406) - Authentication try for 'admin'.
2014-10-01 16:49:11,596 [eXistThread-191] DEBUG (SecurityManagerImpl.java [authenticate]:449) - Authenticated by 'exist' as '[auth] <account name="admin" id="1048574"><group name="dba" id=
@tonyahowe
tonyahowe / author.php
Created May 7, 2012 15:37
Author Template
<?php get_header(); ?>
<?php if( brunelleschi_option('sidebar') === 'both'
|| brunelleschi_option('sidebar') === 'two left'
|| brunelleschi_option('sidebar') === 'two right'){
get_sidebar('secondary');
} ?>
<div id="main" role="main" class="<?php brunelleschi_content_class(); ?>">
<?php
if ( have_posts() )
the_post();
@tonyahowe
tonyahowe / loop.php
Created May 7, 2012 15:33
Getting Loopy
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-above" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'brunelleschi' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'brunelleschi' ) ); ?></div>
</nav><!-- #nav-above -->
<?php endif; ?>
<?php if ( ! have_posts() ) : ?>
<div id="post-0" class="post error404 not-found">
<h1 class="entry-title"><?php _e( 'Not Found', 'brunelleschi' ); ?></h1>