Doorgaan naar de website
OCLC Support

ProduceAndUpdateHoldings

Find the syntax, use, parameters, return values, and an example for the ProduceAndUpdateHoldings macro command in Connexion client.
Syntax BOOL = CS.ProduceAndUpdateHoldings
Use to For an existing record or a workform, or for records or workforms selected in a list, update holdings (adds your OCLC institution symbol to the records). If for workform(s), add to WorldCat.
Or
When offline, marks local record(s) for batch update and produce.

Same as using the Action > Holdings > Produce and Update Holdings menu command.
Parameters None
Comments
  • If you are logged on, this macro does the action immediately online.
  • If you are working with local file records while offline, this macro marks the current record, or records selected in a list, ready (R) to batch-process the action.
Return values TRUE if the actions are successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Dim bResult As Integer

     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     bResult = CS.ProduceAndUpdateHoldings

     If bResult = True Then
          MsgBox “Holdings were successfully updated”
     Else
          MsgBox “Holdings were not successfully updated”
     End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • Updates holdings (adds your OCLC institution symbol) in record number 1.
  • If the action is successful, returns the message: Holdings were successfully updated. If not, returns the message: Holdings were not successfully updated.