diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..14bc68c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nbproject/private/ \ No newline at end of file diff --git a/CollectionClass.inc b/CollectionClass.inc index a7c369a3..3040dbd6 100644 --- a/CollectionClass.inc +++ b/CollectionClass.inc @@ -1,7 +1,11 @@ + + +
+ ++ Located in /api/dublin_core.inc (line 15) +
+ + + + +Creates a new instance of the class by parsing dc_xml
+ + + +Constructs a Dublin_Core object from a Fedora_Item object and populates the $dc array.
+ +Serialize this object to XML and return it.
+ +Replace the given DC element with the values in $values
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /api/fedora_item.inc (line 13) +
+ + + + +Creates the minimal FOXML for a new Fedora object, which is then passed to ingest_from_FOXML to be added to the repository.
+ +Does a search using the "query" format followed by the Fedora REST APi.
+ + +Create an object to represent an item in the Fedora repository.
+Throws a SOAPException if the PID is not in the repository.
+ + + +Add a relationship string to this object's RELS-EXT.
+does not support rels-int yet.
+ +Returns an associative array of this object's datastreams. Results look like this:
+'DC' => array 'label' => string 'Dublin Core Record for this object' (length=34) 'MIMEType' => string 'text/xml' (length=8) 'RELS-EXT' => array 'label' => string 'RDF Statements about this object' (length=32) 'MIMEType' => string 'application/rdf+xml' (length=19)
+ +Retrieves and returns a SimpleXML list of this item's datastreams, and stores them as an instance variable for caching purposes.
+ +* DatastreamControlGroup controlGroup - String restricted to the values of "X", "M", "R", or "E" (InlineXML,Managed Content,Redirect, or External Referenced).
+String ID - The datastream ID (64 characters max). String versionID - The ID of the most recent datastream version String[] altIDs - Alternative IDs for the datastream, if any. String label - The Label of the datastream. boolean versionable - Whether the datastream is versionable. String MIMEType - The mime-type for the datastream, if set. String formatURI - The format uri for the datastream, if set. String createDate - The date the first version of the datastream was created. long size - The size of the datastream in Fedora. Only valid for inline XML metadata and managed content datastreams. String state - The state of the datastream. Will be "A" (active), "I" (inactive) or "D" (deleted). String location - If the datastream is an external reference or redirect, the url to the contents. TODO: Managed? String checksumType - The algorithm used to compute the checksum. One of "DEFAULT", "DISABLED", "MD5", "SHA-1", "SHA-256", "SHA-385", "SHA-512". String checksum - The value of the checksum represented as a hexadecimal string.
+ + +Returns a MIME type string for the given Datastream ID.
+ +Currently the Fedora API call getRelationships is reporting an uncaught exception so we will parse the RELS-EXT ourselves and simulate the documented behaviour.
+ +Removes this object form the repository.
+ +Removes the given relationship from the item's RELS-EXT and re-saves it.
+ +Creates a RELS-EXT XML stream from the supplied array and saves it to the item on the server.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Description of relsext
+ ++ Located in /api/rels-ext.inc (line 19) +
+ + + + +Constructor that builds itself by retrieving the RELS-EXT stream from the repository for the given Fedora_Item.
+ + + +Save the current state of the RELS-EXT array out to the repository item as a datastream.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Description of tagging
+ ++ Located in /api/tagging.inc (line 18) +
+ + + + +Saves an associative array of tags to a datastream.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Dublin_Core + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Exports a fedora collection object and all of its children in a format that will let you import them into another repository.
+Returns an array of pids that match the query contained in teh collection object's QUERY datastream or in the suppled $query parameter.
++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Function to to export all objects assocoiated with a given pid to the export area
++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Fedora_Item + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Returns a UTF-8-encoded transcripiton of the string given in $in_str.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + RelsExt + | ++ Description of relsext + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + TagSet + | ++ Description of tagging + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /ilives/book.inc (line 5) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/islandora_newspaper/Newspaper.inc (line 5) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /ilives/image_rotator_tagger_block.inc (line 88) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + IslandoraBook + | ++ + | +
Create a page object for each element in $image_list as a child object of $pid
++ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowILivesStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Newspaper + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/CollectionFormBuilder.inc (line 17) +
+ + +FormBuilder + | + --CollectionFormBuilder+ +
Inherited From FormBuilder
++ + FormBuilder::FormBuilder()+ +
+ + FormBuilder::buildQDCForm()
+ + FormBuilder::createFedoraDataStreams()
+ + FormBuilder::createQDCStream()
+ + FormBuilder::createRelationShips()
+ + FormBuilder::createStandardFedoraStuff()
+ + FormBuilder::handleQDCForm()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/CreateCollection.inc (line 15) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/DarwinCore.inc (line 9) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/DemoFormBuilder.inc (line 18) +
+ + +FormBuilder + | + --DemoFormBuilder+ +
Inherited From FormBuilder
++ + FormBuilder::FormBuilder()+ +
+ + FormBuilder::buildQDCForm()
+ + FormBuilder::createFedoraDataStreams()
+ + FormBuilder::createQDCStream()
+ + FormBuilder::createRelationShips()
+ + FormBuilder::createStandardFedoraStuff()
+ + FormBuilder::handleQDCForm()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+This class implements document (doc, odt, pdf, etc.) conversion for a generic multi-format document collection.
++ Located in /plugins/DocumentConverter.inc (line 16) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/Exiftool.inc (line 16) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/fedoraObject.inc (line 10) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/Ffmpeg.inc (line 16) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/FlvFormBuilder.inc (line 16) +
+ + +FormBuilder + | + --FlvFormBuilder+ +
Inherited From FormBuilder
++ + FormBuilder::FormBuilder()+ +
+ + FormBuilder::buildQDCForm()
+ + FormBuilder::createFedoraDataStreams()
+ + FormBuilder::createQDCStream()
+ + FormBuilder::createRelationShips()
+ + FormBuilder::createStandardFedoraStuff()
+ + FormBuilder::handleQDCForm()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/Flv.inc (line 16) +
+ + + + +Class | +Description | +
---|---|
+ + CollectionFormBuilder + | ++ + | +
+ + DemoFormBuilder + | ++ + | +
+ + FlvFormBuilder + | ++ + | +
+ + ModsFormBuilder + | ++ + | +
+ + QtFormBuilder + | ++ + | +
creates the RELS-EXT for the foxml
+ +creates the standard foxml properties
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/herbarium.inc (line 11) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/ImageManipulation.inc (line 16) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/ModsFormBuilder.inc (line 12) +
+ + +FormBuilder + | + --ModsFormBuilder+ +
Inherited From FormBuilder
++ + FormBuilder::FormBuilder()+ +
+ + FormBuilder::buildQDCForm()
+ + FormBuilder::createFedoraDataStreams()
+ + FormBuilder::createQDCStream()
+ + FormBuilder::createRelationShips()
+ + FormBuilder::createStandardFedoraStuff()
+ + FormBuilder::handleQDCForm()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/PersonalCollectionClass.inc (line 10) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/QtFormBuilder.php (line 18) +
+ + +FormBuilder + | + --QtFormBuilder+ +
Inherited From FormBuilder
++ + FormBuilder::FormBuilder()+ +
+ + FormBuilder::buildQDCForm()
+ + FormBuilder::createFedoraDataStreams()
+ + FormBuilder::createQDCStream()
+ + FormBuilder::createRelationShips()
+ + FormBuilder::createStandardFedoraStuff()
+ + FormBuilder::handleQDCForm()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/Refworks.inc (line 19) +
+ + + + +Creates the RELS-EXT for the foxml
+ +Creates the standard foxml properties
+ +Read the list of Users from the U1 field and Roles from the U2 field and add elements to the security policy record for this item, then add the record as the security policy datastream.
+ +Read the input file and generate a list of Reference items.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/ShowDemoStreamsInFieldSets.inc (line 15) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/map_viewer.inc (line 11) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/qt_viewer.inc (line 10) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/slide_viewer.inc (line 10) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /plugins/ShowStreamsInFieldSets.inc (line 13) +
+ + + + +Embed Google Docs' PDF viewer into the page.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + CollectionFormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + CreateCollection + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + DarwinCore + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + DemoFormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + DocumentConverter + | ++ This class implements document (doc, odt, pdf, etc.) conversion for a generic multi-format document collection. + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Exiftool + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Ffmpeg + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + FormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + FlvFormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ImageManipulation + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ModsFormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + PersonalCollectionClass + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + QtFormBuilder + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Refworks + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowDemoStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + FedoraObject + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + Herbarium + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowMapStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowQtStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ShowSlideStreamsInFieldSets + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /CollectionClass.inc (line 18) +
+ + + + +Creates a collection object. Optionally can associate it with a single collection with parameter $pid.
+ + + +grabs a xml form definition from a content model and builds
+the form using drupals forms api
+ +calls the methods defined in the content model rules .xml file stored in a Fedora object
+ +Grabs the rules from the content model stream
+file the file that has been uploaded
+ +gets a list of content models from a collection policy
+ +gets the form handler file, class and method and returns them in an array
+ + +using the collection policies pid namespace get a new pid by calling fedora' get next pid and appending it to the namespace $pid is the $pid of the content model $dsid is the datastream id of the content model.
+ +Gets objects related to this item. It will query the object for a Query stream and use that as a itql query
+or if there is no query stream it will use the default. If you pass a query to this method it will use the passed in query no matter what
+ +Queries a collection object for an xslt to format how the collection of objects is displayed.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
++ Located in /CollectionPolicy.inc (line 11) +
+ + +XMLDatastream + | + --CollectionPolicy+ +
Inherited from XMLDatastream
++ + + XMLDatastream::$dsid+ +
+ + + + XMLDatastream::$errors
+ + + + XMLDatastream::$forceSchema
+ + + + XMLDatastream::$pid
+ + + + XMLDatastream::$xml
+ + + + XMLDatastream::$XMLNS
+ +
Gets the default DSID to use for ContentModel datastreams.
+ +Ingests a new minimum Collection Policy datastream to the specified PID with the DSID specified. Initializes the policy with the specified values.
+Returns false on failure
+ + +Ingests a new Collection Policy datastream to the specified PID with the DSID specified. Clones the collection policy from the source collection pid. Returns false on failure.
+ + +Ingests a new Collection Policy datastream to the specified PID with the DSID specified. The file should be a valid collection policy XML. Returns false on failure.
+ + +Constructs a new CollectionPolicy object from the specified collection PID. If preFetch is disabled, then Islandora will not get the datastream until needed.
+(useful when cacheing) Returns FALSE on failure.
+ + + +Constructor NOTE: Use the static constructor methods whenever possible.
+ + + + +Adds a search term to the collection policy.
+Returns fase on failure.
+ +Attempts to convert from the old XML schema to the new by traversing the XML DOM and building a new DOM. When done $this->xml is replaced by the newly created DOM..
+ + +Gets a list of ContentModel objects supported by this collection.
+ +Gets the next available PID for the content model specified by the DSID parameter.
+ + +Gets the name of the relationship to use for members of this collection.
+Returns FALSE on failure.
+ + +Gets a list of search terms from the Collection Policy. If asArray is set it will return an associative array with the value, field name, and the default value.
+If not set, an array of just the values will be returned. If $recurse is TRUE, it will recurseively return the parents search terms if it has none until it returns a set of terms or reaches the top level collection. If $cache is TRUE, it will return a cached version (if available).
+ +Gets the path to the staging area to use for this collection. By default recurses to the parent collection if the staging area is undefined
+ + +Removes the specified content model from the collection policy. This will only prevent future ingests of the removed model to the collection. $cm should be a valid ContentModel object. Returns false on failure or when the CM was not found in the collection policy.
+ + + +Removes the search term specified by the field parameter from the collection policy.
+ +Sets the name of the relationship to use for members of this collection.
+Returns FALSE on failure.
+ + +Sets the path to the staging area to use for this collection. If specified path is blank (or false) it will remove the staging are path element from the collection policy.
+ + +Inherited From XMLDatastream
++ + XMLDatastream::__construct()+ +
+ + XMLDatastream::convertFromOldSchema()
+ + XMLDatastream::dumpXml()
+ + XMLDatastream::getDSIDFromIdentifier()
+ + XMLDatastream::getHistory()
+ + XMLDatastream::getIdentifier()
+ + XMLDatastream::getPidFromIdentifier()
+ + XMLDatastream::loadFromFile()
+ + XMLDatastream::purgeVersions()
+ + XMLDatastream::saveToFedora()
+ + XMLDatastream::validate()
+ + XMLDatastream::validDsid()
+ + XMLDatastream::validPid()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
++ Located in /ConnectionHelper.inc (line 17) +
+ + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
++ Located in /ContentModel.inc (line 11) +
+ + +XMLDatastream + | + --ContentModel+ +
Inherited from XMLDatastream
++ + + XMLDatastream::$dsid+ +
+ + + + XMLDatastream::$errors
+ + + + XMLDatastream::$forceSchema
+ + + + XMLDatastream::$pid
+ + + + XMLDatastream::$xml
+ + + + XMLDatastream::$XMLNS
+ +
Gets the default DSID to use for ContentModel datastreams.
+ +Ingests a minimum Content Model to the specified pid/dsid.
+Returns false on failure.
+ + +Ingests a Content Model from a file to the specified pid/dsid .
+Returns false on failure.
+ + +Ingests a Content Model from an existing model to the specified pid/dsid .
+Returns false on failure.
+ + +Constructs a ContentModel object from the PID of the model in Fedora.
+If DSID is specified it will use that datastream as the model, otherwise it will use the default (usually ISLANDORACM). PID_NAMESPACE and name can also be initialized from the collection policy. Returns false on failure.
NOTE: $name will be overwritten with the content model name found in the datastream when the model is first validated.\
+ + +Constructs a ContentModel object from a Fedora item by getting the first content model from the hasModel relationship.
+Returns false on failure.
+ + + + +Constructor NOTE: Use the static constructor methods whenever possible.
+ + +Adds an authority list item to a form element.
+ + +Adds the named form.
+ + +Add an ingest form element to the model.
+ + +Adds an allowed mimetype to the model.
+ + +Builds an edit metadata form using the method specified in the <edit_metadata_method> element
+ + +Builds an ingest form using the method specified in <form_builder_method> element of <ingest_form> Returns FALSE on failure.
+ + +Attempts to convert from the old XML schema to the new by traversing the XML DOM and building a new DOM. When done $this->xml is replaced by the newly created DOM..
+ + +Decrements an authority list item from a form element in the list of elements.
+Updates the "order". This method is simply an overload to the incAuthListItem which has a direction parameter.
+ + +Decrements an ingest form element in the list of elements.
+Updates the "order". This method is simply an overload to the incIngestFormElement which has a direction parameter.
TODO: Might be useful to move multiple places at once, or define a method to move to an absolute position.
+ + +Calls all defined display methods for the ContentModel.
+The PID specified is passed to the constructor of the display class(es) specified in the Content Model.
+ + +Edits a form element with attribute name='$name' from the 'forms' element.
+ + +Edits the ingest form element specified.
+NOTE: The element name can not be changed. To update an elements name it must be deleted and added with the new name.
+ + +Executes the add datastream method for the specified datastream on the specified file.
+Returns FALSE on failure.
+ + +Executes the form handler from the <form_builder_method> element of <ingest_form>.
+ + +Executes the ingest rules that apply to the specified file/mimetype.
+Returns FALSE on failure.
If $preview is TRUE, then only execute rules with a parameter 'preview'. Used to generate previews for the file chooser.
+ + +Gets an associative array describing the edit metadata method.
+Array has the following keys: 'file', 'class', 'method', 'handler', 'dsid'
+ + +Find the form element with name $name.
+ + +Gets a list of all parameters that belong to the specified ingest form element.
+ + +Gets an array of form elements to use in the ingest form. The results of this array are passed to the specified ingest form builder. The form builder can optionally not use the elements as defined in the form builder if more complex forms or behaviour is required.
+Each element has the following keys: 'label', 'type', 'required', 'description', and if defined, 'authoritative_list' and/or 'parameters'
+ + +Gets a list of valid mimetypes that can apply to this model.
+Returns FALSE on failure.
+ + +Gets the name of the ContentModel Returns false on failure.
+ + +Gets a list of service deployments that this model has.
+NOTE: Not currently being used.
+ + +Handles the edit metadata form using the handler specified in the <edit_metadata_method> element Returns FALSE on failure.
+ + +Increments (or decrements) an authority list item from a form element in the list of elements.
+Updates the "order".
+ + +Increments (or decrements) ingest form element in the list of elements.
+Updates the "order". The $reorder parameter accepts 'inc' or 'dec' to specify the direction to move (defaults to increment.)
TODO: Might be useful to move multiple places at once, or define a method to move to an absolute position.
+ + +Gets a list of datastreams from the ContentModel (not including the QDC ds if it is listed).
+Returns FALSE on failure.
+ + +Removes an authority list item from a form element.
+ + +Removes the edit data method from the Content Model.
+ + +Removes the named form.
+ + +Removes an ingest form element from the list of ingest form elements.
+ + +Removes an allowed mimetype from the model.
+ + +Sets a parameter of an ingest form element. If the value of the element is FALSE the parameter will be removed entirely (if you want to store false as a value, then send the String "false").
+ + +Update the Edit Metadata Method defined in the Content Model
+ + +Inherited From XMLDatastream
++ + XMLDatastream::__construct()+ +
+ + XMLDatastream::convertFromOldSchema()
+ + XMLDatastream::dumpXml()
+ + XMLDatastream::getDSIDFromIdentifier()
+ + XMLDatastream::getHistory()
+ + XMLDatastream::getIdentifier()
+ + XMLDatastream::getPidFromIdentifier()
+ + XMLDatastream::loadFromFile()
+ + XMLDatastream::purgeVersions()
+ + XMLDatastream::saveToFedora()
+ + XMLDatastream::validate()
+ + XMLDatastream::validDsid()
+ + XMLDatastream::validPid()
+
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+This class inspired by Chris Jean's work, here: http://chrisjean.com/2009/02/14/generating-mime-type-in-php-is-not-magic/
+It does some MIME trickery, inspired by the need to to deal with Openoffice and MS Office 2007 file formats -- which are often mis-interpreted by mime-magic, fileinfo, and the *nix `file` command.
In Drupal 6, we also make use of file_get_mimetype. See: http://api.drupal.org/api/function/file_get_mimetype/6 ... however this only provides a uni-directional lookup (ext->mime). While I don't have a specific use case for a mime->extension lookup, I think it's good to have in here.
Drupal 7 will have better mime handlers. See: http://api.drupal.org/api/function/file_default_mimetype_mapping/7
++ Located in /MimeClass.inc (line 29) +
+ + + + +function: getType description: An alias to get_mimetype, for backwards-compatibility with our old mimetype class.
+ + +function: get_extension
+description: returns *one* valid file extension for a given $mime_type
+ + +function: get_mimetype
+description: returns a mimetype associated with the file extension of $filename
+ + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /ObjectHelper.inc (line 15) +
+ + + + +gets a list of datastreams and related function that we should use to show datastreams in their own fieldsets
+from the content model associated with the object
+ +internal function
+ +Builds an array of drupal links for use in breadcrumbs.
+ +returns the mime type
+ +Returns XML description of the object (export).
+ +Queries fedora for what we call the qualified dublin core. Currently only dc.coverage has
+any qualified fields Transforms the returned xml to html This is the default metadata view. With icons for searching a dublin core field
+ +returns a stream from a fedora object given a pid and dsid
+ +Get a tree of related pids - for the basket functionality
+ +Look in the content model for rules to run on the specified datastream.
+ +Get children of PID - but only 2 levels deep
+ +Gets a list of datastreams from an object using its pid
+We make some assumptions here. We have implemented a policy that we ingest in our repository will have TN (thumbnail) datastream. Even audio will have a picture of a speaker or something. This is not critical but makes searches etc. look better if there is a TN stream. This diplays all the streams in a collapsed fieldset at the bottom of the object page. you can implement a content model if you would like certain streams displayed in certain ways.
+ +Gets the parent objects that this object is related to
+ +Grabs a stream from fedora sets the mimetype and returns it. $dsID is the datastream id. If $forceSoap is set, the function will always buffer the datastream from fedora. Otherwise, it will try and use a redirect if possible.
+ +internal function uses an xsl to parse the sparql xml returned from the ITQL query
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /SearchClass.inc (line 9) +
+ + + + +apply an xslt to lucene gsearch search results
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /SecurityClass.inc (line 16) +
+ + + + +Add a list of allowed users and roles to the given policy stream and return it.
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /XMLDatastream.inc (line 9) +
+ + + + +Class | +Description | +
---|---|
+ + CollectionPolicy + | ++ + | +
+ + ContentModel + | ++ + | +
Parses the DSID from an identifier.
+TODO: combine this method with getPidFromIdentifier?
+ + +Parses an PID from an identifier.
+ + +Constructs an XMLDatastream object from the XML file specified.
+Returns FALSE on failure.
+ + + + +validDsid Validates a fedora Dsid based on the the allowed XML standard NCName.
+The regexp is a "regular" subset of names allowed, it excludes some extended hex characters that are technically permitted. http://www.fedora-commons.org/confluence/display/FCR30/Fedora+Identifiers
+ + +validPid Validates a fedora PID based on the regexp provided in the fedora 3.3 documentation.
+http://www.fedora-commons.org/confluence/display/FCR30/Fedora+Identifiers
+ + +Constructor NOTE: Use the static constructor methods whenever possible.
+ + + + +Attempts to convert from the old XML schema to the new by traversing the XML DOM and building a new DOM. When done $this->xml is replaced by the newly created DOM..
+ + +Dumps the XMLDatastream as an XML String
+ + +Gets the history of the datastream from fedora.
+Returns false on failure.
+ + +Gets the identifier for this XMLDatastream Returns FALSE on failure.
+NOTE: not available if constructed directly from file.
+ + +Purges veersions of the datastream newer than and including the start_date. If End date is specified, it can be used to purge a range of versions instead. Date should be in DATE_RFC822 format
+ + +Saves the current XML datastream back to fedora. The XML must validate.
+ + +Validates the XMLDatastream against the schema location
+defined by the xmlns:schemaLocation attribute of the root element. If the xmlns:schemaLocation attribute does not exist, then it is assumed to be the old schema and it attempts to convert using the convertFromOldSchema method.
TODO: Maybe change it so that it always validates against a known schema. This makes more sense because this class assumes the structure to be known after it has been validated.
+ + ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + CollectionClass + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + CollectionPolicy + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ConnectionHelper + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ContentModel + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + MimeClass + | ++ This class inspired by Chris Jean's work, here: http://chrisjean.com/2009/02/14/generating-mime-type-in-php-is-not-magic/ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + ObjectHelper + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + SearchClass + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + SecurityClass + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + XMLDatastream + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Invokes a hook to any dependent modules asking them if their installations require any fedora objects to be present. Modules implementing this hook should return an array of arrays of the form:
+array( 'pid', 'path-to-foxml-file', 'dsid', 'path-to-datastream-file', int dsversion)
where the last three options are optional. A module can either point to a simple foxml file to install, or can specify a datastreamstream to check for, with a path to load the datastream from if it isn't there. Optionally a version number can be included, to enable updating of content model or collection policy streams that may have been updated. THis is a simple whole number that should be incremented when changed. This value appears in as an attribute of the topmost element of the stream, e.g.,:
<?xml version="1.0" encoding="utf-8"?> <content_model name="Collection" version="2" ...
Datastreams which don't have this element are assumed to be at version 0.
+Check for installed objects and add a 'Update' or 'Install' button if some objects are missing.
++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
+Class | +Description | +
---|---|
+ + formClass + | ++ + | +
+ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Located in /formClass.inc (line 13) +
+ + + + +Drupal's permissions at this point no xacml yet. xacml decisions are made by fedora
+ +Create a multi step form (wizard) for ingesting objects into Fedora
+ +Creates a drupal form to edit either the QDC or DC datastream
+ +Create edit form.
+ +Create the QDC Ingest Form.
+ +Creates the first page of the ingest form for editing QDC.
+ +Create the second page of the ingest form for editing QDC
+ +Creates a form for replacing datastream
+ ++ Documentation generated on Thu, 14 Jul 2011 16:29:54 -0300 by phpDocumentor 1.4.3 +
++ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+ + \ No newline at end of file diff --git a/docs/elementindex.html b/docs/elementindex.html new file mode 100644 index 00000000..6361a534 --- /dev/null +++ b/docs/elementindex.html @@ -0,0 +1,3911 @@ + + + + + ++ Documentation generated on Thu, 14 Jul 2011 16:29:55 -0300 by phpDocumentor 1.4.3 +
+ + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..83a39704 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,24 @@ + + + + + ++ Generated by + phpDocumentor 1.4.3 +
+ + \ No newline at end of file diff --git a/docs/media/banner.css b/docs/media/banner.css new file mode 100644 index 00000000..19a383c3 --- /dev/null +++ b/docs/media/banner.css @@ -0,0 +1,32 @@ +body +{ + background-color: #EEEEEE; + margin: 0px; + padding: 0px; +} + +/* Banner (top bar) classes */ + +.banner { } + +.banner-menu +{ + clear: both; + padding: .5em; + border-top: 2px solid #AAAAAA; +} + +.banner-title +{ + text-align: right; + font-size: 20pt; + font-weight: bold; + margin: .2em; +} + +.package-selector +{ + background-color: #DDDDDD; + border: 1px solid #AAAAAA; + color: #000090; +} diff --git a/docs/media/images/AbstractClass.png b/docs/media/images/AbstractClass.png new file mode 100644 index 00000000..afa9d1d9 Binary files /dev/null and b/docs/media/images/AbstractClass.png differ diff --git a/docs/media/images/AbstractClass_logo.png b/docs/media/images/AbstractClass_logo.png new file mode 100644 index 00000000..8f65c390 Binary files /dev/null and b/docs/media/images/AbstractClass_logo.png differ diff --git a/docs/media/images/AbstractMethod.png b/docs/media/images/AbstractMethod.png new file mode 100644 index 00000000..605ccbe5 Binary files /dev/null and b/docs/media/images/AbstractMethod.png differ diff --git a/docs/media/images/AbstractPrivateClass.png b/docs/media/images/AbstractPrivateClass.png new file mode 100644 index 00000000..53d76c63 Binary files /dev/null and b/docs/media/images/AbstractPrivateClass.png differ diff --git a/docs/media/images/AbstractPrivateClass_logo.png b/docs/media/images/AbstractPrivateClass_logo.png new file mode 100644 index 00000000..4e68f570 Binary files /dev/null and b/docs/media/images/AbstractPrivateClass_logo.png differ diff --git a/docs/media/images/AbstractPrivateMethod.png b/docs/media/images/AbstractPrivateMethod.png new file mode 100644 index 00000000..41cc9f02 Binary files /dev/null and b/docs/media/images/AbstractPrivateMethod.png differ diff --git a/docs/media/images/Class.png b/docs/media/images/Class.png new file mode 100644 index 00000000..cf548d27 Binary files /dev/null and b/docs/media/images/Class.png differ diff --git a/docs/media/images/Class_logo.png b/docs/media/images/Class_logo.png new file mode 100644 index 00000000..6f223c47 Binary files /dev/null and b/docs/media/images/Class_logo.png differ diff --git a/docs/media/images/Constant.png b/docs/media/images/Constant.png new file mode 100644 index 00000000..a9c6f28b Binary files /dev/null and b/docs/media/images/Constant.png differ diff --git a/docs/media/images/Constructor.png b/docs/media/images/Constructor.png new file mode 100644 index 00000000..3f16222b Binary files /dev/null and b/docs/media/images/Constructor.png differ diff --git a/docs/media/images/Destructor.png b/docs/media/images/Destructor.png new file mode 100644 index 00000000..f28528f0 Binary files /dev/null and b/docs/media/images/Destructor.png differ diff --git a/docs/media/images/Function.png b/docs/media/images/Function.png new file mode 100644 index 00000000..902fe258 Binary files /dev/null and b/docs/media/images/Function.png differ diff --git a/docs/media/images/Global.png b/docs/media/images/Global.png new file mode 100644 index 00000000..7281bd2a Binary files /dev/null and b/docs/media/images/Global.png differ diff --git a/docs/media/images/I.png b/docs/media/images/I.png new file mode 100644 index 00000000..e8512fb9 Binary files /dev/null and b/docs/media/images/I.png differ diff --git a/docs/media/images/Index.png b/docs/media/images/Index.png new file mode 100644 index 00000000..6558ec39 Binary files /dev/null and b/docs/media/images/Index.png differ diff --git a/docs/media/images/Interface.png b/docs/media/images/Interface.png new file mode 100644 index 00000000..e6cd51ed Binary files /dev/null and b/docs/media/images/Interface.png differ diff --git a/docs/media/images/Interface_logo.png b/docs/media/images/Interface_logo.png new file mode 100644 index 00000000..6f223c47 Binary files /dev/null and b/docs/media/images/Interface_logo.png differ diff --git a/docs/media/images/L.png b/docs/media/images/L.png new file mode 100644 index 00000000..eb334eda Binary files /dev/null and b/docs/media/images/L.png differ diff --git a/docs/media/images/Lminus.png b/docs/media/images/Lminus.png new file mode 100644 index 00000000..f7c43c0a Binary files /dev/null and b/docs/media/images/Lminus.png differ diff --git a/docs/media/images/Lplus.png b/docs/media/images/Lplus.png new file mode 100644 index 00000000..848ec2fc Binary files /dev/null and b/docs/media/images/Lplus.png differ diff --git a/docs/media/images/Method.png b/docs/media/images/Method.png new file mode 100644 index 00000000..9b215784 Binary files /dev/null and b/docs/media/images/Method.png differ diff --git a/docs/media/images/Page.png b/docs/media/images/Page.png new file mode 100644 index 00000000..ffe7986e Binary files /dev/null and b/docs/media/images/Page.png differ diff --git a/docs/media/images/Page_logo.png b/docs/media/images/Page_logo.png new file mode 100644 index 00000000..44ce0b3c Binary files /dev/null and b/docs/media/images/Page_logo.png differ diff --git a/docs/media/images/PrivateClass.png b/docs/media/images/PrivateClass.png new file mode 100644 index 00000000..470e6d56 Binary files /dev/null and b/docs/media/images/PrivateClass.png differ diff --git a/docs/media/images/PrivateClass_logo.png b/docs/media/images/PrivateClass_logo.png new file mode 100644 index 00000000..590e0064 Binary files /dev/null and b/docs/media/images/PrivateClass_logo.png differ diff --git a/docs/media/images/PrivateMethod.png b/docs/media/images/PrivateMethod.png new file mode 100644 index 00000000..d01f2b31 Binary files /dev/null and b/docs/media/images/PrivateMethod.png differ diff --git a/docs/media/images/PrivateVariable.png b/docs/media/images/PrivateVariable.png new file mode 100644 index 00000000..d76b21d4 Binary files /dev/null and b/docs/media/images/PrivateVariable.png differ diff --git a/docs/media/images/StaticMethod.png b/docs/media/images/StaticMethod.png new file mode 100644 index 00000000..9b215784 Binary files /dev/null and b/docs/media/images/StaticMethod.png differ diff --git a/docs/media/images/StaticVariable.png b/docs/media/images/StaticVariable.png new file mode 100644 index 00000000..8e820193 Binary files /dev/null and b/docs/media/images/StaticVariable.png differ diff --git a/docs/media/images/T.png b/docs/media/images/T.png new file mode 100644 index 00000000..30173254 Binary files /dev/null and b/docs/media/images/T.png differ diff --git a/docs/media/images/Tminus.png b/docs/media/images/Tminus.png new file mode 100644 index 00000000..2260e424 Binary files /dev/null and b/docs/media/images/Tminus.png differ diff --git a/docs/media/images/Tplus.png b/docs/media/images/Tplus.png new file mode 100644 index 00000000..2c8d8f4f Binary files /dev/null and b/docs/media/images/Tplus.png differ diff --git a/docs/media/images/Variable.png b/docs/media/images/Variable.png new file mode 100644 index 00000000..8e820193 Binary files /dev/null and b/docs/media/images/Variable.png differ diff --git a/docs/media/images/blank.png b/docs/media/images/blank.png new file mode 100644 index 00000000..cee9cd37 Binary files /dev/null and b/docs/media/images/blank.png differ diff --git a/docs/media/images/class_folder.png b/docs/media/images/class_folder.png new file mode 100644 index 00000000..84e9587a Binary files /dev/null and b/docs/media/images/class_folder.png differ diff --git a/docs/media/images/empty.png b/docs/media/images/empty.png new file mode 100644 index 00000000..d5683865 Binary files /dev/null and b/docs/media/images/empty.png differ diff --git a/docs/media/images/file.png b/docs/media/images/file.png new file mode 100644 index 00000000..0bb2427f Binary files /dev/null and b/docs/media/images/file.png differ diff --git a/docs/media/images/folder.png b/docs/media/images/folder.png new file mode 100644 index 00000000..a2d79f8d Binary files /dev/null and b/docs/media/images/folder.png differ diff --git a/docs/media/images/function_folder.png b/docs/media/images/function_folder.png new file mode 100644 index 00000000..8b3d6e3b Binary files /dev/null and b/docs/media/images/function_folder.png differ diff --git a/docs/media/images/minus.gif b/docs/media/images/minus.gif new file mode 100644 index 00000000..f502662b Binary files /dev/null and b/docs/media/images/minus.gif differ diff --git a/docs/media/images/next_button.png b/docs/media/images/next_button.png new file mode 100644 index 00000000..cdbc615d Binary files /dev/null and b/docs/media/images/next_button.png differ diff --git a/docs/media/images/next_button_disabled.png b/docs/media/images/next_button_disabled.png new file mode 100644 index 00000000..4a11780f Binary files /dev/null and b/docs/media/images/next_button_disabled.png differ diff --git a/docs/media/images/package.png b/docs/media/images/package.png new file mode 100644 index 00000000..b04cf566 Binary files /dev/null and b/docs/media/images/package.png differ diff --git a/docs/media/images/package_folder.png b/docs/media/images/package_folder.png new file mode 100644 index 00000000..6162bafd Binary files /dev/null and b/docs/media/images/package_folder.png differ diff --git a/docs/media/images/plus.gif b/docs/media/images/plus.gif new file mode 100644 index 00000000..eeca02ce Binary files /dev/null and b/docs/media/images/plus.gif differ diff --git a/docs/media/images/previous_button.png b/docs/media/images/previous_button.png new file mode 100644 index 00000000..327fdbc2 Binary files /dev/null and b/docs/media/images/previous_button.png differ diff --git a/docs/media/images/previous_button_disabled.png b/docs/media/images/previous_button_disabled.png new file mode 100644 index 00000000..c02ff64b Binary files /dev/null and b/docs/media/images/previous_button_disabled.png differ diff --git a/docs/media/images/private_class_logo.png b/docs/media/images/private_class_logo.png new file mode 100644 index 00000000..590e0064 Binary files /dev/null and b/docs/media/images/private_class_logo.png differ diff --git a/docs/media/images/tutorial.png b/docs/media/images/tutorial.png new file mode 100644 index 00000000..bc197375 Binary files /dev/null and b/docs/media/images/tutorial.png differ diff --git a/docs/media/images/tutorial_folder.png b/docs/media/images/tutorial_folder.png new file mode 100644 index 00000000..2a468b2a Binary files /dev/null and b/docs/media/images/tutorial_folder.png differ diff --git a/docs/media/images/up_button.png b/docs/media/images/up_button.png new file mode 100644 index 00000000..ff36c593 Binary files /dev/null and b/docs/media/images/up_button.png differ diff --git a/docs/media/lib/classTree.js b/docs/media/lib/classTree.js new file mode 100644 index 00000000..ebb3fb4a --- /dev/null +++ b/docs/media/lib/classTree.js @@ -0,0 +1,454 @@ +/*----------------------------------------\ +| Cross Browser Tree Widget 1.1 | +|-----------------------------------------| +| Created by Emil A. Eklund (eae@eae.net) | +| For WebFX (http://webfx.eae.net/) | +|-----------------------------------------| +| This script is provided as is without | +| any warranty whatsoever. It may be used | +| free of charge for non commerical sites | +| For commerical use contact the author | +| of this script for further details. | +|-----------------------------------------| +| Created 2000-12-11 | Updated 2001-09-06 | +\----------------------------------------*/ + +var webFXTreeConfig = { + rootIcon : 'media/images/empty.png', + openRootIcon : 'media/images/empty.png', + folderIcon : 'media/images/empty.png', + openFolderIcon : 'media/images/empty.png', + fileIcon : 'media/images/empty.png', + iIcon : 'media/images/I.png', + lIcon : 'media/images/L.png', + lMinusIcon : 'media/images/Lminus.png', + lPlusIcon : 'media/images/Lplus.png', + tIcon : 'media/images/T.png', + tMinusIcon : 'media/images/Tminus.png', + tPlusIcon : 'media/images/Tplus.png', + blankIcon : 'media/images/blank.png', + defaultText : 'Tree Item', + defaultAction : 'javascript:void(0);', + defaultTarget : 'right', + defaultBehavior : 'classic' +}; + +var webFXTreeHandler = { + idCounter : 0, + idPrefix : "webfx-tree-object-", + all : {}, + behavior : null, + selected : null, + getId : function() { return this.idPrefix + this.idCounter++; }, + toggle : function (oItem) { this.all[oItem.id.replace('-plus','')].toggle(); }, + select : function (oItem) { this.all[oItem.id.replace('-icon','')].select(); }, + focus : function (oItem) { this.all[oItem.id.replace('-anchor','')].focus(); }, + blur : function (oItem) { this.all[oItem.id.replace('-anchor','')].blur(); }, + keydown : function (oItem) { return this.all[oItem.id].keydown(window.event.keyCode); }, + cookies : new WebFXCookie() +}; + +/* + * WebFXCookie class + */ + +function WebFXCookie() { + if (document.cookie.length) { this.cookies = ' ' + document.cookie; } +} + +WebFXCookie.prototype.setCookie = function (key, value) { + document.cookie = key + "=" + escape(value); +} + +WebFXCookie.prototype.getCookie = function (key) { + if (this.cookies) { + var start = this.cookies.indexOf(' ' + key + '='); + if (start == -1) { return null; } + var end = this.cookies.indexOf(";", start); + if (end == -1) { end = this.cookies.length; } + end -= start; + var cookie = this.cookies.substr(start,end); + return unescape(cookie.substr(cookie.indexOf('=') + 1, cookie.length - cookie.indexOf('=') + 1)); + } + else { return null; } +} + +/* + * WebFXTreeAbstractNode class + */ + +function WebFXTreeAbstractNode(sText, sAction, sTarget) { + this.childNodes = []; + this.id = webFXTreeHandler.getId(); + this.text = sText || webFXTreeConfig.defaultText; + this.action = sAction || webFXTreeConfig.defaultAction; + this.targetWindow = sTarget || webFXTreeConfig.defaultTarget; + this._last = false; + webFXTreeHandler.all[this.id] = this; +} + +WebFXTreeAbstractNode.prototype.add = function (node) { + node.parentNode = this; + this.childNodes[this.childNodes.length] = node; + var root = this; + if (this.childNodes.length >=2) { + this.childNodes[this.childNodes.length -2]._last = false; + } + while (root.parentNode) { root = root.parentNode; } + if (root.rendered) { + if (this.childNodes.length >= 2) { + document.getElementById(this.childNodes[this.childNodes.length -2].id + '-plus').src = ((this.childNodes[this.childNodes.length -2].folder)?webFXTreeConfig.tMinusIcon:webFXTreeConfig.tIcon); + if (this.childNodes[this.childNodes.length -2].folder) { + this.childNodes[this.childNodes.length -2].plusIcon = webFXTreeConfig.tPlusIcon; + this.childNodes[this.childNodes.length -2].minusIcon = webFXTreeConfig.tMinusIcon; + } + this.childNodes[this.childNodes.length -2]._last = false; + } + this._last = true; + var foo = this; + while (foo.parentNode) { + for (var i = 0; i < foo.parentNode.childNodes.length; i++) { + if (foo.id == foo.parentNode.childNodes[i].id) { break; } + } + if (++i == foo.parentNode.childNodes.length) { foo.parentNode._last = true; } + else { foo.parentNode._last = false; } + foo = foo.parentNode; + } + document.getElementById(this.id + '-cont').insertAdjacentHTML("beforeEnd", node.toString()); + if ((!this.folder) && (!this.openIcon)) { + this.icon = webFXTreeConfig.folderIcon; + this.openIcon = webFXTreeConfig.openFolderIcon; + } + this.folder = true; + this.indent(); + this.expand(); + } + return node; +} + +WebFXTreeAbstractNode.prototype.toggle = function() { + if (this.folder) { + if (this.open) { this.collapse(); } + else { this.expand(); } + } +} + +WebFXTreeAbstractNode.prototype.select = function() { + document.getElementById(this.id + '-anchor').focus(); +} + +WebFXTreeAbstractNode.prototype.focus = function() { + webFXTreeHandler.selected = this; + if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.openIcon; } + document.getElementById(this.id + '-anchor').style.backgroundColor = 'highlight'; + document.getElementById(this.id + '-anchor').style.color = 'highlighttext'; + document.getElementById(this.id + '-anchor').focus(); +} + +WebFXTreeAbstractNode.prototype.blur = function() { + if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.icon; } + document.getElementById(this.id + '-anchor').style.backgroundColor = 'transparent'; + document.getElementById(this.id + '-anchor').style.color = 'menutext'; +} + +WebFXTreeAbstractNode.prototype.doExpand = function() { + if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.openIcon; } + if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'block'; } + this.open = true; + webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '1'); +} + +WebFXTreeAbstractNode.prototype.doCollapse = function() { + if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.icon; } + if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'none'; } + this.open = false; + webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '0'); +} + +WebFXTreeAbstractNode.prototype.expandAll = function() { + this.expandChildren(); + if ((this.folder) && (!this.open)) { this.expand(); } +} + +WebFXTreeAbstractNode.prototype.expandChildren = function() { + for (var i = 0; i < this.childNodes.length; i++) { + this.childNodes[i].expandAll(); +} } + +WebFXTreeAbstractNode.prototype.collapseAll = function() { + if ((this.folder) && (this.open)) { this.collapse(); } + this.collapseChildren(); +} + +WebFXTreeAbstractNode.prototype.collapseChildren = function() { + for (var i = 0; i < this.childNodes.length; i++) { + this.childNodes[i].collapseAll(); +} } + +WebFXTreeAbstractNode.prototype.indent = function(lvl, del, last, level) { + /* + * Since we only want to modify items one level below ourself, + * and since the rightmost indentation position is occupied by + * the plus icon we set this to -2 + */ + if (lvl == null) { lvl = -2; } + var state = 0; + for (var i = this.childNodes.length - 1; i >= 0 ; i--) { + state = this.childNodes[i].indent(lvl + 1, del, last, level); + if (state) { return; } + } + if (del) { + if (level >= this._level) { + if (this.folder) { + document.getElementById(this.id + '-plus').src = (this.open)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.lPlusIcon; + this.plusIcon = webFXTreeConfig.lPlusIcon; + this.minusIcon = webFXTreeConfig.lMinusIcon; + } + else { document.getElementById(this.id + '-plus').src = webFXTreeConfig.lIcon; } + return 1; + } + } + var foo = document.getElementById(this.id + '-indent-' + lvl); + if (foo) { + if ((del) && (last)) { foo._last = true; } + if (foo._last) { foo.src = webFXTreeConfig.blankIcon; } + else { foo.src = webFXTreeConfig.iIcon; } + } + return 0; +} + +/* + * WebFXTree class + */ + +function WebFXTree(sText, sAction, sBehavior, sIcon, sOpenIcon) { + this.base = WebFXTreeAbstractNode; + this.base(sText, sAction); + this.icon = sIcon || webFXTreeConfig.rootIcon; + this.openIcon = sOpenIcon || webFXTreeConfig.openRootIcon; + /* Defaults to open */ + this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '0')?false:true; + this.folder = true; + this.rendered = false; + if (!webFXTreeHandler.behavior) { webFXTreeHandler.behavior = sBehavior || webFXTreeConfig.defaultBehavior; } + this.targetWindow = 'right'; +} + +WebFXTree.prototype = new WebFXTreeAbstractNode; + +WebFXTree.prototype.setBehavior = function (sBehavior) { + webFXTreeHandler.behavior = sBehavior; +}; + +WebFXTree.prototype.getBehavior = function (sBehavior) { + return webFXTreeHandler.behavior; +}; + +WebFXTree.prototype.getSelected = function() { + if (webFXTreeHandler.selected) { return webFXTreeHandler.selected; } + else { return null; } +} + +WebFXTree.prototype.remove = function() { } + +WebFXTree.prototype.expand = function() { + this.doExpand(); +} + +WebFXTree.prototype.collapse = function() { + this.focus(); + this.doCollapse(); +} + +WebFXTree.prototype.getFirst = function() { + return null; +} + +WebFXTree.prototype.getLast = function() { + return null; +} + +WebFXTree.prototype.getNextSibling = function() { + return null; +} + +WebFXTree.prototype.getPreviousSibling = function() { + return null; +} + +WebFXTree.prototype.keydown = function(key) { + if (key == 39) { this.expand(); return false; } + if (key == 37) { this.collapse(); return false; } + if ((key == 40) && (this.open)) { this.childNodes[0].select(); return false; } + return true; +} + +WebFXTree.prototype.toString = function() { + var str = "+Islandora Fedora Repository Module + +For installation and customization instructions please see the documentation and the DuraSpace Wiki: + +https://wiki.duraspace.org/display/ISLANDORA/Islandora + +Specifically the Islandora Guide: + +https://wiki.duraspace.org/display/ISLANDORA/Islandora+Guide + +All bugs, feature requests and improvement suggestions are tracked at the DuraSpace JIRA: + +https://jira.duraspace.org/browse/ISLANDORA ++
+ Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3 +
+ + \ No newline at end of file diff --git a/fedora_repository.solutionpacks.inc b/fedora_repository.solutionpacks.inc index ad49ce86..32e76be4 100644 --- a/fedora_repository.solutionpacks.inc +++ b/fedora_repository.solutionpacks.inc @@ -1,5 +1,10 @@