##local.define(SelectIcon) ##local.define(cfgPathLhs)DB.Config.##searchcontext.DB ##local.define(cfgPathRhs).UseServerSideSchema ##local.defineByRender(useAppServer)##sessioncfg.data(##local.cfgPathLhs##local.cfgPathRhs) ##local.define(Header)##include(Header) ##local.define(Advice)##leg.WAI.CATRecord.Prompt ##if request.View ##local.definebyrender(View)##request.View ##else ##local.definebyrender(View)##sessioncfg.ZONES.Catalogue.Views.Default ##endif ##local.define(ConcertoStockItemStatus) ##if item.IsOnLoan ##leg.ZONESOPAC.ExtraStockStatus.NoFreeStock ##if item.IsEqual(CSTA,10) ##leg.ZONESOPAC.ExtraStockStatus.EarliestDueDate ##item.DueDate ##endif ##if item.IsEqual(CSTA,11) ##leg.ZONESOPAC.ExtraStockStatus.InSorting ##endif ##else ##leg.ZONESOPAC.ExtraStockStatus.FreeStock ##endif ##if item.IsReference ##leg.ZONESOPAC.ExtraStockStatus.Reference ##endif ##local.define(ConcertoInlineStockAtBranch) ##stock.ForEachIn(item, "Items") ##if item.__IsMap() ##sessioncfg.ParamLookup("SublocName", ##item.data(SBL)) ##if item.IsDefined(SHELF)##item.SHELF##endif ##if item.IsDefined(ALSN) ##item.ALSN ##endif ##local.ConcertoStockItemStatus ##local.DefineByRender(GStockUrl)##sessioncfg.MapValueThroughImageTable(##sessioncfg.ParamLookup("HlocCode", ##item.data(Hloc)),"ZONES.GraphicalStockLocationsServers") ##if local.notempty(GStockUrl) ##local.Replace(GStockUrl,"$shelfmark$", ##formatter.urlencode(##item.data(SHELF))) ##local.Replace(GStockUrl,"$hloc$", ##formatter.urlencode(##sessioncfg.ParamLookup("HlocCode", ##item.data(Hloc) ))) ##local.Replace(GStockUrl,"$mat$", ##formatter.urlencode(##sessioncfg.ParamLookup("MaterialCode", ##item.data(MAT) ))) ##local.Replace(GStockUrl,"$subloc$", ##formatter.urlencode(##sessioncfg.ParamLookup("SublocCode", ##item.data(SBL)))) ##local.Replace(GStockUrl,"$isreference$", ##item.data(IsReference)) ##if sessioncfg.IsEqual(ZONES.GraphicalStockDisplayMode,Link) ##leg.ZONESOPAC.Browseenum.BrowseItem.GraphicalStockLink ##else ##leg.ZONESOPAC.Browseenum.BrowseItem.GraphicalStockLink ##endif ##endif
##endif
##local.define(MonoCopies) ##local.Define(HaveCopiesMarker)0 ##if Value.IsMap("MonoHoldings") ##if Value.IsDefined("MonoHoldings.IsEmpty") ##else
##leg.KidsZone.CATRecord.Button.StockItemSummary
##Value.ForEachIn(branch,"MonoHoldings")
##branch.Name
##if branch.IsMap(Stock)
##branch.with(stock,"Stock") ##local.ConcertoInlineStockAtBranch
##else
##endif ##if local.IsEqual(HaveCopiesMarker,0) ##local.Define(HaveCopiesMarker)1 ##endif
/**/ ##endif ##endif
##local.define(CurrentPage)##leg.WAI.CATRecord.Title ##local.define(BodyContent)

##leg.WAI.CATRecord.Prompt

