Re: [Dspace-tech] [Dspace-devel] Looking for Resources - Aspect Modification and the dim:

2010-05-07 Thread Mark Diggory
On Thu, May 6, 2010 at 6:54 PM, Mark H. Wood mw...@iupui.edu wrote:

 As noted by Mark Diggory, a Theme may call back into Cocoon with an
 internal request for more metadata.  I've been meaning to ask why it
 was done that way.

My assumption is that it was done because when all the METS is
embedded into the DRI it can slow processing, think of it as only
getting what you need.  I liken it to: The DRI is the stage, the
various METS sources are the players, at various points in the
play, you need to bring different players to the stage to speak
their parts.

 IIRC this was added between the final separate
 release of Manakin and its incorporation into stock DSpace 1.5.

Yes, it was a question of performance and flexibility.

 We could all do with an updated theory of operation for the later
 stages of XMLUI.

On a wild tangent... In theory, we might see a day when METS is
replaced in the XMLUI by something else like FOXML, ATOM, RDF,
or Place your favorite format here. Then we see that a DRI page is
really just the definition of an View over a set of resources,
resources with resolvable URI that can be gotten and presented to the
user.

Mark
-- 
Mark R. Diggory
Head of U.S. Operations - @mire

http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] Looking for Resources - Aspect Modification and the dim:

2010-05-07 Thread Mark H. Wood
On Thu, May 06, 2010 at 11:12:43PM -0700, Mark Diggory wrote:
 On Thu, May 6, 2010 at 6:54 PM, Mark H. Wood mw...@iupui.edu wrote:
[snip]
  We could all do with an updated theory of operation for the later
  stages of XMLUI.
 
 On a wild tangent... In theory, we might see a day when METS is
 replaced in the XMLUI by something else like FOXML, ATOM, RDF,
 or Place your favorite format here. Then we see that a DRI page is
 really just the definition of an View over a set of resources,
 resources with resolvable URI that can be gotten and presented to the
 user.

So the Aspect chain's role goes from specifying here are the
context-dependent things that are important to here is where you get
the context-dependent things that are important?  Roles and missions
were ably explained for Manakin 1.0, but things became muddier (at
least, in my mind) in the integrated XMLUI.  This helps.

Since a Theme is free to ignore any part the Aspect chain's suggested
content, I guess it makes sense for Aspects to provide references
rather than copies of large substructures.  It means a lot less bulk
to carry through the pipeline, which is particularly beneficial when
some of that bulk may be discarded.  We just need to make clear what
each stage is expected to do.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Balance your desire for bells and whistles with the reality that only a 
little more than 2 percent of world population has broadband.
-- Ledford and Tyler, _Google Analytics 2.0_


pgpbCTAweYCyb.pgp
Description: PGP signature
--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] Looking for Resources - Aspect Modification and the dim:

2010-05-06 Thread Mark Diggory
Patrick,

You are close. Yes there is another XML source that is being
rendered, It is not DRI, but METS+DIM and is used as the source for
all details about the existing Community, Collection, Item when
rendering the view.

You will find out more about this source of XML by looking at some examples...

Example Item
http://demo.dspace.org/xmlui/handle/123456789/18

THE DRI representing the View
http://demo.dspace.org/xmlui/DRI/handle/123456789/18

With a referenceset representing the following item metadata...

referenceSet 
id=aspect.artifactbrowser.ItemViewer.referenceSet.collection-viewer
n=collection-viewer type=summaryView
reference repositoryID=123456789 type=DSpace Item
url=/metadata/handle/123456789/18/mets.xml
referenceSet rend=hierarchy type=detailList
headThis item appears in the following Collection(s)/head
reference repositoryID=123456789 type=DSpace Collection
url=/metadata/handle/123456789/16/mets.xml/
/referenceSet
/reference
/referenceSet

THE METS+DIM representing the Item
http://demo.dspace.org/xmlui/metadata/handle/123456789/18/mets.xml

If you wish to alter the presentation of our Community, Collection or
Item views, you can override and re-implement the following
DIM-Handler templates by copying them to into your theme xslt and
altering them there.

xsl:template name=itemSummaryView-DIM
xsl:template name=itemDetailView-DIM
xsl:template name=collectionDetailView-DIM
xsl:template name=communityDetailView-DIM

