@@ -57,7 +57,7 @@ function print_rdf($rdf, $tabs=0, $ns=array(), $hide=array(), $aria=false, $forc
57
57
if (in_array ($ p , $ hide )) continue ;
58
58
foreach ($ values as $ value ) {
59
59
if (isURL ($ value ['value ' ]) && !in_array (toNS ($ p ,$ ns ), $ force_literal )) {
60
- $ str = '<a class="metadata" aria-hidden=" ' .(($ aria )?'false ' :'true ' ).'" rel=" ' .toNS ($ p ,$ ns ).'" href=" ' .htmlspecialchars ($ value ['value ' ]).'"></a> ' ."\n" ;
60
+ $ str = '<a class="metadata" tabindex="-1" aria-hidden=" ' .(($ aria )?'false ' :'true ' ).'" rel=" ' .toNS ($ p ,$ ns ).'" href=" ' .htmlspecialchars ($ value ['value ' ]).'"></a> ' ."\n" ;
61
61
} else {
62
62
$ str = '<span class="metadata" aria-hidden=" ' .(($ aria )?'false ' :'true ' ).'" property=" ' .toNS ($ p ,$ ns ).'"> ' .$ value ['value ' ].'</span> ' ."\n" ;
63
63
}
@@ -203,41 +203,41 @@ function print_rdf($rdf, $tabs=0, $ns=array(), $hide=array(), $aria=false, $forc
203
203
<!-- Book -->
204
204
<span resource="<?= rtrim ($ base_uri ,'/ ' )?> " typeof="scalar:Book">
205
205
<span property="dcterms:title" content="<?= htmlspecialchars (strip_tags ($ book ->title ))?> "><a id="book-title" href="<?= $ base_uri?> index"><?= $ book ->title ?> <?= (isset ($ book ->subtitle )&&!empty ($ book ->subtitle ))?'<span class="subtitle">: ' .$ book ->subtitle .'</span> ' :'' ?> </a></span>
206
- <? if (isset ($ page ->slug )) echo ' <a class="metadata" aria-hidden="true" rel="dcterms:hasPart" href=" ' .$ base_uri .$ page ->slug .'"></a> ' ."\n" ; ?>
207
- <a class="metadata" aria-hidden="true" rel="dcterms:tableOfContents" href="<?= $ base_uri?> toc"></a>
206
+ <? if (isset ($ page ->slug )) echo ' <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:hasPart" href=" ' .$ base_uri .$ page ->slug .'"></a> ' ."\n" ; ?>
207
+ <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:tableOfContents" href="<?= $ base_uri?> toc"></a>
208
208
<?
209
209
foreach ($ book ->contributors as $ contrib ):
210
210
if (empty ($ contrib ->list_in_index )) continue ;
211
- echo ' <a class="metadata" aria-hidden="true" rel="sioc:has_owner" href=" ' .$ base_uri .'users/ ' .$ contrib ->user_id .$ this ->rdf_object ->annotation_append ($ contrib ).'"></a> ' ."\n" ;
211
+ echo ' <a class="metadata" tabindex="-1" aria-hidden="true" rel="sioc:has_owner" href=" ' .$ base_uri .'users/ ' .$ contrib ->user_id .$ this ->rdf_object ->annotation_append ($ contrib ).'"></a> ' ."\n" ;
212
212
endforeach ;
213
213
?>
214
- <? echo (($ publisher ||$ publisher_thumbnail ) ? ' <a class="metadata" aria-hidden="true" rel="dcterms:publisher" href=" ' .$ base_uri .'publisher"></a> ' ."\n" : '' )?>
214
+ <? echo (($ publisher ||$ publisher_thumbnail ) ? ' <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:publisher" href=" ' .$ base_uri .'publisher"></a> ' ."\n" : '' )?>
215
215
<?
216
216
if (!empty ($ book ->editions )):
217
217
for ($ j = count ($ book ->editions )-1 ; $ j >= 0 ; $ j --):
218
- echo ' <a class="metadata" aria-hidden="true" rel="scalar:hasEdition" href=" ' .base_url ().$ book ->slug .'. ' .($ j +1 ).'"></a> ' ."\n" ;
218
+ echo ' <a class="metadata" tabindex="-1" aria-hidden="true" rel="scalar:hasEdition" href=" ' .base_url ().$ book ->slug .'. ' .($ j +1 ).'"></a> ' ."\n" ;
219
219
endfor ;
220
220
endif ;
221
221
?>
222
222
</span>
223
223
<span aria-hidden="true" resource="<?= $ base_uri?> toc" typeof="scalar:Page">
224
224
<span class="metadata" property="dcterms:title">Main Menu</span>
225
225
<? for ($ j = 0 ; $ j < count ($ book ->versions ); $ j ++): ?>
226
- <a class="metadata" rel="dcterms:references" href="<?= $ base_uri .$ book ->versions [$ j ]->slug ?> #index=<?= ($ j +1 )?> "></a>
226
+ <a class="metadata" tabindex="-1" rel="dcterms:references" href="<?= $ base_uri .$ book ->versions [$ j ]->slug ?> #index=<?= ($ j +1 )?> "></a>
227
227
<? endfor ;?>
228
228
</span>
229
229
<? for ($ j = 0 ; $ j < count ($ book ->versions ); $ j ++):
230
230
if (empty ($ book ->versions [$ j ]->content_id )) continue ;
231
231
if ($ book ->versions [$ j ]->content_id == @$ page ->content_id ) continue ;
232
232
?>
233
233
<span aria-hidden="true" resource="<?= $ base_uri .$ book ->versions [$ j ]->slug ?> " typeof="scalar:<?= ('media ' ==$ book ->versions [$ j ]->type )?'Media ' :'Composite ' ?> ">
234
- <a class="metadata" rel="dcterms:hasVersion" href="<?= $ base_uri .$ book ->versions [$ j ]->slug .'. ' .$ book ->versions [$ j ]->versions [0 ]->version_num ?> "></a>
235
- <a class="metadata" rel="dcterms:isPartOf" href="<?= rtrim ($ base_uri ,'/ ' )?> "></a>
234
+ <a class="metadata" tabindex="-1" rel="dcterms:hasVersion" href="<?= $ base_uri .$ book ->versions [$ j ]->slug .'. ' .$ book ->versions [$ j ]->versions [0 ]->version_num ?> "></a>
235
+ <a class="metadata" tabindex="-1" rel="dcterms:isPartOf" href="<?= rtrim ($ base_uri ,'/ ' )?> "></a>
236
236
</span>
237
237
<span aria-hidden="true" resource="<?= $ base_uri .$ book ->versions [$ j ]->slug .'. ' .$ book ->versions [$ j ]->versions [0 ]->version_num ?> " typeof="scalar:Version">
238
238
<span class="metadata" property="dcterms:title"><?= $ book ->versions [$ j ]->versions [0 ]->title ?> </span>
239
239
<span class="metadata" property="dcterms:description"><?= $ book ->versions [$ j ]->versions [0 ]->description ?> </span>
240
- <a class="metadata" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ book ->versions [$ j ]->slug ?> "></a>
240
+ <a class="metadata" tabindex="-1" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ book ->versions [$ j ]->slug ?> "></a>
241
241
</span>
242
242
<?
243
243
endfor ;
@@ -251,7 +251,7 @@ function print_rdf($rdf, $tabs=0, $ns=array(), $hide=array(), $aria=false, $forc
251
251
?>
252
252
<span aria-hidden="true" resource="<?= $ base_uri?> publisher" typeof="scalar:Page">
253
253
<span class="metadata" property="dcterms:title"><?= $ publisher?> </span>
254
- <? if ($ publisher_thumbnail ): echo ' <a class="metadata" rel="art:thumbnail" href=" ' .abs_url ($ publisher_thumbnail , base_url ().$ book ->slug ).'"></a> ' ."\n" ; endif ; ?>
254
+ <? if ($ publisher_thumbnail ): echo ' <a class="metadata" tabindex="-1" rel="art:thumbnail" href=" ' .abs_url ($ publisher_thumbnail , base_url ().$ book ->slug ).'"></a> ' ."\n" ; endif ; ?>
255
255
</span>
256
256
<? endif ; ?>
257
257
<?
@@ -277,15 +277,15 @@ function print_rdf($rdf, $tabs=0, $ns=array(), $hide=array(), $aria=false, $forc
277
277
?>
278
278
<h1 property="dcterms:title"><?= $ title?> </h1>
279
279
<span resource="<?= $ base_uri .$ page ->slug ?> " typeof="scalar:<?= ('media ' ==$ page ->type )?'Media ' :'Composite ' ?> ">
280
- <a class="metadata" aria-hidden="true" rel="dcterms:hasVersion" href="<?= $ base_uri .$ page ->slug .'. ' .$ page ->versions [$ page ->version_index ]->version_num ?> "></a>
281
- <a class="metadata" aria-hidden="true" rel="dcterms:isPartOf" href="<?= rtrim ($ base_uri ,'/ ' )?> "></a>
280
+ <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:hasVersion" href="<?= $ base_uri .$ page ->slug .'. ' .$ page ->versions [$ page ->version_index ]->version_num ?> "></a>
281
+ <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:isPartOf" href="<?= rtrim ($ base_uri ,'/ ' )?> "></a>
282
282
<? print_rdf ($ this ->pages ->rdf ($ page , $ base_uri ), 3 , $ ns ); ?>
283
283
</span>
284
284
<span resource="<?= $ page ->user ->uri ?> " typeof="foaf:Person">
285
285
<? print_rdf ($ this ->users ->rdf ($ page ->user , $ base_uri ), 3 , $ ns ); ?>
286
286
</span>
287
287
<span class="metadata" aria-hidden="true" id="book-id"><?= $ book ->book_id ?> </span>
288
- <a class="metadata" aria-hidden="true" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ page ->slug ?> "></a>
288
+ <a class="metadata" tabindex="-1" aria-hidden="true" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ page ->slug ?> "></a>
289
289
<?
290
290
print_rdf ($ this ->versions ->rdf ($ page ->versions [$ page ->version_index ], $ base_uri ), 2 , $ ns , array ('sioc:content ' ));
291
291
?>
@@ -298,14 +298,14 @@ function print_rdf($rdf, $tabs=0, $ns=array(), $hide=array(), $aria=false, $forc
298
298
?>
299
299
<span aria-hidden="true" resource="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug ?> " typeof="scalar:<?= ('media ' ==$ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->type )?'Media ' :'Composite ' ?> ">
300
300
<span class="metadata" class="color" style="background-color:<?= $ page ->versions [$ page ->version_index ]->continue_to [0 ]->color ?> " property="scalar:color" content="<?= $ page ->versions [$ page ->version_index ]->continue_to [0 ]->color ?> "></span>
301
- <a class="metadata" rel="dcterms:hasVersion" href="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug .'. ' .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->version_num ?> "></a>
301
+ <a class="metadata" tabindex="-1" rel="dcterms:hasVersion" href="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug .'. ' .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->version_num ?> "></a>
302
302
</span>
303
303
<span aria-hidden="true" resource="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug .'. ' .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->version_num ?> " typeof="scalar:Version">
304
304
<span property="dcterms:title" content="<?= htmlspecialchars ($ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->title )?> ">
305
305
<a href="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug ?> "><?= $ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->title ?> </a>
306
306
</span>
307
307
<span class="metadata" property="dcterms:description"><?= $ page ->versions [$ page ->version_index ]->continue_to [0 ]->versions [$ page ->versions [$ page ->version_index ]->continue_to [0 ]->version_index ]->description ?> </span>
308
- <a class="metadata" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug ?> "></a>
308
+ <a class="metadata" tabindex="-1" rel="dcterms:isVersionOf" href="<?= $ base_uri .$ page ->versions [$ page ->version_index ]->continue_to [0 ]->slug ?> "></a>
309
309
</span>
310
310
<?
311
311
endif ;
0 commit comments