From: Jonathan H. <jon...@ca...> - 2012-06-26 02:27:17
|
Hi Conor, I simply did a search through the exported xsd file for "Book" and replaced it with whatever, e.g. "My Book". There were three instances of xdis_title, and one matchfield mapping for the "genre" static text in the MODS. I did not clear any of the IDs, as they are ignored when you import. There was a commit made on 3 April that fixed a bug in the import process: https://code.library.uq.edu.au/fez/rev/1b5fba26d059 On Tue 26 Jun 2012 01:38:35 PM NZST, McTernan, Conor wrote: > Any luck cloning and adding docs successfully? > > > > I have been struggling with this for close to a week now and am making > no progress. > > > I have re-install fez/fedora using the most recent version of fez from > the mercurial repo and using fedora 3.5. If I use the default doc > types I have no problem adding documents, but once I clone a document > type I am unable to create new documents using this new type. > > > > Here is the process I am using to clone the document (I believe this > worked on a version of fez from a month or two ago): > > · Taking Books as an example export the 3 XSDs (Fedora Object > XML -> Book MODS 1.0, MODS -> Book MODS 1.0, OAI DC -> Book MODS DC > Display). > > o I export these as one file via the import/export tool > > · I then update the xdis_title values prefixing them with “My” > e.g. “My Book”, “My Book MODS” and “My Book MODS DC Display”. > > · I also clear all xsdmf_id values. E.g. xsdmf_id=”” > > · I then re-import the update xsd file > > · Associate the different doc types > > o FOXML -> Edit Displays -> My Book -> Edit > > § digitalObject->objectProperties->property->VALUE > > · update the XSDMF ID Reference to point to the new My Book > MODS Version 1.0 > > · Select (Title)!titleInfo!title > > · Save “Value” > > § Datastream->datastreamVersion->xmlContent > > · For the DC datastream set the XSD Display to My Books MODS > DC Display > > · For the MODS datastream set the XSD Display to My Books MODS > > · Then edit the OAI DC > > o OAI DC -> Edit Displays -> My Book MODS DC Display -> Edit > > § dc->dc:title > > · Update XSDMF ID Reference to point to “My Book MODS” > > · (Title)!titleInfo!title > > · Select “Value” > > > > From all the guides and tutorials these seem to be the steps to take > to clone and then re-associate doc types. If I am missing any steps or > if I am doing some of them wrong I would really appreciate some help. > > > > At this point this is becoming a bit of a problem for us and I would > really like to get past this. Alternatively if there is a particular > version of Fez known to work I could install and work with that. > > > > Thanks in advance, > > > > Conor > > > > *From:*Bernadette Houghton [mailto:ber...@de...] > *Sent:* Friday, June 22, 2012 12:52 PM > *To:* fez...@li... > *Subject:* Re: [Fez-users] unable to add cloned documents to collection > > > > Hi Conor, I’ve been spending the past 24 hours working on cloning of > doc types. I ended up repurposing an existing, unused document type, > rather than a cloned version. Have just now finished! > > > > I did follow the previous listserv thread, Subject: XSD HTML Matching > Editor, clearing out all xsdmf_id values at both the FOXML and the > FOXML-MODS-OAI-DC levels. But each time when saving a newly-created > document, I received a similar error to yours; mine was “Fatal error: > Call to a member function getTitle() on a non-object…”. I also tried > exporting a similar doc type, clearing out the xsdmf_id values and > then reimporting. Still no go. > > > > Sorry, no help to you. > > Bern > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Fez-users mailing list > Fez...@li... > https://lists.sourceforge.net/lists/listinfo/fez-users |