Hope this is helpful,
Mark


On Thu, May 6, 2010 at 2:24 PM, Patrick Etienne
patrick.etie...@library.gatech.edu wrote:
 DSpace Users / Devs -
 (Wasn't sure for which list this would be more appropriate, apologies for
 cross-posting)

 We're looking to move our repository's production DSpace instance from the
 JSPUI to the XMLUI. I've been working with the Manakin interface for a
 while, but have hit a bit of a stumbling block with Aspects.
 Some of the requested changes seem to be more within the realms of the
 DIM-Handler.xsl or further back within the/an aspect's java code. All of the
 resources I've found for introductions to Aspect development are either too
 high level or just very outdated. I was hoping that members of the list
 might have recommendations for resources that would help in the effort of
 customizing the interface beyond what is available through overwriting
 existing xsl templates.
 An example customization might be:
 Moving the location in which Copyright and License appears on Community,
 Sub-Community, Collection, and Item pages. Let's say I want to move this to
 the bottom of the page, where at the moment it appears below the level
 (community, collection, item, etc) description but above other parts of the
 page (recent submissions, etc).
 The steps I've performed so far are:
 1) Searched through files for the string Copyright and License which
 pulled up the messages.xml file.
 2) Found the Copyright and License string as having the key
 xmlui.dri2xhtml.METS-1.0.copyright.
 3) Searched the code for the xmlui.dri2xhtml.METS-1.0.copyright string,
 found within the DIM-Handler.xsl file.
 4) Found two instances of the following template containing the
 xmlui.dri2xhtml.METS-1.0.copyright string:
 xsl:template match=dim:dim mode=collectionDetailView-DIM
 5) This template is not named, so cannot be called specifically from a
 parent template. This would seem to say that the rendering order of the html
 is based upon something other than directives found within the xsl
 transformations. The template is matching dim:dim which seems to indicate
 that there's a secondary DRI (for lack of a better description) whose
 elements I might want to reorder toward the goal of having these elements
 displayed in non-standard rendering order in the final html page.
 In the structural.xsl, the prefix dri: is used, where in the
 DIM-Handler.xsl the prefix dim: is used. This seems to support the notion
 that there's another dri-like xml document in the cocoon chain that's
 helping to build the final output.
 Two things I'd be very interested in are:
 A) Resources I could use to read up about the dim: part of the pipeline.
 B) Resources that might provide insight into how to manipulate existing
 Aspects.
 I'm familiar with pre-2.2 Cocoon (before the spring/maven foundation was
 implemented) and related concepts (sitemaps, selectors, matchers,
 generators, etc).
 My educated guess is that my next step along the journey is to trace the
 Artifact Browser aspect from the sitemap through the cocoon pipeline back
 all the way to the underlying java code and just explore. Any tips, hints,
 suggestions, or resources though would be highly appreciated!
  - Patrick E.
 ---
 Patrick K. Étienne
 Systems Analyst
 Library and Information Center
 Georgia Institute of Technology
 email: patrick.etie...@library.gatech.edu
 phone: 404.385.8121
 Mediocre Writers Borrow; Great Writers Steal - T.S. Eliot

 --


 

Re: [Dspace-tech] [Dspace-devel] Looking for Resources - Aspect Modification and the dim:

2010-05-06 Thread Mark H. Wood
If you want to change where things are placed on the final page, that
is layout, and layout is handled by XSL in the Theme stage.  Aspects
add substructures to a big XML structure (the DRI document) which
holds the nonstatic data that go into the page, and then the Theme
takes what it wants from the DRI and lays that out.  The DRI
document is entirely consumed by the Theme stage, with the interesting
bits slotted into the XHTML skeleton generated by the Theme.

As noted by Mark Diggory, a Theme may call back into Cocoon with an
internal request for more metadata.  I've been meaning to ask why it
was done that way.  IIRC this was added between the final separate
release of Manakin and its incorporation into stock DSpace 1.5.

We could all do with an updated theory of operation for the later
stages of XMLUI.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Balance your desire for bells and whistles with the reality that only a 
little more than 2 percent of world population has broadband.
-- Ledford and Tyler, _Google Analytics 2.0_


pgp2cyimfmB4B.pgp
Description: PGP signature
--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech