Re: [Dspace-tech] Using the METS behavior section
Thank you Emilio, Yes, in some cases you have to use structMap. I don't know any alternative to it. And I am doing this, but in standalone Java code, which runs as a separate web application. But I am wondering - if I have a viewer for simple images (jpg, png), another viewer for pdf files (e.g. FlexPaper) etc - then in what more "natural for DSpace" way can I say - "use this viewer for the object"? Anyway, it is my code that reads the mets and chooses the viewer. My question is rather - is there anything aesthetically more suitable to DSpace, which is kind of attribute of the object, saying which viewer to use. Best regards Evgeni On Sat, Aug 15, 2015 at 1:43 PM, emilio lorenzo wrote: > Something similar, > we made a prototype that used (in XMLUI) the mets.xml (included in the > METS bundle) to alter the visualization of a complex object from a flat > view to a hierachical one. We used the part of > the mets to show the volume-chapter structure of the distinct pages of the > object > > IMHO, perhaps not very practical (answering your second question), > > Best regards > > Emilio Lorenzo > > > > > El 13/08/2015 a las 20:53, Evgeni Dimitrov escribió: > > Has anybody used or has anybody considered using the METS behavior section > in order to say "I want this object displayed by that viewer"? Do you think > that this will be practical/impractical with DSpace? > > Best regards > Evgeni > > > > > -- > > > > ___ > DSpace-tech mailing > listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > > -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Using the METS behavior section
Has anybody used or has anybody considered using the METS behavior section in order to say "I want this object displayed by that viewer"? Do you think that this will be practical/impractical with DSpace? Best regards Evgeni -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Bulk METS ingest
This is about DSpace 5.1. I am trying to ingest in one go two items to an existing collection using packager. I don't know is it possible at all. Every item consists of mets.xml, image.jpg, thumbnail.jpg. Every item can be ingested by itself using packager. To ingest them together I created a third mets for the collection and described the two items in the structMap. Then I tried with packager -s -a and packager -r -k -a getting different error messages - depending on is there -p nn in the command line or not: "METS document is missing the required structMap[@LABEL='Parent'] element." (I have ) "Community cannot be cast to org.dspace.content.Collection" "org.dspace.content.Collection cannot be cast to org.dspace.content.Item" Does anybody know - is bulk ingest to existing collection possible at all and what is the way? Best regards Evgeni -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Bulk METS ingest
This is in DSpace 5.1. I have in directory ITEM31 mets.xml, image.jpg, thumbnail.jpg I can zip and ingest: dspace packager -s -e ed@xx -p 123456789/9 -t METS phingest_031_mets.zip This works. However when I have the same in a second directory ITEM32 and I zip both together and ingest: dspace packager -s -a -e ed@xx -p 123456789/9 -t METS phingest_03_mets.zip Then I am getting an Exception java.lang.NullPointerException: entry at java.util.zip.ZipFile.getInputStream(Unknown Source) at org.dspace.content.packager.AbstractMETSIngester.parsePackage(Abstrac tMETSIngester.java:333) . . . etc Looks like something is missing and the packager can not find it. Any ideas - what is missing in the zip? Best regards Evgeni -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Multilingual support in DSpace
I created a "crosswalk?" from a subset of dcterms to DIM ("DSpace Intermediate Metadata"). It works. But I don't understand something. Following the MODS_to_DIM crosswalk I have dc coverage spatial en_US What is the idea of the "lang" attribute? Does it make any sense to have, say, one and the same subject in two languages e.g. subject-en_US-watter subject-de_DE-Wasser Best regards Evgeni -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] About XMLUI and cache
Thank you Antoine, It works. Best regards Evgeni On Wed, May 13, 2015 at 12:27 PM, Antoine Snyers wrote: > Hi Evgeni Dimitrov > > You have to modify the "public Serializable getKey()" and "public > SourceValidity getValidity()" methods of that same class. > These methods evaluate whether addBody should be called or whether the > cached document may be used. > > > Evgeni Dimitrov schreef op 13/05/15 om 11:01: > > Hi, > > This is about DSpace 5.1. > > I am trying to make a small change in the way an item is displayed. When > the user has "write" rights on the item it should display as originally. > Otherwise the item handle is passed to another web application. > > I added several lines in the beginning of > org.dspace.app.xmlui.aspect.artifactbrowser.ItemViewer.addBody > > Request request = ObjectModelHelper.getRequest(objectModel); > if(!AuthorizeManager.authorizeActionBoolean(context, item, > Constants.WRITE)) { > StringBuilder redirectURL = new StringBuilder(); > redirectURL.append(request.getContextPath().replace("/xmlui", > "/dspviewerf/")); > redirectURL.append(item.getHandle()); > redirectURL.append("?sq="); > redirectURL.append("123"); > > HttpServletResponse httpResponse = > (HttpServletResponse) > objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT); > httpResponse.sendRedirect(redirectURL.toString()); > } > > It works as expected for the user without "write" rights. > It works as expected for the user with "write" rights. > > But after it has worked once for the user with "write" rights, it creates > cache and displays the same page for the user without "write" rights. > > What can I reasonably do? Disable the cache in some way? > > Best regards > Evgeni > > > > -- > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM > Insight.http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > ___ > DSpace-tech mailing > listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > > > -- > [image: logo] > *Antoine Snyers* > *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010* > *Esperantolaan 4, Heverlee 3001, Belgium* > www.atmire.com > <http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=antoine> > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] About XMLUI and cache
Hi, This is about DSpace 5.1. I am trying to make a small change in the way an item is displayed. When the user has "write" rights on the item it should display as originally. Otherwise the item handle is passed to another web application. I added several lines in the beginning of org.dspace.app.xmlui.aspect.artifactbrowser.ItemViewer.addBody Request request = ObjectModelHelper.getRequest(objectModel); if(!AuthorizeManager.authorizeActionBoolean(context, item, Constants.WRITE)) { StringBuilder redirectURL = new StringBuilder(); redirectURL.append(request.getContextPath().replace("/xmlui", "/dspviewerf/")); redirectURL.append(item.getHandle()); redirectURL.append("?sq="); redirectURL.append("123"); HttpServletResponse httpResponse = (HttpServletResponse) objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT); httpResponse.sendRedirect(redirectURL.toString()); } It works as expected for the user without "write" rights. It works as expected for the user with "write" rights. But after it has worked once for the user with "write" rights, it creates cache and displays the same page for the user without "write" rights. What can I reasonably do? Disable the cache in some way? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] About Context and special groups
Thank you Peter, - I created groups, - I edited [dspace]/config/modules/authentication.cfg - I edited [dspace]/config/modules/authentication-ip.cfg What next - which class and which method populates the SpecialGroups in the Context? Best regards Evgeni On Fri, May 8, 2015 at 10:57 PM, Peter Dietz wrote: > First you have to configure IP addresses to mean anything: > https://wiki.duraspace.org/display/DSDOC4x/Authentication+Plugins#AuthenticationPlugins-IPAuthentication > > > Peter Dietz > Longsight > www.longsight.com > pe...@longsight.com > p: 740-599-5005 x809 > > On Fri, May 8, 2015 at 3:25 PM, Evgeni Dimitrov > wrote: > >> In DSpace 5.1. >> I start with the ID of an Item, the ID of an ePerson and the IP of the >> request. >> I need to know can the ePerson read the item (from this IP). >> >> - I create a Context >> - I create the ePerson >> - I set the ePerson in the context >> - I create the Item >> - I check >> >> AuthorizeManager.authorizeAction( >> context, >> item, >> org.dspace.core.Constants.READ); >> >> - I would like to know how can I use the IP address. My guess is that the >> SpecialGroups of the context should be populated but I don't know how. >> Could you help? >> >> Best regards >> Evgeni >> >> >> >> -- >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> ___ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech >> List Etiquette: >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >> > > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] About Context and special groups
In DSpace 5.1. I start with the ID of an Item, the ID of an ePerson and the IP of the request. I need to know can the ePerson read the item (from this IP). - I create a Context - I create the ePerson - I set the ePerson in the context - I create the Item - I check AuthorizeManager.authorizeAction( context, item, org.dspace.core.Constants.READ); - I would like to know how can I use the IP address. My guess is that the SpecialGroups of the context should be populated but I don't know how. Could you help? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] How to integrate a specific viewer?
Than you Peter, Asking "how to get the filename", I meant something like D:\DSPACE.5.1\DSPACE\assetstore\22\89\11\22891139848631067003303488755830361888 Best regards Evgeni On Tue, May 5, 2015 at 12:23 AM, Peter Dietz wrote: > Hi Evgeni, > > B: Use the REST API to get the filename from bitstreamID. > There is an endpoint: /rest/bitstream/:id > https://wiki.duraspace.org/display/DSDOC5x/REST+API#RESTAPI-Bitstreams > > Example: http://trydspace5.longsight.com/rest/bitstreams/1?expand=all > > 1 > STAL9781614992707-0023.pdf > bitstream > ORIGINAL > ... > > A: This one is more complicated. My usage of jsessionID has been handling > load balancing. (We would put the jsessionID and some attribs into > distributed redis, and then the other instances would be on the same page > regardless of which instance served other requests.) You would need a way > to get the eperson of the current visitor. The REST API doesn't give you > the ability to check on some user's authorization. It assumes that you > would log in as a user, and it will let you know if you are authorized to > access a resource. > > There is a REST endpoint: > >- GET /bitstreams/{bitstream id}/policy - Return bitstream policies. > > I suppose you could have an admin account access the REST API, and look at > the policy, and look for a policy that refers to the specific eperson. Or > if you have a simpler use case, look for Anonymous READ. > > You could always build a new REST endpoint for DSpace to help perform a > specific authorization check for you. Maybe have a way for you to log in as > an admin to REST API, then a log-in-as method to cloak yourself as the > in-question eperson to do the access check. Or maybe create > /bitstreams/:bitstreamID/authorized?eperson=:epersonID > > > Anyways, the DSpace method you would want to call, if at all possible is: > AuthorizeManager.authorizeAction(Context c, DSpaceObject o, int action) > You can create a context, and specify which user you are looking for. A > bitstream is a DSpaceObject. Action would be something like Constants.READ. > > Another route could be in looking at including the DSpace jar into your > Java project, and then calling the relevant DSpace method. I remember Jacob > Brown had something for JRuby to pull in some DSpace jars: > https://github.com/kardeiz/dscriptor > > Hope this helps. > > > > > Peter Dietz > Longsight > www.longsight.com > pe...@longsight.com > p: 740-599-5005 x809 > > On Mon, May 4, 2015 at 10:43 AM, Evgeni Dimitrov > wrote: > >> If there is a web application (running in the same Tomcat as DSpace), >> which can display a particular kind of items (consisting of several files), >> >> A. is there a way for it to check access rights to the item based on the >> JSESSIONID? >> B. is there a way for it to get the real file name based on the bitstream >> id? >> >> Best regards >> Evgeni >> >> >> >> -- >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> ___ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech >> List Etiquette: >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >> > > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] access rights in METS ingest are ignored
Thank you helix84, I am using DSpace 5.1. I am ingesting with the line dspace packager -e evgeni.dimit...@nalis.bg -p 123456789/3 -t METS D:\DSPACE.5.1\DSPACE_data\bingest_03c_mets.zip Best regards Evgeni On Mon, May 4, 2015 at 5:44 PM, helix84 wrote: > Which DSpace version and which ingestion method are you using? > > I added simple embargo recording in metsrights metadata, available > since DSpace 4 via AIP packager (both ingest and dissemination). You > can see the issue and the patch here: > > https://jira.duraspace.org/browse/DS-1514 > > I don't remeber whether metsrights in AIP uses the same concept of > users/groups as DSpace, though. > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] How to integrate a specific viewer?
If there is a web application (running in the same Tomcat as DSpace), which can display a particular kind of items (consisting of several files), A. is there a way for it to check access rights to the item based on the JSESSIONID? B. is there a way for it to get the real file name based on the bitstream id? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] How to integrate a specific viewer?
If there is a web application (running in the same Tomcat as DSpace), which can display a particular kind of items - consisting of several files, A. is there a way for it to check access rights to the item based on the JSESSIONID? B. is there a way for it to get the real file name based on the bitstream id? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] a thumbnail is not displayed
Thank you Hilton, I don't think this is related to filters. I do provide in the ingest a jpg with the thumbnail. And it is properly described in the METS - as thumbnail Best regards Evgeni On Sat, May 2, 2015 at 10:25 PM, Hilton Gibson wrote: > Hi Evgeni > > Perhaps a config problem: > http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Step_3_-_Configuration > ? > > Cheers > > hg > > *Hilton Gibson* > Ubuntu Linux Systems Administrator > JS Gericke Library > Room 1025C > Stellenbosch University > Private Bag X5036 > Stellenbosch > 7599 > South Africa > > Tel: +27 21 808 4100 | Cell: +27 84 646 4758 > > On 2 May 2015 at 21:10, Evgeni Dimitrov wrote: > >> In DSpace 5.1 in Mirage in Collection view the thumbnail of the item is >> not displayed. >> There is instead a comment in the HTML: >> >> >> >> This is for an item ingested as several jpg files and a METS. >> There is a file group THUMBNAIL in the METS. >> >> How to get the thumbnail displayed? >> >> Best regards >> Evgeni >> >> >> >> -- >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> ___ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech >> List Etiquette: >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >> > > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] a thumbnail is not displayed
In DSpace 5.1 in Mirage in Collection view the thumbnail of the item is not displayed. There is instead a comment in the HTML: This is for an item ingested as several jpg files and a METS. There is a file group THUMBNAIL in the METS. How to get the thumbnail displayed? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] access rights in METS ingest are ignored
Following an example, I ingested several jpg files and a METS file with sections like this: http://cosimo.stanford.edu/sdr/metsrights/"; xsi:schemaLocation="http://cosimo.stanford.edu/sdr/metsrights/ http://cosimo.stanford.edu/sdr/metsrights.xsd";> http://cosimo.stanford.edu/sdr/metsrights/"; RIGHTSCATEGORY="LICENSED"> It is otherwise as expected, but the item, all bundles and all bitstreams are readable for "Anonymous". Any idea what is wrong? And what is exactly "RIGHTSCATEGORY" and "CONTEXTCLASS"? Best regards Evgeni -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Why DSpace serves some files as "attachments"?
The Response header is bellow. When and why is a file served as "attachment"? Is this configurable? = Response Headers view source Content-Dispositionattachment;filename="bookPDF2.pdf" Content-Languagebg Content-Length18846023 Content-Typeapplication/pdf DateThu, 23 Jan 2014 08:25:22 GMT ExpiresThu, 23 Jan 2014 09:25:22 GMT Last-ModifiedTue, 21 Jan 2014 20:13:43 GMT ServerApache-Coyote/1.1 VaryUser-Agent X-Cocoon-Version2.2.0 -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] showing a PDF in the browser
No David, I deployed the same PDF file streight to Tomcat and then it opens in the plugin of the browser. I suspect that what makes a difference is that - when it comes from DSpace - the header says "disposition - attachment" - when it comes streight from Tomcat - there is nothing about "attachment". Regards Evgeni On Wed, Jan 22, 2014 at 4:26 PM, Schuster, David wrote: > They were probably using the Atmire document streaming feature that is a > paid for add on. > > > > Message: 2 > > Date: Tue, 21 Jan 2014 22:37:19 +0200 > > From: Evgeni Dimitrov > > Subject: [Dspace-tech] showing a PDF in the browser > > To: dspace-tech > > Message-ID: > > > > > Content-Type: text/plain; charset=ISO-8859-1 > > > > I found on some site a PDF file, which gets displayed in my Firefox 26 > browser in the Acrobat 11 plug-in. > > I downloaded this file and ingested to DSpace: > > > > dspace/bin/dspace import --add --eperson=. . . --source=. . . > > > > Now - from DSpace - this same file does not get authomatically displayed in > Firefox in the Acrobat plug-in. > > Firefox asks - to open or to save. When I select "open with Adobe Reader", > it opens in Adobe Reader, but outside Firefox. > > > > I can not figure out why the same PDF file is shown differently when served > from different servers... > > I only tried to add to the DC metadata > > > language="en">application/pdf > > > > But this did not change anything. > > Any ideas? > > > > > > David Schuster > > Texas Woman's University > > Director of Library Information Technology & Technical Support > > PO Box 425528 > > Denton TX 76204-5528 > > > > Phone: 940-898-3909 > > Fax: 940-898-3764 > > > > dschus...@twu.edu > > > > > -- > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] showing a PDF in the browser (cont.)
Hi Hilton, This is in the response header. Same to all browsers. And it looks like all browsers (Firefox, Internet Explorer etc.) treat the pdf differently depending on "disposition - attachment" or not. Regards Evgeni On Wed, Jan 22, 2014 at 2:11 PM, Hilton Gibson wrote: > Hi Evgeni > > Is this not also browser dependant? > How do the developers cater for ALL browser options regarding MIME types? > > Regards > > hg > > Hilton Gibson > Ubuntu Linux Systems Administrator > JS Gericke Library > Room 1025D > Stellenbosch University > Private Bag X5036 > Stellenbosch > 7599 > South Africa > > Tel: +27 21 808 4100 | Cell: +27 84 646 4758 > http://library.sun.ac.za > http://za.linkedin.com/in/hiltongibson > > > On 22 January 2014 13:36, Evgeni Dimitrov wrote: >> >> When a PDF file is served by Tomcat directly, then the header says: >> . . . >> Content-Typeapplication/pdf >> . . . >> and the file is displayed by the plugin in the browser. >> >> When the same PDF is served by DSpace, then the header says: >> . . . >> Content-Dispositionattachment;filename="bookPDF2.pdf" >> Content-Typeapplication/pdf;charset=ISO-8859-1 >> . . . >> and the browser asks - "to save" or "to open outside the browser". >> >> Is this on purpose and is this configurable (I mean configurable in >> DSpace)? >> >> >> -- >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> ___ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech >> List Etiquette: >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] showing a PDF in the browser (cont.)
When a PDF file is served by Tomcat directly, then the header says: . . . Content-Typeapplication/pdf . . . and the file is displayed by the plugin in the browser. When the same PDF is served by DSpace, then the header says: . . . Content-Dispositionattachment;filename="bookPDF2.pdf" Content-Typeapplication/pdf;charset=ISO-8859-1 . . . and the browser asks - "to save" or "to open outside the browser". Is this on purpose and is this configurable (I mean configurable in DSpace)? -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] showing a PDF in the browser
I found on some site a PDF file, which gets displayed in my Firefox 26 browser in the Acrobat 11 plug-in. I downloaded this file and ingested to DSpace: dspace/bin/dspace import --add --eperson=. . . --source=. . . Now - from DSpace - this same file does not get authomatically displayed in Firefox in the Acrobat plug-in. Firefox asks - to open or to save. When I select "open with Adobe Reader", it opens in Adobe Reader, but outside Firefox. I can not figure out why the same PDF file is shown differently when served from different servers... I only tried to add to the DC metadata application/pdf But this did not change anything. Any ideas? -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] URL of a bitstream in the METS file
Thank you very much. To be on the safe side - the link passed to the theme is the link to the METS file. In the METS file are the links with "?sequence=20001&isAllowed=y". Does this mean that the very METS file is dynamically generated - depending on the IP of the request? On Mon, Jan 6, 2014 at 4:51 PM, helix84 wrote: > On Mon, Jan 6, 2014 at 3:36 PM, Evgeni Dimitrov > wrote: >> I can get the file using either one of: > > That's correct, you can just leave out the parameters. > >> /xmlui/bitstream/handle/123456789/87/p1.jpg?sequence=20001&isAllowed=y >> /xmlui/bitstream/handle/123456789/87/p1.jpg?sequence=20001 >> /xmlui/bitstream/handle/123456789/87/p1.jpg >> >> What is the meaning of: >> >> "sequence=20001" and especially of > > This is the value of sequence_id from the bitstream table and it's > meaning is the display order of bitstreams within an item. > >> "isAllowed=y" > > This is another rendering hint that tells the XMLUI theme that the > item is accessible/inaccessible for the current user. The URL is > generated by Java code which knows how to find out this information > and is processed by a XSLT template, which is the presentation layer > and just displays what it's passed. > > Both are just information being passed between DSpace layers and are > ignored when you actually access the bitstream. So it's safe to ignore > the parameters. > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] URL of a bitstream in the METS file
A theme gets a DRI with a line pointing to a METS file: In this METS file there are lines pointing to the individual files of the item - like this: I can get the file using either one of: /xmlui/bitstream/handle/123456789/87/p1.jpg?sequence=20001&isAllowed=y /xmlui/bitstream/handle/123456789/87/p1.jpg?sequence=20001 /xmlui/bitstream/handle/123456789/87/p1.jpg What is the meaning of: "sequence=20001" and especially of "isAllowed=y" -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] configuring DSpace 4.0 - parameter webui.browse.thumbnail.linkbehaviour
in dspace.cfg there is: # where should clicking on a thumbnail from browse/search take the user # Only values currently supported are "item" and "bitstream" webui.browse.thumbnail.linkbehaviour = bitstream It does not say - is it used, or is it ignored by XMLUI. I use XMLUI. I tried both ways and there is no difference. It always goes to "item"... Does anybody know? -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] viewing METS in DSpace 4.0
Actually it works - as far as METS is concerned - it should be lower case - "mets.xml". Does anybody know - will DSpace accept deep (several levels deep) nested "div" tags in structMap? -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] viewing METS in DSpace 4.0
In dspace.cfg there is such fragment: = # Optionally you may configure Manakin to take advantage of metadata stored as a # bitstream. These metadata files should be inside the "METADATA" bundle and named # either MODS.xml or METS.xml. If either of the following options are turned on then # these files will be made available to the theme when rendering an item. #xmlui.bitstream.mods = true #xmlui.bitstream.mets = true = 1. is it deliberately written "METS.xml" and not "mets.xml" ? 2. Assuming we use the METS packager, - if YES, then should there be both "METS.xml" and "mets.xml" in the package or only one (which one?) ? 3. is there any existing Theme in DSpace (Mirage ?) which makes use of the METS.xml, if the above feature is enabled ? Thanks -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] ingesting METS in DSpace 4.0 (hopefully readable this time)
I started with DSpace four days ago and I am not sure how much functionality to expect. It is DSpace 4.0 I ingested a mets.xml and four pages and a thumbnail - with the METS packager. The mets file is attached. First there was no ADMID attribute in the "fileGrp" and I was getting an error message: "Invalid METS Manifest: file element without ID attribute." Exactly as in Bug DSpace DS-1846 Then I added the attribute ADMID to the two filegroups. The ingest succeeded. And here comes something, which I wonder - is it the normal functionality or is it a bug: I see the item with a thumbnail and 4 bitstreems. I can "view" every bitstreem (page) separately. But I hoped that following the structMap, I will "view" the item as a whole - with a kind of "list of continents" on the left side and one "current" page on the right side. Could you tell me - was there something wrong with my second "successfull" ingest - because of which I don't view the item as a whole? Or is this not meant to happen? And one more related question - in the code - around this error message I saw a comment: "find the ID of the primary or Logo bitstream in manifest" What is considered as the "primary or Logo bitstream in manifest" ? Thanks. http://www.loc.gov/METS/"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd";> ED http://www.loc.gov/mods/v3"; xmlns:xlink="http://www.w3.org/1999/xlink"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";>http://www.loc.gov/mods/v3"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";> author AAA 2013-12-26T01:00:00Z B13515185290367 SSS1 SSS2 TTT BOOK -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] ingesting METS in DSpace 4.0
I started with DSpace four days ago and I am not sure how much functionality to expect. It is DSpace 4.0 I ingested a mets.xml and four pages and a thumbnail - with the METS packager. The mets file is attached. First there was no ADMID attribute in the "fileGrp" and I was getting an error message: "Invalid METS Manifest: file element without ID attribute." Exactly as in Bug DSpace DS-1846 Then I added the attribute ADMID to the two filegroups. The ingest succeeded. And here comes something, which I wonder - is it the normal functionality or is it a bug: I see the item with a thumbnail and 4 bitstreems. I can "view" every bitstreem (page) separately. But I hoped that following the structMap, I will "view" the item as a whole - with a kind of "content" on the left side and one "current" page on the right side. Could you tell me - was there something wrong with my second "successfull" ingest - because of which I don't view the item as a whole? Or is this not meant to happen? And one more related question - in the code - around this error message I saw a comment: "find the ID of the primary or Logo bitstream in manifest" What is considered as the "primary or Logo bitstream in manifest" ? Thanks. http://www.loc.gov/METS/"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd";> ED http://www.loc.gov/mods/v3"; xmlns:xlink="http://www.w3.org/1999/xlink"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";>http://www.loc.gov/mods/v3"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";> author AAA 2013-12-26T01:00:00Z B13515185290367 SSS1 SSS2 TTT BOOK -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Fwd: ingesting METS in DSpace 4.0
I started with DSpace four days ago and I am not sure how much functionality to expect. It is DSpace 4.0 I ingested a mets.xml and four pages and a thumbnail - with the METS packager. The mets file is attached. First there was no ADMID attribute in the "fileGrp" and I was getting an error message: "Invalid METS Manifest: file element without ID attribute." Exactly as in Bug DSpace DS-1846 Then I added the attribute ADMID to the two filegroups. The ingest succeeded. And here comes something, which I wonder - is it the normal functionality or is it a bug: I see the item with a thumbnail and 4 bitstreems. I can "view" every bitstreem (page) separately. But I hoped that following the structMap, I will "view" the item as a whole - with a kind of "content" on the left side and one "current" page on the right side. Could you tell me - was there something wrong with my second "successfull" ingest - because of which I don't view the item as a whole? Or is this not meant to happen? And one more related question - in the code - around this error message I saw a comment: "find the ID of the primary or Logo bitstream in manifest" What is considered as the "primary or Logo bitstream in manifest" ? Thanks. http://www.loc.gov/METS/"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd";> ED http://www.loc.gov/mods/v3"; xmlns:xlink="http://www.w3.org/1999/xlink"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";>http://www.loc.gov/mods/v3"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd";> author AAA 2013-12-26T01:00:00Z B13515185290367 SSS1 SSS2 TTT BOOK -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette