Hi,
We cannot follow the links you provide because you provided a local address (localhost:8080) and not a URL accessible to everyone from the internet.
That being said, the reason you get an error page when you click "Source" is because the page template for an "object lots" is probably not present in your theme. This file should be placed in pawtucket /themes/<your_theme>/views/Details
(where <your_theme> is replaced by the name of the directory of your theme; default is "default" theme) with name ca_object_lots_default_html.php
Also, you need to add this part in the detail.conf file:
object_lots = {
displayName = _(Object Lots),
table = ca_object_lots,
restrictToTypes = [],
options = {
nextLink = <i class='fa fa-angle-right'></i><div class='small'>Suivant</div>,
previousLink = <i class='fa fa-angle-left'></i><div class='small'>Précédent</div>,
resultsLink = <i class='fa fa-angle-double-left'></i><div class='small'>Retour</div>,
enableComments = 0,
enableShare = 0,
enablePDF = 0,
}
},
at the same level as objects = {...}
or entities = {...}
.
In the ca_objects_default_html.php
, you can display ^ca_object_lots.preferred_labels
or you can replace it by ^ca_object_lots.description
if this metadata is more explicit concerning your lots than only the preferred_labels.
(Of course, check the visible status of your object_lots.)
Here is an example of a ca_object_lots_default_html.php
file:
<?php
$t_item = $this->getVar("item");
$va_comments = $this->getVar("comments");
$vn_comments_enabled = $this->getVar("commentsEnabled");
$vn_share_enabled = $this->getVar("shareEnabled");
?>
<div class="row">
<div class='col-xs-12 navTop'><!--- only shown at small screen size -->
{{{previousLink}}}{{{resultsLink}}}{{{nextLink}}}
</div><!-- end detailTop -->
<div class='navLeftRight col-xs-1 col-sm-1 col-md-1 col-lg-1'>
<div class="detailNavBgLeft">
{{{previousLink}}}{{{resultsLink}}}
</div><!-- end detailNavBgLeft -->
</div><!-- end col -->
<div class='col-xs-12 col-sm-10 col-md-10 col-lg-10'>
<div class="container">
<div class="row">
<div class='col-md-12 col-lg-12'>
<h4>{{{Lot : ^ca_object_lots.preferred_labels}}}</h4>
<p>{{{^ca_object_lots.description}}}</p>
<HR>
{{{<ifcount code="ca_collections" min="1" max="1"><H6>Related collection:</H6></ifcount>}}}
{{{<ifcount code="ca_collections" min="2"><H6>Related collections:</H6></ifcount>}}}
{{{<unit relativeTo="ca_collections" delimiter="<br/>"><l>^ca_collections.preferred_labels.name</l></unit>}}}
{{{<ifcount code="ca_objects" min="1" max="1"><H6>Related object:</H6></ifcount>}}}
{{{<ifcount code="ca_objects" min="2"><H6>Related object:</H6></ifcount>}}}
{{{<unit relativeTo="ca_objects" delimiter="<br/>"><l>^ca_objects.preferred_labels.name</l></unit>}}}
{{{<ifcount code="ca_places" min="1" max="1"><H6>Related place:</H6></ifcount>}}}
{{{<ifcount code="ca_places" min="2"><H6>Related places:</H6></ifcount>}}}
{{{<unit relativeTo="ca_places" delimiter="<br/>"><l>^ca_places.preferred_labels.name</l></unit>}}}
{{{<ifcount code="ca_objects" min="1">
<div class="row">
<div id="browseResultsContainer">
<?php print caBusyIndicatorIcon($this->request).' '.addslashes(_t('Loading...')); ?>
</div><!-- end browseResultsContainer -->
</div><!-- end row -->
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#browseResultsContainer").load("<?php print caNavUrl($this->request, '', 'Search', 'objects', array('search' => 'ca_object_lots.idno_stub:^ca_object_lots.idno_stub'), array('dontURLEncodeParameters' => true)); ?>", function() {
jQuery('#browseResultsContainer').jscroll({
autoTrigger: true,
loadingHtml: '<?php print caBusyIndicatorIcon($this->request).' '.addslashes(_t('Loading...')); ?>',
padding: 20,
nextSelector: 'a.jscroll-next'
});
});
});
</script>
</ifcount>}}}
</div><!-- end col -->
</div><!-- end row -->
<div class="row">
<div class='col-md-6 col-lg-6'>
</div><!-- end col -->
<div class='col-md-6 col-lg-6'>
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end container -->
</div><!-- end col -->
<div class='navLeftRight col-xs-1 col-sm-1 col-md-1 col-lg-1'>
<div class="detailNavBgRight">
{{{nextLink}}}
</div><!-- end detailNavBgLeft -->
</div><!-- end col -->
</div><!-- end row -->