<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="WordSection1">
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;">Dear all,<br>
</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;" class="elementToProof"><br>
How would I go about getting all of the associated archival objects for a top container using the API? Would doing something like the following capture all archival objects:</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;"><br>
</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span class="SpellE"><span style="font-family: "Arial", sans-serif; color: black;"></span></span></p>
<pre style="color: rgb(0, 0, 0); background: rgb(255, 255, 255);" class="FluidPluginCopy elementToProof">search_aos <span style="color: rgb(128, 128, 48);">=</span> client<span style="color: rgb(128, 128, 48);">.</span>get_paged<span style="color: rgb(128, 128, 48);">(</span>f<span style="color: rgb(0, 0, 230);">'repositories/4/search'</span><span style="color: rgb(128, 128, 48);">,</span> params<span style="color: rgb(128, 128, 48);">=</span><span style="color: rgb(128, 0, 128);">{</span><span style="color: rgb(0, 0, 230);">'q'</span><span style="color: rgb(128, 128, 48);">:</span> f<span style="color: rgb(0, 0, 230);">'{topcontainer_barcode}'</span><span style="color: rgb(128, 128, 48);">,</span> <span style="color: rgb(0, 0, 230);">'type'</span><span style="color: rgb(128, 128, 48);">:</span> <span style="color: rgb(128, 128, 48);">[</span><span style="color: rgb(0, 0, 230);">'archival_object'</span><span style="color: rgb(128, 128, 48);">]</span><span style="color: rgb(128, 0, 128);">}</span><span style="color: rgb(128, 128, 48);">)</span>
ao_results <span style="color: rgb(128, 128, 48);">=</span> <span style="color: rgb(128, 128, 48);">[</span>result <span style="color: rgb(128, 0, 0); font-weight: bold;">for</span> result <span style="color: rgb(128, 0, 0); font-weight: bold;">in</span> search_aos<span style="color: rgb(128, 128, 48);">]</span></pre>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;"></span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;"><br>
</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;">The above works (returns 27 archival objects, exactly what is shown in ASpace), but I am concerned this won't get everything or potentially get unassociated archival objects. I tried a different
query, one based on how the staff interface displays linked records in a top container view, but this kind of query returns all archival objects for a repository, not the ones connected to the top container:</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;"><br>
</span></p>
<div class="MsoNormal elementToProof" style="margin: 0px 0in 0.000133333px; font-size: 12pt; font-family: "Times New Roman", serif;">
<span class="SpellE"><span style="font-family: "Arial", sans-serif; color: black;"></span></span><span style="font-family: "Arial", sans-serif; color: black;">
<pre style="color: rgb(0, 0, 0); background: rgb(255, 255, 255);" class="FluidPluginCopy ContentPasted0">search_aos <span style="color: rgb(128, 128, 48);" class="ContentPasted0">=</span> client<span style="color: rgb(128, 128, 48);" class="ContentPasted0">.</span>get_paged<span style="color: rgb(128, 128, 48);" class="ContentPasted0">(</span>f<span style="color: rgb(0, 0, 230);" class="ContentPasted0">'repositories/4/search'</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">,</span> params<span style="color: rgb(128, 128, 48);" class="ContentPasted0">=</span><span style="color: rgb(128, 0, 128);" class="ContentPasted0">{</span><span style="color: rgb(0, 0, 230);" class="ContentPasted0">'filter_term[]'</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">:</span> f<span style="color: rgb(0, 0, 230);" class="ContentPasted0">'top_container_uri_u_sstr: {topccontainer_uri}'</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">,</span> <span style="color: rgb(0, 0, 230);" class="ContentPasted0">'type'</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">:</span> <span style="color: rgb(128, 128, 48);" class="ContentPasted0">[</span><span style="color: rgb(0, 0, 230);" class="ContentPasted0">'archival_object'</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">]</span><span style="color: rgb(128, 0, 128);" class="ContentPasted0">}</span><span style="color: rgb(128, 128, 48);" class="ContentPasted0">)</span>
</pre>
</span></div>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;" class="elementToProof"><br>
Any help/advice is appreciated!<br>
<br>
Thanks,<br>
<br>
Corey<br>
</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family: "Arial", sans-serif; color: black;"><br>
</span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-bottom:12.0pt">
<a name="_MailAutoSig"><b><span style="font-size:9.0pt; font-family:"Georgia",serif">Corey Schmidt</span></b></a><span style=""><span style="font-size:9.0pt; font-family:"Georgia",serif"><br>
</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-bottom:12.0pt">
<span style=""><span style="font-size:9.0pt; font-family:"Georgia",serif">Special Collections Libraries |
<i>Project Management Librarian/Archivist</i></span></span></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-bottom:12.0pt">
<span style=""></span><a href="mailto:Corey.Schmidt@uga.edu" data-auth="NotApplicable" data-loopstyle="link"><span style=""><span style="font-size: 9pt; font-family: "Georgia", serif; color: blue;">Corey.Schmidt@uga.edu</span></span><span style=""></span></a></p>
<p class="MsoNormal elementToProof" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style=""><span style=""></span></span></p>
<span style=""></span>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
</body>
</html>