Skip to content

Commit 08ec360

Browse files
Changing the hierarchy of headings
1 parent 43fc0dd commit 08ec360

30 files changed

+5802
-1273
lines changed

404.html

+23-16
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" type="text/css" href="resources/css/starter-template.css"/>
1111
<link rel="stylesheet" type="text/css" href="resources/css/style.css"/>
1212
<!-- Matomo -->
13-
<script type="text/javascript">
13+
<script>
1414
  var _paq = _paq || [];
1515
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
1616
  _paq.push(['trackPageView']);
@@ -35,45 +35,52 @@
3535
<span class="icon-bar"/>
3636
<span class="icon-bar"/>
3737
</button>
38-
<img class="beta-image" src="../beta.png" alt="beta"/>
38+
<img class="beta-image" src="https://www.manuscripta.se/beta.png" alt="beta"/>
3939
<a class="navbar-brand" href="/">Home</a>
4040
</div>
4141
<div class="collapse navbar-collapse">
4242
<ul class="nav navbar-nav">
4343
<li class="dropdown">
44-
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Collections <b class="caret"/>
44+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Browse <b class="caret"/>
4545
</a>
4646
<ul class="dropdown-menu">
4747
<li>
48-
<a href="/greek">Greek manuscripts</a>
48+
<a href="/browse/manuscripts">All manuscripts</a>
4949
</li>
5050
<li>
51-
<a href="/fornsvenska">Old Swedish manuscripts</a>
51+
<a href="/browse/manuscripts/greek">Greek manuscripts</a>
52+
</li>
53+
<li>
54+
<a href="/browse/manuscripts/swedish">Old Swedish manuscripts</a>
5255
</li>
5356
</ul>
5457
</li>
55-
</ul>
56-
<ul class="nav navbar-nav">
5758
<li class="dropdown">
58-
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Browse <b class="caret"/>
59+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Digitizations <b class="caret"/>
5960
</a>
6061
<ul class="dropdown-menu">
6162
<li>
62-
<a href="/browse/manuscripts">Manuscripts</a>
63+
<a href="/mirador_greek">Greek Manuscripts</a>
6364
</li>
6465
<li>
65-
<a href="/browse/authors">Authors and Works</a>
66+
<a href="/mirador_ttt">Old Swedish Manuscripts</a>
6667
</li>
67-
<li>
68-
<a href="/browse/incipits">Incipits</a>
69-
</li>
70-
</ul>
68+
</ul>
7169
</li>
7270
<li>
7371
<a href="/search">Search</a>
7472
</li>
75-
<li>
76-
<a href="/guidelines">Guidelines</a>
73+
<li class="dropdown">
74+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About <b class="caret"/>
75+
</a>
76+
<ul class="dropdown-menu">
77+
<li>
78+
<a href="/greek">Greek manuscripts</a>
79+
</li>
80+
<li>
81+
<a href="/swedish">Old Swedish manuscripts</a>
82+
</li>
83+
</ul>
7784
</li>
7885
<li>
7986
<a href="/contact">Contact</a>

KB-medeltida.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
2+
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/browse.html" data-template-at="content">
33
<div class="row">
44
<div class="col-md-12">
55
<h3 class="page-header">KB:s medeltida handskrifter (före 1550)</h3>

controller.xql

+28
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,22 @@ else if (matches($exist:path, '^/org/\d+$')) then
120120
<forward url="{$exist:controller}/modules/view.xql"/>
121121
</error-handler>
122122
</dispatch>
123+
124+
else if (matches($exist:path, '^/work/\d+$')) then
125+
let $id := $exist:resource
126+
return
127+
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
128+
<forward url="{$exist:controller}/view_work.html"/>
129+
<view>
130+
<forward url="{$exist:controller}/modules/view.xql">
131+
<add-parameter name="work" value="{$id}.xml"/>
132+
</forward>
133+
</view>
134+
<error-handler>
135+
<forward url="{$exist:controller}/404.html" method="get"/>
136+
<forward url="{$exist:controller}/modules/view.xql"/>
137+
</error-handler>
138+
</dispatch>
123139
(:else if (matches($exist:path, '^/xml/\d+$')) then:)
124140
else if (matches($exist:path, '^/ms/\d+\.xml$')) then
125141
let $id := $exist:resource
@@ -176,6 +192,18 @@ else if (matches($exist:path, '^/ms/\d+\.xml$')) then
176192
</error-handler>
177193
</dispatch>
178194

