return odr_intdup(o, val);
}
int *ill_get_enumerated (struct ill_get_ctl *gc, const char *name,
return odr_intdup(o, val);
}
int *ill_get_enumerated (struct ill_get_ctl *gc, const char *name,
{
return ill_get_int(gc, name, sub, val);
}
ILL_String *ill_get_ILL_String_x (struct ill_get_ctl *gc, const char *name,
{
return ill_get_int(gc, name, sub, val);
}
ILL_String *ill_get_ILL_String_x (struct ill_get_ctl *gc, const char *name,
r->which = ILL_String_GeneralString;
r->u.GeneralString = odr_strdup (gc->odr, v);
return r;
}
ILL_String *ill_get_ILL_String(struct ill_get_ctl *gc, const char *name,
r->which = ILL_String_GeneralString;
r->u.GeneralString = odr_strdup (gc->odr, v);
return r;
}
ILL_String *ill_get_ILL_String(struct ill_get_ctl *gc, const char *name,
{
return ill_get_ILL_String_x (gc, name, sub, 0);
}
ILL_ISO_Date *ill_get_ILL_ISO_Date (struct ill_get_ctl *gc, const char *name,
{
return ill_get_ILL_String_x (gc, name, sub, 0);
}
ILL_ISO_Date *ill_get_ILL_ISO_Date (struct ill_get_ctl *gc, const char *name,
return odr_strdup (gc->odr, v);
}
ILL_ISO_Time *ill_get_ILL_ISO_Time (struct ill_get_ctl *gc, const char *name,
return odr_strdup (gc->odr, v);
}
ILL_ISO_Time *ill_get_ILL_ISO_Time (struct ill_get_ctl *gc, const char *name,
}
p->which = ILL_Person_Or_Institution_Symbol_person_symbol;
if ((p->u.person_symbol = ill_get_ILL_String (gc, element, "person")))
}
p->which = ILL_Person_Or_Institution_Symbol_person_symbol;
if ((p->u.person_symbol = ill_get_ILL_String (gc, element, "person")))
}
p = (ILL_System_Id *) odr_malloc (o, sizeof(*p));
p->person_or_institution_symbol = ill_get_Person_Or_Insitution_Symbol (
}
p = (ILL_System_Id *) odr_malloc (o, sizeof(*p));
p->person_or_institution_symbol = ill_get_Person_Or_Insitution_Symbol (
- ill_get_ILL_String_x (gc, element, "transaction-group-qualifier", "");
+ ill_get_ILL_String_x (gc, element, "transaction-group-qualifier", "");
- ill_get_ILL_String_x (gc, element, "transaction-qualifier", "");
+ ill_get_ILL_String_x (gc, element, "transaction-qualifier", "");
}
r->date = ill_get_ILL_ISO_Date (gc, element, "date", "20000101");
r->time = ill_get_ILL_ISO_Time (gc, element, "time", 0);
}
r->date = ill_get_ILL_ISO_Date (gc, element, "date", "20000101");
r->time = ill_get_ILL_ISO_Time (gc, element, "time", 0);
}
r->date = ill_get_ILL_ISO_Date (gc, element, "date", 0);
r->time = ill_get_ILL_ISO_Time (gc, element, "time", 0);
if (!r->date && !r->time)
}
r->date = ill_get_ILL_ISO_Date (gc, element, "date", 0);
r->time = ill_get_ILL_ISO_Time (gc, element, "time", 0);
if (!r->date && !r->time)
}
r->can_send_RECEIVED = ill_get_bool (gc, element, "can-send-RECEIVED", 0);
r->can_send_RETURNED = ill_get_bool (gc, element, "can-send-RETURNED", 0);
r->requester_SHIPPED =
}
r->can_send_RECEIVED = ill_get_bool (gc, element, "can-send-RECEIVED", 0);
r->can_send_RETURNED = ill_get_bool (gc, element, "can-send-RETURNED", 0);
r->requester_SHIPPED =
- ill_get_enumerated (gc, element, "requester-SHIPPED", 1);
+ ill_get_enumerated (gc, element, "requester-SHIPPED", 1);
- ill_get_enumerated (gc, element, "requester-CHECKED-IN", 1);
+ ill_get_enumerated (gc, element, "requester-CHECKED-IN", 1);
}
r->item_type = ill_get_enumerated (gc, element, "item-type",
}
r->item_type = ill_get_enumerated (gc, element, "item-type",
r->held_medium_type = 0;
r->call_number = ill_get_ILL_String(gc, element, "call-number");
r->author = ill_get_ILL_String(gc, element, "author");
r->held_medium_type = 0;
r->call_number = ill_get_ILL_String(gc, element, "call-number");
r->author = ill_get_ILL_String(gc, element, "author");
r->sub_title = ill_get_ILL_String(gc, element, "sub-title");
r->sponsoring_body = ill_get_ILL_String(gc, element, "sponsoring-body");
r->place_of_publication =
r->sub_title = ill_get_ILL_String(gc, element, "sub-title");
r->sponsoring_body = ill_get_ILL_String(gc, element, "sponsoring-body");
r->place_of_publication =
r->volume_issue = ill_get_ILL_String(gc, element, "volume-issue");
r->edition = ill_get_ILL_String(gc, element, "edition");
r->publication_date = ill_get_ILL_String(gc, element, "publication-date");
r->publication_date_of_component =
r->volume_issue = ill_get_ILL_String(gc, element, "volume-issue");
r->edition = ill_get_ILL_String(gc, element, "edition");
r->publication_date = ill_get_ILL_String(gc, element, "publication-date");
r->publication_date_of_component =
r->title_of_article = ill_get_ILL_String(gc, element, "title-of-article");
r->pagination = ill_get_ILL_String(gc, element, "pagination");
r->national_bibliography_no = 0;
r->title_of_article = ill_get_ILL_String(gc, element, "title-of-article");
r->pagination = ill_get_ILL_String(gc, element, "pagination");
r->national_bibliography_no = 0;
r->iSSN = ill_get_ILL_String(gc, element, "ISSN");
r->system_no = 0;
r->additional_no_letters =
r->iSSN = ill_get_ILL_String(gc, element, "ISSN");
r->system_no = 0;
r->additional_no_letters =
}
r->client_name = ill_get_ILL_String (gc, element, "client-name");
r->client_status = ill_get_ILL_String (gc, element, "client-status");
r->client_identifier = ill_get_ILL_String (gc, element,
}
r->client_name = ill_get_ILL_String (gc, element, "client-name");
r->client_status = ill_get_ILL_String (gc, element, "client-status");
r->client_identifier = ill_get_ILL_String (gc, element,
- ill_get_Name_Of_Person_Or_Institution (
- gc, element, "name-of-person-or-institution");
+ ill_get_Name_Of_Person_Or_Institution (
+ gc, element, "name-of-person-or-institution");
r->city = ill_get_ILL_String (gc, element, "city");
r->region = ill_get_ILL_String (gc, element, "region");
r->country = ill_get_ILL_String (gc, element, "country");
r->city = ill_get_ILL_String (gc, element, "city");
r->region = ill_get_ILL_String (gc, element, "region");
r->country = ill_get_ILL_String (gc, element, "country");
}
r->level_of_service = ill_get_ILL_String (gc, element, "level-of-service");
r->need_before_date = ill_get_ILL_ISO_Date (gc, element,
}
r->level_of_service = ill_get_ILL_String (gc, element, "level-of-service");
r->need_before_date = ill_get_ILL_ISO_Date (gc, element,
r->expiry_date = ill_get_ILL_ISO_Date (gc, element, "expiry-date", 0);
r->expiry_flag = ill_get_enumerated (gc, element, "expiry-flag", 3);
r->expiry_date = ill_get_ILL_ISO_Date (gc, element, "expiry-date", 0);
r->expiry_flag = ill_get_enumerated (gc, element, "expiry-flag", 3);
- ill_get_enumerated (gc, element, "protocol-version-num",
- ILL_Request_version_2);
+ ill_get_enumerated (gc, element, "protocol-version-num",
+ ILL_Request_version_2);
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->transaction_type =
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->transaction_type =
- ill_get_enumerated(gc, element, "transaction-type", 1);
+ ill_get_enumerated(gc, element, "transaction-type", 1);
r->delivery_service = 0; /* TODO */
/* ill_get_Delivery_Service (gc, element, "delivery-service"); */
r->billing_address =
r->delivery_service = 0; /* TODO */
/* ill_get_Delivery_Service (gc, element, "delivery-service"); */
r->billing_address =
- ill_get_enumerated (gc, element, "ill-service-type",
- ILL_Service_Type_copy_non_returnable);
+ ill_get_enumerated (gc, element, "ill-service-type",
+ ILL_Service_Type_copy_non_returnable);
- ill_get_Requester_Optional_Messages_Type (
- gc, element,"requester-optional-messages");
+ ill_get_Requester_Optional_Messages_Type (
+ gc, element,"requester-optional-messages");
r->search_type = ill_get_Search_Type(gc, element, "search-type");
r->num_supply_medium_info_type = 0;
r->supply_medium_info_type = 0;
r->place_on_hold = ill_get_enumerated (
r->search_type = ill_get_Search_Type(gc, element, "search-type");
r->num_supply_medium_info_type = 0;
r->supply_medium_info_type = 0;
r->place_on_hold = ill_get_enumerated (
- gc, element, "place-on-hold",
- ILL_Place_On_Hold_Type_according_to_responder_policy);
+ gc, element, "place-on-hold",
+ ILL_Place_On_Hold_Type_according_to_responder_policy);
r->item_id = ill_get_Item_Id (gc, element, "item-id");
r->supplemental_item_description = 0;
r->cost_info_type = 0;
r->copyright_compliance =
r->item_id = ill_get_Item_Id (gc, element, "item-id");
r->supplemental_item_description = 0;
r->cost_info_type = 0;
r->copyright_compliance =
r->third_party_info_type = 0;
r->retry_flag = ill_get_bool (gc, element, "retry-flag", 0);
r->forward_flag = ill_get_bool (gc, element, "forward-flag", 0);
r->third_party_info_type = 0;
r->retry_flag = ill_get_bool (gc, element, "retry-flag", 0);
r->forward_flag = ill_get_bool (gc, element, "forward-flag", 0);
- ill_get_enumerated (gc, element, "protocol-version-num",
- ILL_Request_version_2);
+ ill_get_enumerated (gc, element, "protocol-version-num",
+ ILL_Request_version_2);
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->transaction_type =
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->transaction_type =
- ill_get_enumerated(gc, element, "transaction-type", 1);
+ ill_get_enumerated(gc, element, "transaction-type", 1);
r->delivery_service = 0; /* TODO */
/* ill_get_Delivery_Service (gc, element, "delivery-service"); */
r->billing_address =
r->delivery_service = 0; /* TODO */
/* ill_get_Delivery_Service (gc, element, "delivery-service"); */
r->billing_address =
- ill_get_enumerated (gc, element, "ill-service-type",
- ILL_Service_Type_copy_non_returnable);
+ ill_get_enumerated (gc, element, "ill-service-type",
+ ILL_Service_Type_copy_non_returnable);
- ill_get_Requester_Optional_Messages_Type (
- gc, element,"requester-optional-messages");
+ ill_get_Requester_Optional_Messages_Type (
+ gc, element,"requester-optional-messages");
r->search_type = ill_get_Search_Type(gc, element, "search-type");
r->num_supply_medium_info_type = 0;
r->supply_medium_info_type = 0;
r->place_on_hold = ill_get_enumerated (
r->search_type = ill_get_Search_Type(gc, element, "search-type");
r->num_supply_medium_info_type = 0;
r->supply_medium_info_type = 0;
r->place_on_hold = ill_get_enumerated (
- gc, element, "place-on-hold",
- ILL_Place_On_Hold_Type_according_to_responder_policy);
+ gc, element, "place-on-hold",
+ ILL_Place_On_Hold_Type_according_to_responder_policy);
r->item_id = ill_get_Item_Id (gc, element, "item-id");
r->supplemental_item_description = 0;
r->cost_info_type = 0;
r->copyright_compliance =
r->item_id = ill_get_Item_Id (gc, element, "item-id");
r->supplemental_item_description = 0;
r->cost_info_type = 0;
r->copyright_compliance =
r->third_party_info_type = 0;
r->retry_flag = ill_get_bool (gc, element, "retry-flag", 0);
r->forward_flag = ill_get_bool (gc, element, "forward-flag", 0);
r->third_party_info_type = 0;
r->retry_flag = ill_get_bool (gc, element, "retry-flag", 0);
r->forward_flag = ill_get_bool (gc, element, "forward-flag", 0);
- ill_get_enumerated (gc, element, "protocol-version-num",
- ILL_Request_version_2);
+ ill_get_enumerated (gc, element, "protocol-version-num",
+ ILL_Request_version_2);
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->requester_note = ill_get_ILL_String(gc, element, "requester-note");
r->requester_id = ill_get_System_Id (gc, element, "requester-id");
r->responder_id = ill_get_System_Id (gc, element, "responder-id");
r->requester_note = ill_get_ILL_String(gc, element, "requester-note");
- r->which = ILL_APDU_ILL_Request;
- r->u.illRequest = ill_get_ILLRequest(gc, name, sub);
+ r->which = ILL_APDU_ILL_Request;
+ r->u.illRequest = ill_get_ILLRequest(gc, name, sub);
- r->which = ILL_APDU_Cancel;
- r->u.Cancel = ill_get_Cancel(gc, name, sub);
+ r->which = ILL_APDU_Cancel;
+ r->u.Cancel = ill_get_Cancel(gc, name, sub);