Re: [Dspace-tech] Dublin Core Citations

2011-05-25 Thread Nemiz, Elvi S.
Dear Yinjin,

Hello and good day. I searched from the dspace mailing list looking for
solutions how to implement bibliographic citation. I am very interested
about your solution after reading your message from this
threadhttp://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg03474.html.
Can you please please provide us with some sort of step by step guide how
you implemented this? We are currently using xmlui with mirage as our theme.
Thanks in advance and hoping for a positive response.

Sincerely,
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] OAI and collections

2011-05-25 Thread Poulter, Dale
Good morning all,

Is it possible to add the collection and/or community to the OAI-PMH data?  We 
have a custom OAI format that works great but we would like to include the 
community and or collection in the output.  Thanks for your help.

--Dale

---
Dale Poulter
Automation Coordinator
Library Information Technology Services
Vanderbilt University
419 21st Avenue South, Room 812
Nashville, TN  37203-2427
(615)343-5388
(615)343-8834 (fax)
(615)207-9705 (cell)
dale.poul...@vanderbilt.edumailto:dale.poul...@vanderbilt.edu

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Save List

2011-05-25 Thread Ken Schindler

(another rookie question) 

I have a user who would like to do a search of his photos, and tag selected 
items in a personal named save list that he can reference days later. If he 
could drag and drop them into the list it would be icing on the cake. 

Does such a save list technique exist in Dspace or would this be a custom 
build? 


Ken Schindler/SVSU 


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage

2011-05-25 Thread André
It works! Thank you, Peter.

Just as you said, I added to
 
/home/dspaceTeste/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap
the tranformer
 map:transformer name=AboutPage
src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage /
and added under the pipeline
 map:match pattern=about
 map:transform type=AboutPage/
 map:serialize type=xml /
 /map:match

Thanks again to Peter, Mark and Hardy for the very valuable help and
attention.

Would it interest anyone if I wrote a concise guide of the modifications?

Andre Assada



2011/5/24 Peter Dietz pdiet...@gmail.com

 Hi Andre,

 My patch might not have been perfect, especially if you're starting from
 1.7.

 Check your [dspace]/config/xmlui.xconf, to see which aspects are enabled.
 https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L61

 The patch I sent you patched the sitemap for the artifactBrowser artifact,
 which in 1.7 is now deprecated, and we use browseArtifacts, viewArtifacts,
 and searchArtifacts.
 So although you fixed the sitemap for artifactBrowser/sitemap.xmap, if
 xmlui.xconf doesn't use it, then the AboutPage doesn't get used. So.. make
 the same change to the artifactBrowser/sitemap.xmap to
 browseArtifact/sitemap.xmap.
 You won't need the customization to artifactBrowser/sitemap.xmap anymore.

 And I think you should be in business after that.


 Peter Dietz




 On Tue, May 24, 2011 at 1:47 PM, André andre.ass...@usp.br wrote:

 Thanks a lot, Hardy, Peter and Mark.

 I tried following Hardy's and Peter's directions and also studied the
 wikis/guides (thank you for the links, Hardy!)

 I still can't figure out how to make it work (page title still Page not
 found, no breadcrumbs and no contents showing)
 That's what I've got so far:

 1) on
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser
 created an AboutPage.java file, very similar to the one by Peter Dietz,
 with the 2 methods:

 addPageMeta()
 to make the title and the breadcrumbs:
 pageMeta.addMetadata(title).addContent(T_title);
 pageMeta.addTrailLink(contextPath + /,T_dspace_home);
 pageMeta.addTrail().addContent(T_trail);

 addBody()
 Division division = body.addDivision(about-page, primary);
 division.setHead(T_head);
 division.addPara(T_para);

 [ the T_para would be the text content of the page, which should fit
 internationalization. ]


 2)
 [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl
 we create the link under xsl:template match=dri:options

 div id=ds-search-option class=ds-option-set
 a
 xsl:attribute name=href
 xsl:value-of
 select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/
 xsl:text/about/xsl:text
 /xsl:attribute
 !-- e aqui o label descritivo --

 i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text
 /abr/


 3) the messages_[LOCALE].xsl files, containing the text of the About
 page, translated in many languages


 4)
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap
 -- under:
 map:components
 map:transformers
 added:
 map:transformer name=AboutPage
 src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage /

 -- and under:
 map:pipelines
 map:pipeline
 added:
 map:match pattern=about
 map:transform type=AboutPage/
 map:serialize type=xml/
 /map:match


 5)
 [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/Mirage.xsl
 the override of xsl:template match=dri:body
 (How should I call for the contents? is that correct?)

 xsl:when
 test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about'
 div
 h1Simple ABOUT page/h1
 xsl:apply-templates /
 /div
 /xsl:when


 After mvn, ant, tomcat stop, clear tomcat cache, tomcat start: doesn't
 work. What am I missing?

 Thank you again for your patience and help!
 Best regards,
 Andre Assada


 2011/5/20 Pottinger, Hardy J. pottinge...@umsystem.edu

  Thanks, Peter, this looks like a cool way to do static pages, I'll have
 to give this a try. Would you consider doing a writeup on the process on the
 wiki?

 --Hardy

 Sent from my iPad

 On May 20, 2011, at 5:03 PM, Peter Dietz pdiet...@gmail.commailto:
 pdiet...@gmail.com wrote:

 Hi André,

 I'm guessing that your XSLT is good, you're able to modify a page, and
 get your changes to happen. However, if you are adding a new page that
 doesn't exist, you'll get a problem 

[Dspace-tech] New DSpace add-on: Semantic Search v2.0 for DSpace

2011-05-25 Thread Georgia Solomou
Dear DSpace community members,

 

We have prepared an online survey about the DSpace Semantic Search v. 2.0
add-on, available at [1]. Please, consider taking the survey and help us
improve this facility!

 

Best Regards,

Georgia Solomou

 

[1] http://goo.gl/Zt0aP

 

 

From: Dimitrios Koutsomitropoulos [mailto:kotso...@hpclab.ceid.upatras.gr] 
Sent: Wed, 02 Feb 2011, 17:59
To: dspace-de...@lists.sourceforge.net
Subject: New DSpace add-on: Semantic Search v2.0 for DSpace

 

Dear DSpace community members,

 

This is to announce the availability of Semantic Search  v2.0 for DSpace.
This facility has been refactored as an add-on for DSpace 1.6+ and 1.7.1. A
preliminary version (v2.0_r1) is now available as a patch in JIRA [1]. 

 

Semantic Search allows reasoning-based search and retrieval of DSpace
content, using Semantic Web technologies. New 

features include:

 

- New intuitive query interface, based on guided construction of Manchester
Syntax queries.

- Support for OWL API v3.1.0.

- Introduction of the DSpace Semantic API as a catch-all for
ontology-related tasks

- Support for latest FaCT++ and Pellet.

- Hot-swap between reasoners.

- Caching loaded ontologies.

 

The patch has been tested to work with DSpace v. 1.6.2, but appears to be
compatible with 1.7 as well, since it does not affect DSpace's business
logic. 

 

Semantic Search for DSpace is currently under ongoing development and hosted
as a Google Code project [2], where you can also check out code directly,
through svn.

 

A development installation of Semantic Search for DSpace can be found at
[3].

 

You can find more information at the DSpace wiki page [4] and under JIRA [1]
where you are encouraged to drop your

comments/suggestions!

 

 

Best regards,

Dimitrios Koutsomitropoulos

 

 

[1] http://jira.duraspace.org/browse/DS-817

 

 [2] http://code.google.com/p/dspace-semantic-search/

 

 [3] http://apollo.hpclab.ceid.upatras.gr:8000/jspui17-demo/semantic-search

 

 [4] http://wiki.duraspace.org/display/DSPACE/Kotsomit

 

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3657 - Release Date: 05/24/11

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Cleanup error

2011-05-25 Thread Jizba, Richard
Has anyone seen this before (Oracle):

 

$dspace cleanup -v

- Deleting bitstream information (ID: 6494)

- Deleting bitstream record from database (ID: 6494)

Error: ORA-02292: integrity constraint (DSPACE15.SYS_C008778) violated -
child record found

 

If so, what did you do?

 

Richard Jizba

Health Sciences Library

Creighton University

(402) 280-5142

rji...@creighton.ed

 

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Bitstream Description in Batch import

2011-05-25 Thread Joseph
Dear DSpace-tech,

I know you can add a description to a bitstream when you upload it through
the XMLUI
Can you do this when you do a batch upload using the CLI?
dspace import

Also,
dspace import -h
shows an option -z for a zip file.
The Documentation doesn't describe how to use this option, (or mention it)
http://www.dspace.org/1_7_1Documentation/System%20Administration.html#SystemAdministration-ItemImporterandExporter
Does anyone have experience using this option?

Thank You,
Joseph
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] ClassNotFoundException for org.dspace.app.util.DailyFileAppender under 1.7.1

2011-05-25 Thread Thornton, Susan M. (LARC-B702)[LITES]
Hi Brian,
 That's interesting.  Now that you mention that, I just noticed there are a 
bunch of other .new files under /dspace/config and I'm wondering if I need to 
rename them all as I had to do with the log4j.properties (using the 
-overwrite=true parameter you mentioned)...?
Thanks,
Sue


Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
(757) 224-4074



-Original Message-
From: Brian Freels-Stendel [mailto:bfre...@unm.edu]
Sent: Tuesday, May 24, 2011 1:32 PM
To: Thornton, Susan M. (LARC-B702)[LITES]
Subject: Re: [Dspace-tech] ClassNotFoundException for 
org.dspace.app.util.DailyFileAppender under 1.7.1

Good morning,

If it's a problem with the updated config files having the '.new' extension, 
you can run the ant command with '-Doverwrite=true' to force updated config 
files in the source directory to overwrite the current files in the deploy 
directory.  (Actually, it renames the current files to have a '.old' extension 
and then puts the new ones in place.  Apparently, there has to be trash created 
or the program isn't happy. ;) )

I'm thinking this doesn't really apply for John's situation, so I don't want to 
muddy the newsgroup waters, but it's a useful trick.

B--

 On 5/24/2011 at 10:33 AM, in message
03de6124b1f32240b3692ed5e591ed162a28556...@ndmsscc07.ndc.nasa.gov, Thornton,
Susan M. (LARC-B702)[LITES] susan.m.thorn...@nasa.gov wrote:
 I was getting a similar error upon first bringing up my DSpace 1.7.1 site
 (upgrading from 1.5.1).  I just solved this problem by renaming my
 log4j.properties file under /dspace/config to log4j.properties.save and then
 renaming log4j.properties.new to log4j.properties.  Seems like
 log4j.properties.new contained the translated file location names.
 Example:

 In log4j.properties:log4j.appender.A1.File=${log.dir}/dspace.log
 In log4j.properties.new:
 log4j.appender.A1.File=/home/dspace/log/dspace.log

 I believe the log4j.properties.new file is created when you execute ant
 -Dconfig=/{dspace.dir}/config/dspace.cfg update

 The documentation does talk in detail about logging, etc, but I didn't see
 where it said specifically you need to use the log4j.properties.new file.

 Hope this helps.
 Sue



 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 (757) 224-4074



 -Original Message-
 From: John Preston [mailto:byhisde...@gmail.com]
 Sent: Tuesday, May 24, 2011 9:38 AM
 To: dspace-tech@lists.sourceforge.net
 Subject: [Dspace-tech] ClassNotFoundException for
 org.dspace.app.util.DailyFileAppender under 1.7.1

 I'm getting the following in my tomcat logs for dspace 1.7.1 under
 tomcat 6.0.26.

 INFO: Loading provided config file: /dspace/config/dspace.cfg
 INFO: Using dspace provided log configuration (log.init.config)
 INFO: Loading: /dspace/config/log4j.properties
 log4j:ERROR Could not instantiate class
 [org.dspace.app.util.DailyFileAppender].
 java.lang.ClassNotFoundException: org.dspace.app.util.DailyFileAppender
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
 :1387)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
 :1233)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)
 at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
 at
 org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConvert
 er.java:319)
 at
 org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.jav
 a:120)
 at
 org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java
 :629)
 at
 org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java
 :612)
 at
 org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigura
 tor.java:509)
 at
 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:4
 15)
 at
 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:4
 41)
 at
 org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.j
 ava:470)
 at
 org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:719
 )
 at org.naa.server.UFOServiceImpl.init(UFOServiceImpl.java:74)
 at javax.servlet.GenericServlet.init(GenericServlet.java:212)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:117
 2)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4
 058)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:79
 1)

Re: [Dspace-tech] ClassNotFoundException for org.dspace.app.util.DailyFileAppender under 1.7.1

2011-05-25 Thread Thornton, Susan M. (LARC-B702)[LITES]
Here are the files in our /dspace/config directory that have new appended to 
the end.  Oh and btw, I haven't modified any of them.

dc2mods.cfg.new
default.context.xml.new
default.license.new
input-forms.xml.new
item-submission.xml.new
launcher.xml.new
log4j-handle-plugin.properties.new
news-side.html.new
news-top.html.new
news-xmlui.xml.new
oaicat.properties.new
xmlui.xconf.new
log4j.properties (I renamed the .new already to the current one)

It looks like maybe what's happening is that, since we're upgrading, these 
modules already existed in our /dspace/config folder and it's comparing the 
ones in /dspace-source/dspace/config with these, determining they're different, 
and creating the .new versions.

Sue




Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
(757) 224-4074



-Original Message-
From: Brian Freels-Stendel [mailto:bfre...@unm.edu]
Sent: Wednesday, May 25, 2011 1:01 PM
To: Thornton, Susan M. (LARC-B702)[LITES]
Subject: Re: [Dspace-tech] ClassNotFoundException for 
org.dspace.app.util.DailyFileAppender under 1.7.1

Hi there,

Now that, I can't remember.  I know that it writes the .new or .old files when 
the particular file in question has been updated...but I don't know if it does 
the same thing if the file has _not_ been changed.  Ideally, it shouldn't, but. 
 I try to always use the overwrite parameter, because I don't have write privs 
in the deploy directory (yeah, I'm in one of those shops), so I don't have the 
experience, and the docs are less than fully informative.

B--

 On 5/25/2011 at 10:43 AM, in message
03de6124b1f32240b3692ed5e591ed162a28557...@ndmsscc07.ndc.nasa.gov, Thornton,
Susan M. (LARC-B702)[LITES] susan.m.thorn...@nasa.gov wrote:
 Hi Brian,
  That's interesting.  Now that you mention that, I just noticed there
 are a bunch of other .new files under /dspace/config and I'm wondering if I
 need to rename them all as I had to do with the log4j.properties (using the
 -overwrite=true parameter you mentioned)...?
 Thanks,
 Sue


 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 (757) 224-4074



 -Original Message-
 From: Brian Freels-Stendel [mailto:bfre...@unm.edu]
 Sent: Tuesday, May 24, 2011 1:32 PM
 To: Thornton, Susan M. (LARC-B702)[LITES]
 Subject: Re: [Dspace-tech] ClassNotFoundException for
 org.dspace.app.util.DailyFileAppender under 1.7.1

 Good morning,

 If it's a problem with the updated config files having the '.new' extension,
 you can run the ant command with '-Doverwrite=true' to force updated config
 files in the source directory to overwrite the current files in the deploy
 directory.  (Actually, it renames the current files to have a '.old'
 extension and then puts the new ones in place.  Apparently, there has to be
 trash created or the program isn't happy. ;) )

 I'm thinking this doesn't really apply for John's situation, so I don't want
 to muddy the newsgroup waters, but it's a useful trick.

 B--

 On 5/24/2011 at 10:33 AM, in message
 03de6124b1f32240b3692ed5e591ed162a28556...@ndmsscc07.ndc.nasa.gov,
 Thornton,
 Susan M. (LARC-B702)[LITES] susan.m.thorn...@nasa.gov wrote:
 I was getting a similar error upon first bringing up my DSpace 1.7.1 site
 (upgrading from 1.5.1).  I just solved this problem by renaming my
 log4j.properties file under /dspace/config to log4j.properties.save and then
 renaming log4j.properties.new to log4j.properties.  Seems like
 log4j.properties.new contained the translated file location names.
 Example:

 In log4j.properties:log4j.appender.A1.File=${log.dir}/dspace.log
 In log4j.properties.new:
 log4j.appender.A1.File=/home/dspace/log/dspace.log

 I believe the log4j.properties.new file is created when you execute ant
 -Dconfig=/{dspace.dir}/config/dspace.cfg update

 The documentation does talk in detail about logging, etc, but I didn't see
 where it said specifically you need to use the log4j.properties.new file.

 Hope this helps.
 Sue



 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 (757) 224-4074



 -Original Message-
 From: John Preston [mailto:byhisde...@gmail.com]
 Sent: Tuesday, May 24, 2011 9:38 AM
 To: dspace-tech@lists.sourceforge.net
 Subject: [Dspace-tech] ClassNotFoundException for
 org.dspace.app.util.DailyFileAppender under 1.7.1

 I'm getting the following in my tomcat logs for dspace 1.7.1 under
 tomcat 6.0.26.

 INFO: Loading provided config file: /dspace/config/dspace.cfg
 INFO: Using dspace provided log configuration (log.init.config)
 INFO: Loading: /dspace/config/log4j.properties
 log4j:ERROR Could not instantiate class
 [org.dspace.app.util.DailyFileAppender].
 java.lang.ClassNotFoundException: org.dspace.app.util.DailyFileAppender
 at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
 :1387)
 at

 

Re: [Dspace-tech] Bitstream Description in Batch import

2011-05-25 Thread Peter Dietz
Hi Joseph,

It looks like you can't do that through CLI.

You can specify the bundle:

The bitstream name may optionally be followed by the sequence:
*\tbundle:bundlename*

So, you can specify bundle through:
contentfile1.pdfbundle:ORIGINAL
contentfile2.pdfbundle:ORIGINAL
license.txtbundle:LICENSE

And you can see where the \tbundle:BUNDLE-NAME is tokenized
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java#L1156

So, if this is needed, you could modify ItemImport to accept
\tdescription:TEXT-FOR-DESCRIPTION


Peter Dietz



On Wed, May 25, 2011 at 12:14 PM, Joseph joseph.rho...@gmail.com wrote:

 Dear DSpace-tech,

 I know you can add a description to a bitstream when you upload it through
 the XMLUI
 Can you do this when you do a batch upload using the CLI?
 dspace import

 Also,
 dspace import -h
 shows an option -z for a zip file.
 The Documentation doesn't describe how to use this option, (or mention it)

 http://www.dspace.org/1_7_1Documentation/System%20Administration.html#SystemAdministration-ItemImporterandExporter
 Does anyone have experience using this option?

 Thank You,
 Joseph



 --
 vRanger cuts backup time in half-while increasing security.
 With the market-leading solution for virtual backup and recovery,
 you get blazing-fast, flexible, and affordable data protection.
 Download your free trial now.
 http://p.sf.net/sfu/quest-d2dcopy1
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage

2011-05-25 Thread Peter Dietz
Hi Andre,

Congratulations, it shows that persistence pays off.

Regarding a writeup, I think that many would find that helpful.

The best place to put it would be in the Manakin theme
tutorialhttps://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial
.

Adding static pages

2. Cocoon-based method. You could use cocoon to check the url right after
the generation step, and then add in your own static DRI page. This method
requires that all your static pages be expressed as DRI and then transformed
into HTML by your standard theme templates. This method is useful if you
will have lots of static pages that need to be managed, but requires
modifying the cocoon sitemap.xmap.


I think its important to fill in the body of that block with how we just
described for adding the AboutPage.java, since the XSLT alone method makes
it say Page Not Found. I suppose there are XSL tricks to suppress your
custom about page from showing PageNotFound. If you have wiki permission,
you could either fill in the wiki page, or do a writeup on your blog (or
create another wiki page), and we'll link to it from there. I don't have a
preference, other then that we should put it down in writing as opposed to
just having to look through old mailing list messages.


Peter Dietz



On Wed, May 25, 2011 at 11:11 AM, André andre.ass...@usp.br wrote:

 It works! Thank you, Peter.

 Just as you said, I added to

  
 /home/dspaceTeste/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap
 the tranformer

  map:transformer name=AboutPage
 src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage /
  and added under the pipeline

  map:match pattern=about
  map:transform type=AboutPage/
  map:serialize type=xml /
  /map:match

 Thanks again to Peter, Mark and Hardy for the very valuable help and
 attention.

 Would it interest anyone if I wrote a concise guide of the modifications?

 Andre Assada




 2011/5/24 Peter Dietz pdiet...@gmail.com

 Hi Andre,

 My patch might not have been perfect, especially if you're starting from
 1.7.

 Check your [dspace]/config/xmlui.xconf, to see which aspects are enabled.
 https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L61

 The patch I sent you patched the sitemap for the artifactBrowser artifact,
 which in 1.7 is now deprecated, and we use browseArtifacts, viewArtifacts,
 and searchArtifacts.
 So although you fixed the sitemap for artifactBrowser/sitemap.xmap, if
 xmlui.xconf doesn't use it, then the AboutPage doesn't get used. So.. make
 the same change to the artifactBrowser/sitemap.xmap to
 browseArtifact/sitemap.xmap.
 You won't need the customization to artifactBrowser/sitemap.xmap anymore.

 And I think you should be in business after that.


 Peter Dietz




 On Tue, May 24, 2011 at 1:47 PM, André andre.ass...@usp.br wrote:

 Thanks a lot, Hardy, Peter and Mark.

 I tried following Hardy's and Peter's directions and also studied the
 wikis/guides (thank you for the links, Hardy!)

 I still can't figure out how to make it work (page title still Page not
 found, no breadcrumbs and no contents showing)
 That's what I've got so far:

 1) on
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser
 created an AboutPage.java file, very similar to the one by Peter Dietz,
 with the 2 methods:

 addPageMeta()
 to make the title and the breadcrumbs:
 pageMeta.addMetadata(title).addContent(T_title);
 pageMeta.addTrailLink(contextPath + /,T_dspace_home);
 pageMeta.addTrail().addContent(T_trail);

 addBody()
 Division division = body.addDivision(about-page, primary);
 division.setHead(T_head);
 division.addPara(T_para);

 [ the T_para would be the text content of the page, which should fit
 internationalization. ]


 2)
 [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl
 we create the link under xsl:template match=dri:options

 div id=ds-search-option class=ds-option-set
 a
 xsl:attribute name=href
 xsl:value-of
 select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/
 xsl:text/about/xsl:text
 /xsl:attribute
 !-- e aqui o label descritivo --

 i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text
 /abr/


 3) the messages_[LOCALE].xsl files, containing the text of the About
 page, translated in many languages


 4)
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap
 -- under:
 map:components
 map:transformers
 added:
 map:transformer name=AboutPage
 src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage /

 -- and under:
 map:pipelines
 map:pipeline
 added:
 map:match 

[Dspace-tech] Bulk Edit Export

2011-05-25 Thread Jeffrey Trimble
I'm seeing something really strange.  When exporting the .csv file, I'm getting 
large fields in the first column (which should be the ITEM ID).

I've set the field separator to $ instead of the comma.

Anyone seen anything like this?  I'll send an example to anyone who wants to 
see this.

Any thoughts?

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jatrim...@ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
For he is the Kwisatz Haderach...


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bitstream Description in Batch import

2011-05-25 Thread Stuart Lewis
Hi Joseph,

 I know you can add a description to a bitstream when you upload it through 
 the XMLUI
 Can you do this when you do a batch upload using the CLI?
 dspace import

Try adding :

 - \tdescription: my description

Other options are \tpermissions: and \tprimary:true

 Also, 
 dspace import -h
 shows an option -z for a zip file.
 The Documentation doesn't describe how to use this option, (or mention it)
 http://www.dspace.org/1_7_1Documentation/System%20Administration.html#SystemAdministration-ItemImporterandExporter
 Does anyone have experience using this option?

If you perform an export via the web user interface, it downloads as a zip 
file.  There is also a 'give this to me as a zip file' option in the CLI 
exporter.

Inside the zip file is the normal import structure or directories 1.. / 2.. / 
3.. etc, each with metadata files and content files.  The zip option makes it 
easier to import these without first unzipping them.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage

2011-05-25 Thread André
Hi, Peter,

I just editted the wiki, adding the info. I hope it will be useful for many.
I also hope I didn't mess anything up, as I'm not familiar with Wiki
conventions.

https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthemetutorial-Addingstaticpages

Best regards,
Andre Assada


2011/5/25 Peter Dietz pdiet...@gmail.com

 Hi Andre,

 Congratulations, it shows that persistence pays off.

 Regarding a writeup, I think that many would find that helpful.

 The best place to put it would be in the Manakin theme 
 tutorialhttps://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial
 .

 Adding static pages
 
 2. Cocoon-based method. You could use cocoon to check the url right after
 the generation step, and then add in your own static DRI page. This method
 requires that all your static pages be expressed as DRI and then transformed
 into HTML by your standard theme templates. This method is useful if you
 will have lots of static pages that need to be managed, but requires
 modifying the cocoon sitemap.xmap.


 I think its important to fill in the body of that block with how we just
 described for adding the AboutPage.java, since the XSLT alone method makes
 it say Page Not Found. I suppose there are XSL tricks to suppress your
 custom about page from showing PageNotFound. If you have wiki permission,
 you could either fill in the wiki page, or do a writeup on your blog (or
 create another wiki page), and we'll link to it from there. I don't have a
 preference, other then that we should put it down in writing as opposed to
 just having to look through old mailing list messages.


 Peter Dietz




 On Wed, May 25, 2011 at 11:11 AM, André andre.ass...@usp.br wrote:

 It works! Thank you, Peter.

 Just as you said, I added to

  
 /home/dspaceTeste/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap
 the tranformer

  map:transformer name=AboutPage
 src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage /
  and added under the pipeline

  map:match pattern=about
  map:transform type=AboutPage/
  map:serialize type=xml /
  /map:match

 Thanks again to Peter, Mark and Hardy for the very valuable help and
 attention.

 Would it interest anyone if I wrote a concise guide of the modifications?

 Andre Assada




 2011/5/24 Peter Dietz pdiet...@gmail.com

 Hi Andre,

 My patch might not have been perfect, especially if you're starting from
 1.7.

 Check your [dspace]/config/xmlui.xconf, to see which aspects are enabled.

 https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L61

 The patch I sent you patched the sitemap for the artifactBrowser
 artifact, which in 1.7 is now deprecated, and we use browseArtifacts,
 viewArtifacts, and searchArtifacts.
 So although you fixed the sitemap for artifactBrowser/sitemap.xmap, if
 xmlui.xconf doesn't use it, then the AboutPage doesn't get used. So.. make
 the same change to the artifactBrowser/sitemap.xmap to
 browseArtifact/sitemap.xmap.
 You won't need the customization to artifactBrowser/sitemap.xmap anymore.

 And I think you should be in business after that.


 Peter Dietz




 On Tue, May 24, 2011 at 1:47 PM, André andre.ass...@usp.br wrote:

 Thanks a lot, Hardy, Peter and Mark.

 I tried following Hardy's and Peter's directions and also studied the
 wikis/guides (thank you for the links, Hardy!)

 I still can't figure out how to make it work (page title still Page not
 found, no breadcrumbs and no contents showing)
 That's what I've got so far:

 1) on
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser
 created an AboutPage.java file, very similar to the one by Peter Dietz,
 with the 2 methods:

 addPageMeta()
 to make the title and the breadcrumbs:
 pageMeta.addMetadata(title).addContent(T_title);
 pageMeta.addTrailLink(contextPath + /,T_dspace_home);
 pageMeta.addTrail().addContent(T_trail);

 addBody()
 Division division = body.addDivision(about-page, primary);
 division.setHead(T_head);
 division.addPara(T_para);

 [ the T_para would be the text content of the page, which should fit
 internationalization. ]


 2)
 [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl
 we create the link under xsl:template match=dri:options

 div id=ds-search-option class=ds-option-set
 a
 xsl:attribute name=href
 xsl:value-of
 select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/
 xsl:text/about/xsl:text
 /xsl:attribute
 !-- e aqui o label descritivo --

 i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text
 /abr/


 3) the messages_[LOCALE].xsl files, containing the text of the About
 page, translated in many languages


 4)
 

Re: [Dspace-tech] Bulk Edit Export problem resolved--kind of.

2011-05-25 Thread Jeffrey Trimble
The problem really isn't the exporter.  It's Microsoft Excel and how it reads a 
.cvs file.  If I open
a exported metadata file with a long field, such as description.abstract.  That 
field, if it has paragraph
breaks, is interpreted as a line return by Microsoft.  Very strange.

If you open this same file using Open Office, the file is fine.  Perfectly 
fine, well save a data issue.  Dates input
by the humans, such as 2005-01-03 (and stored that way in Postgres) are 
interpreted as 01/03/05.  But, if you
have 2005-01-03:00:04, etc or other kinds of data, the data is extrapolated 
perfectly.

Also, iWorks 09 / Numbers is just fuggly when dealing with this.  LOL

--Jeff


On May 25, 2011, at 2:16 PM, Jeffrey Trimble wrote:

 I'm seeing something really strange.  When exporting the .csv file, I'm 
 getting large fields in the first column (which should be the ITEM ID).
 
 I've set the field separator to $ instead of the comma.
 
 Anyone seen anything like this?  I'll send an example to anyone who wants to 
 see this.
 
 Any thoughts?
 
 Jeffrey Trimble
 System LIbrarian
 William F.  Maag Library
 Youngstown State University
 330.941.2483 (Office)
 jatrim...@ysu.edu
 http://www.maag.ysu.edu
 http://digital.maag.ysu.edu
 For he is the Kwisatz Haderach...
 
 
 --
 vRanger cuts backup time in half-while increasing security.
 With the market-leading solution for virtual backup and recovery, 
 you get blazing-fast, flexible, and affordable data protection.
 Download your free trial now. 
 http://p.sf.net/sfu/quest-d2dcopy1
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jatrim...@ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
For he is the Kwisatz Haderach...


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bulk Edit Export problem resolved--kind of.

2011-05-25 Thread Stuart Lewis
Hi Jeff,

Yes - we tend to advise using OpenOffice as it doesn't try to be so 'clever' 
when it interprets the CSV.

For the date issue - we recommend setting all columns to 'Text' in the 'how 
shall I open this file' dialog by clicking on the top left cell (which 
highlights all cells) and selecting text.  If you do this, then the dates won't 
get interpreted, but will stay as literal strings.

Thanks,


Stuart