195+
else if (matches($exist:path, '^/work/\d+\.xml$')) then
196+
let $id := $exist:resource
197+
return
198+
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
199+
<forward url="{$exist:controller}/data/id/work/{$id}"/>
200+
<error-handler>
201+
<forward url="{$exist:controller}/404.html" method="get"/>
202+
<forward url="{$exist:controller}/modules/view.xql"/>
203+
</error-handler>
204+
</dispatch>
205+
206+
179207
else if ($exist:path eq "/guidelines") then
180208
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
181209
<forward url="{concat($exist:controller, "/guidelines.html")}"/>

greek_manuscripts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-at="content" data-template-with="templates/page.html">
33
<div class="row">
44
<div class="col-xs-12 col-sm-10 col-md-8 col-lg-6">
5-
<h2 class="page-header">Greek Manuscripts in Sweden</h2>
5+
<h1 class="page-header">Greek Manuscripts in Sweden</h1>
66
<p>Welcome to the project homepage of <em>Greek Manuscripts in Sweden</em>. The aim of this project is to digitize and catalogue all the Greek manuscripts in Sweden. Around 130 Greek manuscripts are kept in Swedish libraries, but only a few of them have up to now been available in digital form online. Libraries that contribute material to the database include Gothenburg University Library (4 MSS), Linköping Diocesan Library (32 MSS), Lund University Library (5 MSS), National Archives (2 MSS), National Library, Stockholm (7 MSS), Nationalmuseum, Stockholm (1 MS), The Skokloster Castle Library (1 MSS), and Uppsala University Library (78 MSS). The project is run by two researchers, Dr. Eva Nyström and Dr. Patrik Granholm, in collaboration with photographers and computer specialists at Uppsala University Library. The Central Bank of
77
Sweden Tercentenary Foundation has contributed financial support.</p>
88
<p>The Greek manuscripts, in the form of bound parchment and paper volumes, include a rich and diverse collection of texts from antiquity and the Byzantine period. They originate mainly from the Byzantine cultural area from the tenth century onwards, but some are Renaissance or early modern manuscripts from Western Europe. The existing nineteenth-century catalogue is outdated and in many cases incorrect. Furthermore it does not cover all manuscripts. It is therefore essential to create a new catalogue according to modern principles, including detailed codicological descriptions. Combined with a comprehensive digitization of the manuscripts this will facilitate and encourage new research on the material among Swedish and international scholars. The catalogue will be fully searchable by the encoding in <abbr title="Text Encoding Initiative" class="initialism">TEI P5</abbr>, which is an XML-based metadata standard for manuscript cataloguing.</p>

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-at="content" data-template-with="templates/page.html">
33
<div class="row">
44
<div class="col-xs-12 col-sm-12 col-md-10 col-lg-offset-2 col-lg-7">
5-
<h3 class="page-header">Manuscripta – A Digital Catalogue of Manuscripts in Sweden</h3>
5+
<h1 class="page-header">Manuscripta – A Digital Catalogue of Manuscripts in Sweden</h1>
66
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="10000">
77
<!-- Indicators -->
88
<ol class="carousel-indicators">
@@ -61,8 +61,8 @@ <h4>Uppsala University Library, Gr. 1, f. 156v</h4>
6161
</a>
6262
</div>
6363
<div>
64-
<h3>Collections</h3>
65-
<p>Manuscripta.se is a digital catalogue of medieval and early modern manuscripts kept in Swedish libraries. The database currently contains descriptions and full digitizations of <a href="browse/manuscripts/greek">130 Greek manuscripts</a>: Gothenburg University Library (4), Linköping Diocesan Library (32), Lund University Library (5), National Archives, Stockholm (2), National Library, Stockholm (7), Nationalmuseum, Stockholm (1), The Skokloster Castle Library (1), and Uppsala University Library (78). The database also contains descriptions of <a href="browse/manuscripts/ttt">34 Old Swedish manuscripts</a>. Next year (2019) around 300 Old Swedish manuscripts will be added to the database.</p>
64+
<h2>Collections</h2>
65+
<p>Manuscripta.se is a digital catalogue of medieval and early modern manuscripts kept in Swedish libraries. The database currently contains descriptions and full digitizations of <a href="browse/manuscripts/greek">130 Greek manuscripts</a>: Gothenburg University Library (4), Linköping Diocesan Library (32), Lund University Library (5), National Archives, Stockholm (2), National Library, Stockholm (7), Nationalmuseum, Stockholm (1), The Skokloster Castle Library (1), and Uppsala University Library (78). The database also contains descriptions of <a href="browse/manuscripts/swedish">233 medieval old Swedish manuscripts</a>: National Library, Stockholm (153), The Rogge Library, Strängnäs (1), Uppsala University Library (79).</p>
6666
</div>
6767
<div>
6868
<img src="resources/images/logo_rj.svg" class="logotype" alt="Riksbankens jubileumsfonds logotyp"/>

