Thursday, November 20, 2008

Genie: Specifying the sort in the Item Information, etc. sections

In the Catalog and OPAC full reports, the method for specifying the sort order in the <Item Information>, <Serial Information>, etc. sections is different than specifying sort order elsewhere. Instead of putting Reverse="true" on the <Field> tag, you use a minus sign (-) before the field name in the SortBy= line, as shown in the example below, which sorts by ItemLocation, then subsorts by ItemIssue in descending order.

<!-- Sample configuration for Item, Loan, Reserve, and serial information -->
<ItemInfo Heading="Item Information" ShowItemNumber="true" SortBy="ItemLocation|-ItemIssue" >
<Field Name="ItemLocation" Footer=": "/>
<Field Name="ItemIssue" Header="[" Footer="], " />
<Field Name="ItemCopyInfo" Footer=", "/>
<Field Name="ItemBarCode"/>
<Field Name="ItemSubLocation" Header=", "/>
<Field Name="ItemShelf" Header=", " Footer=" " NoContentHeader=" "/>
<Field Name="ToCFileName.ItemToCID" Header="" Footer=" " NoContentHeader=" " TreatAs="ToCIcon"/>
</ItemInfo>
<LoanInfo>
<Field Name="BorrName.LoanBorrID" Header=" - on loan to " Footer=", " NoContentHeader=" - on loan, "/>
<Field Name="LoanDateDue" Header="due " NoContentHeader="permanent loan"/>
</LoanInfo>
<ReserveInfo Heading="Reserves" ShowItemNumber="true">
<Field Name="ResDateRequested" Footer=", "/>
<Field Name="BorrName.ResBorrID" Header="by "/>
<Field Name="ResLocation" Header=", at location "/>
<Field Name="ResItemBC" Header=", for item "/>
</ReserveInfo>
<SerialInfo Heading="Serials" ShowItemNumber="true">
<Field Name="SerDatesRecd" UseFunction="FirstEntry" Header="Latest issue received: " Footer=". "
NoContentHeader="No issues received. "/>
</SerialInfo>
<!-- -->

No comments: