##local.define(Scripts) ##local.define(Body) ##if value.BRWR ##local.define(Value) ##leg.OPAC.ChangePin.Instructions ##else ##local.define(Value) ##leg.OPAC.ChangePin.InstructionsAll ##endif ##if error.Level ##if error.IsEqual(Number, 1067) ##local.define(Value) ##leg.OPAC.ChangePin.NoAuthorisation ##local.define(HandledError)1 ##else ##if value.NewPinEmpty ##local.define(Value) ##leg.OPAC.ChangePin.NewPinEmpty ##local.define(HandledError)1 ##else ##if value.NewPinDifferent ##local.define(Value) ##leg.OPAC.ChangePin.NewPinDifferent ##local.define(HandledError)1 ##else ##if value.NewPinWrongLength ##local.define(Value) ##if sessioncfg.IsEqual(OPAC.Login.SecurityCode.MinimumLength,##sessioncfg.OPAC.Login.SecurityCode.MaximumLength) ##leg.Expand(OPAC.ChangePin.NewPinWrongLength, MinLen, ##sessioncfg.OPAC.Login.SecurityCode.MinimumLength) ##else ##leg.Expand(OPAC.ChangePin.NewPinWrongLengthRange, MinLen, ##sessioncfg.OPAC.Login.SecurityCode.MinimumLength, MaxLen, ##sessioncfg.OPAC.Login.SecurityCode.MaximumLength) ##endif ##local.define(HandledError)1 ##else ##if value.NewPinSame ##local.define(Value) ##leg.OPAC.ChangePin.NewPinSame ##local.define(HandledError)1 ##endif ##endif ##endif ##endif ##endif ##endif ##if value.PinHasChanged ##local.define(Value) ##leg.OPAC.ChangePin.DonePrompt ##endif ##local.Value ##local.define(FormFields) ##local.define(FormBorrowerDefault) ##if local.FormError ##local.define(mainclass)generic-form-error ##local.define(textclass)generic-form-text-error ##else ##local.define(mainclass)generic-form ##local.define(textclass)generic-form-text ##endif ##helpcontext.addHelp(Login) ##this.stylesetforform ##local.FormFields ##if value.BRWR ##else ##leg.OPAC.Forms.Login.YourCardNumber ##endif ##leg.OPAC.Forms.Login.YourPIN ##leg.OPAC.ChangePin.NewPin ##leg.OPAC.ChangePin.ConfirmPin ##include(FrameBody)