On 26/05/2011, at 6:51 AM, Jeffrey Trimble wrote:

 The problem really isn't the exporter.  It's Microsoft Excel and how it reads 
 a .cvs file.  If I open
 a exported metadata file with a long field, such as description.abstract.  
 That field, if it has paragraph
 breaks, is interpreted as a line return by Microsoft.  Very strange.
 
 If you open this same file using Open Office, the file is fine.  Perfectly 
 fine, well save a data issue.  Dates input
 by the humans, such as 2005-01-03 (and stored that way in Postgres) are 
 interpreted as 01/03/05.  But, if you
 have 2005-01-03:00:04, etc or other kinds of data, the data is extrapolated 
 perfectly.
 
 Also, iWorks 09 / Numbers is just fuggly when dealing with this.  LOL
 
 --Jeff
 
 
 On May 25, 2011, at 2:16 PM, Jeffrey Trimble wrote:
 
 I'm seeing something really strange.  When exporting the .csv file, I'm 
 getting large fields in the first column (which should be the ITEM ID).
 
 I've set the field separator to $ instead of the comma.
 
 Anyone seen anything like this?  I'll send an example to anyone who wants to 
 see this.
 
 Any thoughts?
 
 Jeffrey Trimble
 System LIbrarian
 William F.  Maag Library
 Youngstown State University
 330.941.2483 (Office)
 jatrim...@ysu.edu
 http://www.maag.ysu.edu
 http://digital.maag.ysu.edu
 For he is the Kwisatz Haderach...
 
 
 --
 vRanger cuts backup time in half-while increasing security.
 With the market-leading solution for virtual backup and recovery, 
 you get blazing-fast, flexible, and affordable data protection.
 Download your free trial now. 
 http://p.sf.net/sfu/quest-d2dcopy1
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 
 Jeffrey Trimble
 System LIbrarian
 William F.  Maag Library
 Youngstown State University
 330.941.2483 (Office)
 jatrim...@ysu.edu
 http://www.maag.ysu.edu
 http://digital.maag.ysu.edu
 For he is the Kwisatz Haderach...
 
 
 --
 vRanger cuts backup time in half-while increasing security.
 With the market-leading solution for virtual backup and recovery, 
 you get blazing-fast, flexible, and affordable data protection.
 Download your free trial now. 
 http://p.sf.net/sfu/quest-d2dcopy1
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Discovery and item facets

2011-05-25 Thread Mark Diggory
Jennifer,

This may be caused by a recent rewrite of how filters and ac fields are
defined in the solr index not getting updated in this class.  This would
make a good JIRA task to report.  Would you be kind enough to open one on
the topic?

Best,
Mark

Mark R. Diggory
@mire -www.atmire.com
2888 Loker Avenue East -Suite 305 -Carlsbad -CA -92010
Technologielaan 9 -3001 Heverlee -Belgium
On May 24, 2011 4:25 PM, Jennifer Whalan jennifer.wha...@nt.gov.au
wrote:
 Weird issue, which may not matter much.

 Just for testing purposes, I turned on the facets for items. From this I
noticed that on item pages it doubles up the facets (a good example is
http://dspacedev.nt.gov.au/handle/10070/35114). It is different from the
facets that duplicated with all lower case, which we had before, but is now
fixed. This only happens on item pages, where it shows two exact same
entries for each term. This doesn't happen on any the other facets (search,
community, collection). Since we will be turning off item facets eventually,
as we will not have them on our production site, I am not concerned with a
fix, but thought I should report, in case no one else has had this problem.


 Thanks
 Jennifer


 Jennifer Whalan
 Territory Stories Administrator
 Innovation  Access, Northern Territory Library
 Department of Natural Resources, Environment, The Arts and Sport
 Northern Territory Government

 Phone: (08) 8922 0752
 Fax: (08) 8922 0722
 Email: jennifer.wha...@nt.gov.aumailto:jennifer.wha...@nt.gov.au
 Web: www.ntl.nt.gov.auhttp://www.ntl.nt.gov.au/

 The information contained in this message and any attachments may be
confidential information and may be subject to legal privilege, public
interest or legal profession privilege. If you are not the intended
recipient, any use, disclosure or copying of this message or any attachments
is unauthorised. If you have received this document in error, please advise
the sender. No representation or warranty is given that attached files are
free from viruses or other defects. The recipient assumes all responsibility
for any loss or damage resulting directly or indirectly from the use of any
attached files.
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bitstream Description in Batch import

2011-05-25 Thread Joseph
Hi Stewart,

Thank you for pointing out these options for bitstreams in dspace import, as
well as the zip option.

Peter,
Thanks for looking into this as well.
I'm currently using your csv-SAFBuilder.  I don't think it supports
multiple bitstreams in a single item.  If I can figure out a way for it to
do so, I'll add to SAFPackage to allow descriptions, permissions, and
primary bitstream identification.


I'm looking at creating folio items--much like the ones at the Texas AM
Repository
http://repository.tamu.edu/handle/1969.1/2961

We get rolls of film that come from archaeological digs, and for most of
them, it's better to consider a roll as an item if possible.
If I come up with tools to help with this sort of thing, I'll be sure to
share it.

Thanks Again,
Joseph

On Wed, May 25, 2011 at 14:29, Stuart Lewis s.le...@auckland.ac.nz wrote:

 Hi Joseph,

  I know you can add a description to a bitstream when you upload it
 through the XMLUI
  Can you do this when you do a batch upload using the CLI?
  dspace import

 Try adding :

  - \tdescription: my description

Other options are \tpermissions: and \tprimary:true

  Also,
  dspace import -h
  shows an option -z for a zip file.
  The Documentation doesn't describe how to use this option, (or mention
 it)
 
 http://www.dspace.org/1_7_1Documentation/System%20Administration.html#SystemAdministration-ItemImporterandExporter
  Does anyone have experience using this option?

 If you perform an export via the web user interface, it downloads as a zip
 file.  There is also a 'give this to me as a zip file' option in the CLI
 exporter.

 Inside the zip file is the normal import structure or directories 1.. / 2..
 / 3.. etc, each with metadata files and content files.  The zip option makes
 it easier to import these without first unzipping them.

 Thanks,


 Stuart Lewis
 Digital Development Manager
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage

2011-05-25 Thread Mark Diggory
On Tue, May 24, 2011 at 10:47 AM, André andre.ass...@usp.br wrote:

 Thanks a lot, Hardy, Peter and Mark.

 I tried following Hardy's and Peter's directions and also studied the
 wikis/guides (thank you for the links, Hardy!)

 I still can't figure out how to make it work (page title still Page not
 found, no breadcrumbs and no contents showing)
 That's what I've got so far:


