Skip to content

Commit

Permalink
change sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisLambrechts committed Jan 10, 2025
1 parent f39f2b5 commit 11339fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/base/view/omeka/site/item/show.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,18 @@ endif;
<?php $pus = array();?>
<?php foreach($item->value("alamire:relatedProductionUnit", ['all' => true]) as $pu):?>
<?php $pu = $pu->valueResource();?>
<?php if($pu):?>
<?php $pus[$pu->value("alamire:sequence").''] = $pu;?>
<?php if($pu):?>
<?php $pus[$pu->value("alamire:identifier").''] = $pu;?>
<?php endif;?>
<?php endforeach;?>

<div class="values">
<?php ksort($pus);?>
<?php //ksort($pus);?>
<?php foreach($pus as $pu):?>
<div class="value resource items" lang="">
<?php echo $pu->displayTitle();?>
<a class="resource-link" target="_blank" href="<?php echo $pu->value("alamire:fileID");?>" style="font-style:italic;">
<?php echo $pu->value("alamire:pageFolio");?>>
<?php echo $pu->value("alamire:pageFolio");?>
</a>
</div>
<?php endforeach;?>
Expand Down

0 comments on commit 11339fd

Please sign in to comment.