##local.define(NoStock)0 ##if request.IsEqual(NoStock,1) ##local.define(NoStock)1 ##local.define(HideStockButton)1 ##local.define(HideReservationButton)1 ##endif ##local.define(CommandButtonGraphic)IMG1 ##local.define(Title) ##if Value.SERIAL ##if Value.IsEqual(ISSUE,1) ##leg.WAI.CATRecord.IssueDetails ##else ##leg.WAI.CATRecord.SerialDetails ##endif ##else ##leg.WAI.CATRecord.Title ##endif ##local.define(List) ##local.Define(NewRoot) ##if sessioncfg.IsEqual(ZONES.NonHTTPSHostRoot,"") ##else ##local.defineByRender(NewRoot)##sessioncfg.ZONES.NonHTTPSHostRoot ##endif ##local.define(ContentPaneTitle) ##local.define(CommandButtonHREF)##this&Method=StockStatus2&BrowseAsHloc=##local.thisLoc ##if sessioncfg.DB.Config.Catalogue.ShowMonographicHoldingsInline ##if Value.IsMap("MonoHoldings") ##local.define(CommandButtonHREF)#CopiesMarker ##else ##local.define(CommandButtonHREF)# ##local.define(CommandDisabled)1 ##endif ##endif ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.Stock ##if Value.Title ##Value.Title##endif ##local.define(CommandButtonGraphic) ##local.CommandButtonFMT | ##if local.IsEqual(ReservationsAllowed,1) ##local.define(CommandButtonHREF)##this&Method=MakeReservation&Parent=##this.obj ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.Reservation ##local.CommandButtonFMT | ##endif ##if local.isEqual(useAppServer,1) ##if local.isEqual(View,"ISBD") ##local.define(CommandButtonHREF)##this&View=Annotated&NoStock=##local.NoStock ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.AnnotatedView.Text ##else ##local.define(CommandButtonHREF)##this&View=ISBD&NoStock=##local.NoStock ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.ISBDView.Text ##endif ##local.CommandButtonFMT ##else ##if dbcfg.Views.SupportsISBD ##if info.IsEqual(View,ISBD) ##local.define(CommandButtonHREF)##this&View=Annotated&Annotated=1&NoStock=##local.NoStock ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.AnnotatedView.Text ##else ##local.define(CommandButtonHREF)##this&View=ISBD&ISBD=1&NoStock=##local.NoStock ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.ISBDView.Text ##endif ##local.CommandButtonFMT ##endif ##endif ##local.ContentPaneTitle ##if Value.HASHVOL ##local.define(bits)1 ##endif ##if Value.HASWORKS ##local.define(bits)1 ##endif ##if local.bits ##local.define(hbits)1 ##endif ##if Value.HASPARTITLE ##local.define(hbits)1 ##endif ##if local.hbits ##local.define(HRowContent) ##if Value.HASPARTITLE ##if Value.SERIAL ##leg.WAI.CATRecord.Hierachy.IssueOf ##else ##leg.WAI.CATRecord.Hierachy.PartOf ##endif ##Value.StripFilingCharsFrom(PARTITLE) ##helpcontext.addHelp(HPart) ##if Value.HASPARAUTHOR ##leg.WAI.CATRecord.Hierachy.ByAuthor ##Value.StripFilingCharsFrom(PARAUTHOR) ##endif   ##endif ##if local.bits ##if Value.SERIAL ##leg.WAI.CATRecord.Hierachy.SerialContains ##else ##leg.WAI.CATRecord.Hierachy.TitleContains ##endif ##helpcontext.addHelp(PartHierarchy) ##if Value.HASHVOL ##Value.HVOL ##if Value.SERIAL ##leg.WAI.CATRecord.Hierachy.Issues ##else ##leg.WAI.CATRecord.Hierachy.RelatedVolumes##endif ##endif ##if Value.HASWORKS ##Value.WORKS ##if Value.IsConceptual ##leg.WAI.CATRecord.Hierachy.GenericWorks ##else ##leg.WAI.CATRecord.Hierachy.IncludedWorks ##endif ##endif   ##endif ##endif ##local.define(BookIcons) ##local.defineByRender(LANIcon)##sessioncfg.MapParamThroughImageTable(LangCode,##Value.LanguageText,GraphicalLAN) ##if local.IsEqual(LANIcon,"") ##else   |   ##sessioncfg.ParamLookup(LangName,##Value.LanguageText) ##endif ##local.define(StockBtnFMT) ##if local.IsEqual(NoStock,1) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Method=StockStatus2&BrowseAsHloc=##local.thisLoc##if local.IsEqual(request.InStock,"1")&InStock=1&BrowseAsHloc=##local.thisLoc##endif ##local.define(CommandButtonText)##leg.WAI.CATRecord.Button.Stock ##if Value.Title ##Value.Title ##endif ##local.CommandButtonFMT ##endif ##if sessioncfg.ZONES.BrowseOptions.EmbededURLExplore ##local.define(ExploreEmbededURL)1 ##endif ##local.define(ScrollingListContent) ##if local.isEqual(useAppServer,1) ##local.define(schemaNameRHS)CatalogueRecordSchema ##local.defineByRender(mainSchemaName)##dbcfg.Parameters.TagType##local.schemaNameRHS ##local.define(schemaNameRHS)ZonesAnnotatedRecordSchema ##local.defineByRender(annotatedSchemaName)##dbcfg.Parameters.TagType##local.schemaNameRHS ##local.defineByRender(ISBDSchemaList)CatalogueRecordISBDBindings,CatalogueRecordShortEntryBindings,##local.mainSchemaName ##local.defineByRender(annotatedSchemaList)##local.annotatedSchemaName,CatalogueRecordISBDBindings,CatalogueRecordShortEntryBindings,##local.mainSchemaName ##local.defineByRender(referenceSchemaList)CatalogueRecordReferenceSchema,CatalogueRecordShortEntryBindings,##local.mainSchemaName ##ExceptionContext.defineByRender(DB)##searchcontext.DB ##ExceptionContext.defineByRender(MaterialGroup)##sessioncfg.MapTextThroughTable(##Value.MaterialType,MaterialGroupMap) ##include(recordRenderer) ##local.define(openExploreTemplate) ##if Schema.IsEqual(explore.type,multiMedia) ##else ##endif ##local.define(closeExploreTemplate) ##local.define(fieldItemTemplate) ##Value.BindWithSchema(##local.ISBDSchemaList,##local.path,ExceptionContext) ##if type.isEqual(node) ##local.renderer ##else ##if type.isEqual(enumeration) ##component(testField,DISABLED) ##else ##Value ##endif ##endif ##local.define(headerItemTemplate) ##if local.isEqual(View,"ISBD") ##local.annotation ##local.fieldItemTemplate   ##else ##local.annotation ##local.fieldItemTemplate ##endif ##local.define(blank)  ##local.define(standardFields) ##if local.isPRDRecord ##local.define(annotation)##leg.data(WAI.CAT.Global.BACN) ##local.define(path)CatalogNumber ##local.headerItemTemplate ##local.define(annotation)##leg.data(WAI.CAT.Global.List) ##local.define(path)List ##local.headerItemTemplate ##local.define(annotation)##leg.data(WAI.CAT.Global.Supplier) ##local.define(path)Supplier ##local.headerItemTemplate ##local.blank ##endif
##if local.isEqual(View,"ISBD") ##ExceptionContext.define(View)ISBD ##else ##ExceptionContext.define(View)Annotated ##endif ##local.defineByRender(LinkISB)##formatter.bookcoverurl("",##Value.BACISB,"") ##if local.IsEqual(LinkISB,"") ##local.defineByRender(LinkISB)##formatter.bookcoverurl("",##Value.BACCNO,"") ##endif ##if sessioncfg.IsEqual(ZONES.MomInterface,"1") ##if local.IsEqual(LinkISB,"") ##local.defineByRender(MLink) ##else ##local.defineByRender(MoMDetailsUrl)##formatter.momurl(##sessioncfg.ZONES.MomURLStem,##Value.BACCNO,##Value.BACISB,##Value.Author,##Value.Title) ##local.define(ExtraBits)1 ##local.defineByRender(MLink) ##endif ##else ##endif /*##if sessioncfg.ZonesAmazonLinkEnabled ##if local.IsEqual(LinkISB,"") ##local.defineByRender(ALink) ##else ##local.defineByRender(LinkURL)##formatter.bookcoverurl(##sessioncfg.AmazonLinkURL,##local.LinkISB,"") ##local.define(ExtraBits)1 ##local.defineByRender(ALink) ##endif ##endif*/ ##if sessioncfg.IsEqual(ZONES.BookCovers,"1") ##local.define(BookCover) ##if Value.BACISB ##local.defineByRender(PictureUrl)##formatter.bookcoverurl(##sessioncfg.ZONES.BookCoversUrl.Stem,##Value.BACISB,##sessioncfg.ZONES.BookCoversUrl.Ext) ##local.defineByRender(DetailsUrl)##formatter.bookcoverurl(##sessioncfg.ZONES.BookCoversUrl.Stem,##Value.BACISB,##sessioncfg.ZONES.BookCoversUrl.InfoExt) ##else ##if Value.BACCNO ##local.defineByRender(PictureUrl)##formatter.bookcoverurl(##sessioncfg.ZONES.BookCoversUrl.Stem,##Value.BACCNO,##sessioncfg.ZONES.BookCoversUrl.Ext) ##local.defineByRender(DetailsUrl)##formatter.bookcoverurl(##sessioncfg.ZONES.BookCoversUrl.Stem,##Value.BACCNO,##sessioncfg.ZONES.BookCoversUrl.InfoExt) ##endif ##endif ##if local.IsEqual(PictureUrl,"") ##else ##if local.PictureUrl ##endif ##endif ##else ##if sessioncfg.IsEqual(LocalBookInfoAvailable,"1") ##local.define(BookCover) ##if sessioncfg.IsEqual(LocalBookCoverPath,"") ##else ##if formatter.localbookcoverurlexists(##sessioncfg.LocalBookCoverPath,##Value.BACISB,".*") ##local.defineByRender(PictureUrl)##formatter.bookcoverurl(##sessioncfg.LocalBookCoverPath,##Value.BACISB,".*") ##else ##if formatter.localbookcoverurlexists(##sessioncfg.LocalBookCoverPath,##Value.BACCNO,".*") ##local.defineByRender(PictureUrl)##formatter.bookcoverurl(##sessioncfg.LocalBookCoverPath,##Value.BACCNO,".*") ##endif ##endif ##endif ##local.define(BookNotes) ##if sessioncfg.IsEqual(LocalBookNotesPath,"") ##else ##if formatter.localbookcoverurlexists(##sessioncfg.LocalBookNotesPath,##Value.BACISB,".txt") ##local.defineByRender(DetailsUrl)##formatter.insertlocalbookurl(##sessioncfg.LocalBookNotesPath,##Value.BACISB,".txt") ##else ##if formatter.localbookcoverurlexists(##sessioncfg.LocalBookNotesPath,##Value.BACCNO,".txt") ##local.defineByRender(DetailsUrl)##formatter.insertlocalbookurl(##sessioncfg.LocalBookNotesPath,##Value.BACCNO,".txt") ##endif ##endif ##endif ##endif ##endif ##if local.isEqual(View,"ISBD") ##else