The NESCent implementation solves this and that is why I forwarded it to
you. You need to alter the xslt template that generates the title and insert
your own, by using xhtml as the source of the static content, the NESCent
solution takes the title from that XHTML source, replacing the generated
Page not found caused by the fact that no DRI content was rendered in
the body portion of the DRI chain.

I also suggested that if there were an issue with the actual status code
being 404, that it might be possible to create a simple aspect that matched
on the same xhtml directory listing and generated a dri:body/dri:div in the
pipeline, leading to no 404 error. this could be implemented in java or in
xslt. to get an idea how to do the later you cans ee the use of an xslt as
part of your aspect chain here:

https://wiki.duraspace.org/display/DSPACE/Emetsger__ExampleAspects__RestrictProfileEdit

In fact, this approach could enable the injection of static content almost
anywhere in the site without significant alteration of the theme level xslt.

Best,
Mark

-- 
Mark R. Diggory
@mire - www.atmire.com
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage

2011-05-25 Thread Mark Diggory
Resending for reference.  NESCent = Organization,  Dryad = Their Repository
Project

On Fri, May 20, 2011 at 4:11 PM, Mark Diggory mdigg...@atmire.com wrote:

 Our solution in Dryad (kudos to Kevin Clark) is embedded in the theme
 template


 https://dryad.googlecode.com/svn/trunk/dryad/dspace/modules/xmlui/src/main/webapp/themes/Dryad/Dryad.xsl
 https://dryad.googlecode.com/svn/trunk/dryad/dspace/modules/xmlui/src/main/webapp/themes/Dryad/Dryad.xsl
 and supports writing your added pages in xhtml.


 https://dryad.googlecode.com/svn/trunk/dryad/dspace/modules/xmlui/src/main/webapp/themes/Dryad/pages/


 Relevant sections override both body and head sections of generated
 html... not sure if this works with fixes to 404 status codes... if so, a
 transformer could be added to test for the present of the file and insert
 its location into the pageMeta and a small amount of dri into the pipeline
 to elimminate the 404 condition in the DRI pipeline...  probibly be a better
 way to detect where to get the xhtml file from anyhow.


   !-- Overwriting the default DSpace dri:body template to check for 
 pages --
   xsl:template match=dri:body
   div id=ds-body
   xsl:if 
 test=$meta[@element='alert'][@qualifier='message']
   div id=ds-system-wide-alert
   p
   xsl:copy-of 
 select=$meta[@element='alert'][@qualifier='message']/node()/
   /p
   /div
   /xsl:if
   xsl:choose
   xsl:when test=$doc
   xsl:copy-of 
 select=$doc//div[@id='ds-body']/*/



 .



 title
   xsl:choose
   xsl:when test=$doc
   xsl:value-of 
 select=$doc/html/head/title/
   /xsl:when
   xsl:when test=$file_page_title
   
 i18n:textxmlui.dryad.page_title/i18n:text
   xsl:value-of 
 select=//*[@id='org.datadryad.dspace.xmlui.aspect.browse.ItemViewer.div.item-view']/dri:head/
   /xsl:when
   xsl:when test=$pkg_page_title
   xsl:copy-of 
 select=$pkg_page_title/node()/
   /xsl:when
   xsl:otherwise
   xsl:text /xsl:text
   /xsl:otherwise
   /xsl:choose
   /title

 Mark

 On Fri, May 20, 2011 at 3:03 PM, Peter Dietz pdiet...@gmail.com wrote:

 Hi André,

 I'm guessing that your XSLT is good, you're able to modify a page, and get
 your changes to happen. However, if you are adding a new page that doesn't
 exist, you'll get a problem with the sitemap not having a match for the new
 page you created. The sitemaps (there are browseArtifacts, viewArtifacts,
 searchArtifacts) match paths such as community-list or handle/**, but not
 about/ so you'll end up with the error of Page Not Found, which is when it
 doesn't match anything.

 The way I fix that for custom pages that we add, is to add an AboutUs.Java
 file to generate some basic DRI, and configure the sitemap to use that Java
 file for our about page.

 If you build your xsl to create a static page, that partially works, but
 you also have to modify the 
 sitemaphttps://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap#L82
  to
 add a rule to match the content you added. If there is no rule for the page
 in the sitemap, then Page Not Found is the exception.

 See this gist for a sample of how to do this:
 https://gist.github.com/842301



 Peter Dietz




 On Fri, May 20, 2011 at 10:33 AM, Pottinger, Hardy J. 
 pottinge...@umsystem.edu wrote:

 Hi, here are the missing links:

 DRI Schema Reference:
 https://wiki.duraspace.org/display/DSDOC/DRI+Schema+Reference

 Debugging XMLUI hints:

 https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthe
 metutorial-Debuggingatvariousstagesofthethemeapplicationpipelinehttps://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthemetutorial-Debuggingatvariousstagesofthethemeapplicationpipeline(includes
 info on how to see the DRI behind any page) and I was right, it is
 super-simple, do it by... I'm copying from the page linked above):

 1. prepending DRI/ to the beginning of the page url but after the context
 path, i.e. http://manakin-url/DRI/search
 2. appending the XML parameter to the end of the URL, i.e.
 http://manakin-url/search?XML or