manuscripts-greek.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
2+
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/browse.html" data-template-at="content">
33
<div class="row">
44
<div class="col-md-12">
5-
<h3 class="page-header">Greek Manuscripts</h3>
5+
<h1 class="page-header">Greek Manuscripts</h1>
66
<!--<div class="input-group-btn pull-left">
77
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Sort <span class="caret"/>
88
</button>
@@ -26,13 +26,13 @@ <h3 class="page-header">Greek Manuscripts</h3>
2626
<table id="manuscripts" class="tablesorter">
2727
<thead>
2828
<tr>
29-
<th width="15%">Repository</th>
29+
<th class="filter-select" width="15%">Repository</th>
3030
<th width="10%">Shelfmark</th>
3131
<th width="10%">Date</th>
32-
<th width="10%">Support</th>
33-
<th width="10%">Language</th>
32+
<th class="filter-select" width="10%">Support</th>
33+
<th class="filter-select" width="10%">Language</th>
3434
<th width="40%">Summary</th>
35-
<th width="5%">Digitized</th>
35+
<th class="filter-select" width="5%">Digitized</th>
3636
</tr>
3737
</thead>
3838
<tbody data-template="browse:list-greek-manuscripts"/>

manuscripts-swedish.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
2+
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/browse.html" data-template-at="content">
33
<div class="row">
44
<div class="col-md-12">
5-
<h3 class="page-header">Old Swedish Manuscripts</h3>
5+
<h1 class="page-header">Old Swedish Manuscripts</h1>
66
<!--<div class="input-group-btn pull-left">
77
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Sort <span class="caret"/>
88
</button>
@@ -26,13 +26,13 @@ <h3 class="page-header">Old Swedish Manuscripts</h3>
2626
<table id="manuscripts" class="tablesorter">
2727
<thead>
2828
<tr>
29-
<th width="15%">Repository</th>
29+
<th class="filter-select" width="15%">Repository</th>
3030
<th width="10%">Shelfmark</th>
3131
<th width="10%">Date</th>
32-
<th width="10%">Support</th>
33-
<th width="10%">Language</th>
32+
<th class="filter-select" width="10%">Support</th>
33+
<th class="filter-select" width="10%">Language</th>
3434
<th width="40%">Summary</th>
35-
<th width="5%">Digitized</th>
35+
<th class="filter-select" width="5%">Digitized</th>
3636
</tr>
3737
</thead>
3838
<tbody data-template="browse:list-ttt-manuscripts"/>

manuscripts.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
2+
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/browse.html" data-template-at="content">
33
<div class="row">
44
<div class="col-md-12">
5-
<h3 class="page-header">Manuscripts</h3>
5+
<h1 class="page-header">Manuscripts</h1>
66
<!--<div class="input-group-btn pull-left">
77
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Sort <span class="caret"/>
88
</button>

modules/browse.xql

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function browse:list-greek-manuscripts($node as node(), $model as map(*)){
137137
order by $repository, $shelfmark collation "http://www.w3.org/2013/collation/UCA?numeric=yes"
138138
return
139139
<tr>
140-
<td>{$repository}</td>
140+
<td class="repository filter-select">{if ($repository='Kungliga biblioteket') then 'National Library' else if ($repository='Uppsala universitetsbibliotek') then 'Uppsala University Library' else $repository}</td>
141141
<td><a href="/ms/{substring-before($uri, '.xml')}">{$shelfmark}</a></td>
142142
<td>{$date}</td>
143143
<td>{$support}</td>
@@ -166,7 +166,7 @@ function browse:list-ttt-manuscripts($node as node(), $model as map(*)){
166166
order by $repository, $shelfmark collation "http://www.w3.org/2013/collation/UCA?numeric=yes"
167167
return
168168
<tr>
169-
<td>{$repository}</td>
169+
<td class="repository filter-select">{if ($repository='Kungliga biblioteket') then 'National Library' else if ($repository='Uppsala universitetsbibliotek') then 'Uppsala University Library' else $repository}</td>
170170
<td><a href="/ms/{substring-before($uri, '.xml')}">{$shelfmark}</a></td>
171171
<td>{$date}</td>
172172
<td>{$support}</td>

modules/search.xql

+5-4
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,23 @@ function search:beta_search($node as node(), $model as map(*)) {
124124

125125
else if ($mode eq 'person') then
126126
for $hit in $mss//tei:persName[ft:query(., $query)]
127-
let $context := $hit/name(parent::*)
127+
let $context := if ($hit/ancestor::tei:msContents) then 'Contents' else if ($hit/ancestor::tei:physDesc) then 'Physical description' else if ($hit/ancestor::tei:history) then 'History' else if ($hit/ancestor::tei:additional) then 'Bibliography' else 'Metadata'
128128
order by $hit ascending
129129
return
130130
<tr>
131-
<td>{kwic:summarize($hit, <config xmlns="" width="100"/>)} ({$context})</td>
131+
<td>{kwic:summarize($hit, <config xmlns="" width="100"/>)} (&#8680; {$context})</td>
132132
<td>{$repository}</td>
133133
<td><a href="{substring-before($uri, '.xml')}">{$shelfmark}</a></td>
134134
</tr>
135135

136136
else if ($mode eq 'place') then
137137
for $hit in $mss//tei:msDesc//tei:placeName[ft:query(., $query)]
138-
let $context := $hit/name(parent::*)
138+
(:let $context := $hit/name(parent::*):)
139+
let $context := if ($hit/ancestor::tei:msContents) then 'Contents' else if ($hit/ancestor::tei:physDesc) then 'Physical description' else if ($hit/ancestor::tei:history) then 'History' else if ($hit/ancestor::tei:additional) then 'Bibliography' else 'Metadata'
139140
order by $hit ascending
140141
return
141142
<tr>
142-
<td>{kwic:summarize($hit, <config xmlns="" width="100"/>)} ({$context})</td>
143+
<td>{kwic:summarize($hit, <config xmlns="" width="100"/>)} (&#8680; {$context})</td>
143144
<td>{$repository}</td>
144145
<td><a href="{substring-before($uri, '.xml')}">{distinct-values($shelfmark)}</a></td>
145146
</tr>

0 commit comments

Comments
 (0)