/*keep*/ ##local.defineByRender(MATIcon)##sessioncfg.MapParamThroughImageTable(MaterialCode,##Value.MaterialType,GraphicalMAT) ##if local.hbits ##local.HRowContent ##endif ##if Value.IsConceptual /* removed PM request */ ##else /* removed PM request */ ##endif ##if sessioncfg.ZONES.BookCovers ##local.BookCover ##local.define(PictureUrl)  ##else ##if sessioncfg.IsEqual(LocalBookInfoAvailable,"1") ##local.BookCover ##local.define(PictureUrl)  ##endif ##endif
##if Value.Title##if Value.IsEqual(ISSUE,1)##leg.WAI.CATRecord.Caption##else##leg.WAI.Defaults.SummaryEntry.Title##endif : ##Value.StripFilingCharsFrom(Title,PROCESS_HASH)
##endif ##if Value.Author##leg.WAI.Defaults.SummaryEntry.Author : ##Value.StripFilingCharsFrom(Author,PROCESS_HASH)
##endif ##if Value.BACYER ##leg.WAI.Defaults.SummaryEntry.Year : ##Value.BACYER
##endif ##if Value.BACEDI - ##leg.WAI.Defaults.SummaryEntry.Edition : ##Value.BACEDI
##endif ##if Value.BACMAT##leg.WAI.Defaults.SummaryEntry.MaterialType : ##Value.BACMAT
##endif ##if Value.ClassMark##leg.WAI.Defaults.SummaryEntry.Classmark : ##Value.ClassMark
##endif ##if Value.BACLTX##leg.WAI.Defaults.SummaryEntry.Language : ##Value.BACLTX##endif ##local.defineByRender(IMCIcon)##sessioncfg.MapParamThroughImageTable(InterestCode,##Value.InterestLevel,GraphicalIMC) ##if local.IsEqual(IMCIcon,"") ##else ##sessioncfg.ParamLookup(InterestName,##Value.InterestLevel) ##endif /*##if Value.IsConceptual   ##else ##local.StockBtnFMT ##endif*/ ##if local.IsEqual(thisLoc, "-1") ##else ##if Value.IsDefined(StockStatus.Items.0) ##if Value.StockStatus.Items.0.IsOnLoan ##leg.WAI.ExtraStockStatus.NoFreeStock
##if Value.IsEqual(StockStatus.Items.0.CSTA,10) ##leg.WAI.ExtraStockStatus.EarliestDueDate ##Value.StockStatus.Items.0.DueDate
##endif ##else ##leg.WAI.ExtraStockStatus.FreeStock
##endif ##if Value.StockStatus.Items.0.IsReference ##leg.WAI.ExtraStockStatus.Reference
##endif ##if Value.IsEqual(StockStatus.Items.0.SHELF,"") ##else ##leg.WAI.Browseenum.BrowseItem.Shelfmark ##Value.StockStatus.Items.0.SHELF.
##endif ##leg.WAI.ExtraStockStatus.TotalInBranch ##Value.StockStatus.TotalInBranch
##endif ##endif

##endif ##endif ##local.define(annotatedRowTemplate) ##Schema.toMarkup(name) ##local.renderer ##local.define(BrowseItem) ##if local.isEqual(View,"ISBD") ##ExceptionContext.define(View)ISBD ##if local.hbits ##local.HRowContent ##endif
##if Value.isEqual(Author,"") ##else ##local.define(path)Author ##local.fieldItemTemplate ##endif
##if Value.isEqual(ClassMark,"") ##else ##local.define(annotation)##leg.data(WAI.CAT.Global.Classmark) ##local.define(path)ClassMark
##endif ##if Value.isEqual(Title,"") ##else ##local.define(path)Title ##local.fieldItemTemplate ##endif ##if Value.isEqual(BACCNO,"") ##else ##local.define(annotation)##leg.data(WAI.CAT.Global.CONN) ##local.define(path)BACCNO ##local.headerItemTemplate
##endif ##if Value.isEqual(BACREL,"") ##else ##local.define(annotation)##leg.data(WAI.CAT.Global.RCNN) ##local.define(path)BACREL ##local.headerItemTemplate
##endif
##Value.BindWithSchema(##local.ISBDSchemaList,"Tags",ExceptionContext) ##local.renderer
##else ##Value.BindWithSchema(##local.annotatedSchemaList,"Tags",ExceptionContext) ##local.renderer ##if Value.isEqual(BACCNO,"") ##else ##local.define(annotation)##leg.data(WAI.CAT.Global.CONN) ##local.define(path)BACCNO ##local.headerItemTemplate ##endif ##endif
##local.BrowseItemContainerTemplate ##local.MonoCopies ##if local.ExtraBits

##if sessioncfg.IsEqual(ZONES.MomInterface,"1") ##local.MLink ##endif

##endif ##endif ##else ##local.define(BrowseItem)##record() ##local.BrowseItemContainerTemplate ##endif
##local.ScrollingList ##if local.NoStockError ##local.define(Value) ##leg.WAI.StockStatus.NoStock ##local.ErrorRowTemplate
##endif
##local.define(BrowseListHelp) ##leg.WAI.CATRecord.BrowseListHelp ##local.List ##if info.IsEqual(AlreadyNoted,1) ##include(Layout)