scriptotek / alma-slipsomat

Tool for syncing Alma letters XSL files with a local folder
MIT License
15 stars 10 forks source link

Pickup location is sometimes missing #5

Closed danmichaelo closed 8 years ago

danmichaelo commented 8 years ago

Affected

The xml letters also contains a promising-looking field called pickup_location_str, but this is always blank. When asking about it on the Developer Network forum, I got the reply:

pickup_location_str is a transient field that was not meant to be part of the letter. You should not use it, and we should remove it from the letter to avoid confusion.

danmichaelo commented 8 years ago

For physical_non_returnable, it seems like notification_data/phys_item_display/owning_library_name is set to the name that receives the document, so I added that as a fallback.

I also replaced notification_data/request/assigned_unit_name with notification_data/request/delivery_address, which, despite the misleading name, seems to be just the library name without the name of the circulation desk (whenever notification_data/request/assigned_unit_name is blank, so is notification_data/request/delivery_address). Examples:

ewinge commented 8 years ago

fixed?

danmichaelo commented 8 years ago

Hope so!