<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I’m happy to (try to) answer more in depth questions if you’ve got ‘em, but most directly it is a versioning measure. Each time a record is saved, the lock_version increases by one. As we’ve gone about doing
a lot of metadata cleanup here via the API the lock_version has been a constant source of attention/consideration to us as you cannot POST data if there is a lock_version mismatch (this is, indeed, a GOOD thing since it will keep you from posting old data
over new!). It gets complicated, though, given the linking of certain record types to others (e.g. accessions linked to resources). For example, we intended – during the process of relinking new subject/agent records to all our accessions and resources –
to post ALL our resources and accessions in at once. It ended up that once an accession record was posted with a link to a resource record that the lock versions of BOTH the accession and resource records were upped due to the link between them. We had to
GET fresh resource records (with updated lock_versions), link our subject/agents, and then repost just the resources after doing so first with the accessions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hope that makes sense and helps,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Lora<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">Lora J. Davis<o:p></o:p></p>
<p class="MsoNormal">Digital Archivist<o:p></o:p></p>
<p class="MsoNormal">The Sheridan Libraries<o:p></o:p></p>
<p class="MsoNormal">Johns Hopkins University<o:p></o:p></p>
<p class="MsoNormal">3400 North Charles Street<o:p></o:p></p>
<p class="MsoNormal">Baltimore, MD 21228<o:p></o:p></p>
<p class="MsoNormal">(410) 516-5898<o:p></o:p></p>
<p class="MsoNormal">ljdavis@jhu.edu<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Fortney, Kyle<br>
<b>Sent:</b> Thursday, November 10, 2016 9:58 AM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Lock Version<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I may be dense but I cannot seem to find an explanation of the lock_version field. Can anyone explain this field?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Kyle Fortney<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Computer Specialist<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Library Systems<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">308 Edmon Low Library, OSU<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">(405) 744-7924<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>