Beispiel #1
0
        public bool UpdateDigitalObjectToC()
        {
            bool result = false;

            foreach (RQResultItem theItem in this.ItemResultSet)
            {
                var str1 = theItem.ItemDescription.Abstract;
                var str2 = theItem.ItemDescription.Signature;

                if (result = (result || DigitalObjectHelpers.UpdateDigitalObjectDirectory(theItem.ItemDescription.DocNo, ref str1, ref str2, theItem.Write())))
                {
                    theItem.ItemDescription.Abstract  = str1;
                    theItem.ItemDescription.Signature = str2;
                }
            }
            return(result);
        }
Beispiel #2
0
        public void Change(RQItem fromItem)
        {
            string fromTocStr = "";
            string toCStr     = "";

            if (fromItem.ClassificationFieldContent != this.ClassificationFieldContent)
            {
                this._savedFieldValues.Add("Classification", this.ClassificationFieldContent);
            }
            if ((fromTocStr = fromItem.GetToC()) != "")
            {
                // if fromItem has ToC
                if (((toCStr = this.GetToC()) != "") && (fromTocStr != toCStr))
                {
                    // store old Toc if different from new
                    this._savedFieldValues.Add("TOC", this.GetToC());
                }
                fromItem.Signature = DigitalObjectHelpers.UpdatePrimaryAccessLink(fromItem.ID, fromTocStr, fromItem.Signature);
            }
            this._resultItem.Change(fromItem._resultItem);
        }