Re: [Dspace-tech] Question about altering item-view in XMLUI
Perhaps this will help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Presentation#Use_unique_icons_for_digital_format_types_in_item_view On 9 November 2012 23:37, helix84 heli...@centrum.sk wrote: Hi George, it's very simple, really. Copy this template over to your custom theme, replacing this one line: https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L407 with: xsl:choose xsl:when test=current()/@MIMETYPE = 'application/pdf' img alt=Icon src={concat($theme-path, '/images/your_pdf_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:when test=current()/@MIMETYPE = 'image/jpeg' img alt=Icon src={concat($theme-path, '/images/your_jpg_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:otherwise img alt=Icon src={concat($theme-path, '/images/mime.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:otherwise /xsl:choose Fill in your images and add more mimetypes - you get the idea. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- *Hilton Gibson* 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://scholar.sun.ac.za -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
On Mon, Nov 12, 2012 at 11:49 AM, Hilton Gibson hilton.gib...@gmail.com wrote: Perhaps this will help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Presentation#Use_unique_icons_for_digital_format_types_in_item_view Thanks for adding that, Hilton. Could you please also mention the license of the icons along with their source? I'm wondering if this is something worth including in DSpace out-of-the-box. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
Most icons from here: http://openiconlibrary.sourceforge.net/ On 12 November 2012 13:11, helix84 heli...@centrum.sk wrote: On Mon, Nov 12, 2012 at 11:49 AM, Hilton Gibson hilton.gib...@gmail.com wrote: Perhaps this will help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Presentation#Use_unique_icons_for_digital_format_types_in_item_view Thanks for adding that, Hilton. Could you please also mention the license of the icons along with their source? I'm wondering if this is something worth including in DSpace out-of-the-box. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- *Hilton Gibson* 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://scholar.sun.ac.za -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
On Mon, Nov 12, 2012 at 1:03 PM, Hilton Gibson hilton.gib...@gmail.com wrote: Most icons from here: http://openiconlibrary.sourceforge.net/ Hmm, I couldn't find them in the mimetypes category or using Google Image search. So, do you think this is something suitable for upstream? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
Not what I am using, but you are welcome to substitute from the open icon library. Cheers hg On 12 November 2012 14:09, helix84 heli...@centrum.sk wrote: On Mon, Nov 12, 2012 at 1:03 PM, Hilton Gibson hilton.gib...@gmail.com wrote: Most icons from here: http://openiconlibrary.sourceforge.net/ Hmm, I couldn't find them in the mimetypes category or using Google Image search. So, do you think this is something suitable for upstream? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- *Hilton Gibson* 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://scholar.sun.ac.za -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
Thank you, Hilton (and helix84!). George Kozak Digital Library Specialist Cornell University Library Information Technologies (CUL-IT) 501 Olin Library Cornell University Ithaca, NY 14853 607-255-8924 From: Hilton Gibson [mailto:hilton.gib...@gmail.com] Sent: Monday, November 12, 2012 5:49 AM To: Ivan Masár Cc: George S Kozak; dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Question about altering item-view in XMLUI Perhaps this will help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Presentation#Use_unique_icons_for_digital_format_types_in_item_view On 9 November 2012 23:37, helix84 heli...@centrum.skmailto:heli...@centrum.sk wrote: Hi George, it's very simple, really. Copy this template over to your custom theme, replacing this one line: https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L407 with: xsl:choose xsl:when test=current()/@MIMETYPE = 'application/pdf' img alt=Icon src={concat($theme-path, '/images/your_pdf_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:when test=current()/@MIMETYPE = 'image/jpeg' img alt=Icon src={concat($theme-path, '/images/your_jpg_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:otherwise img alt=Icon src={concat($theme-path, '/images/mime.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:otherwise /xsl:choose Fill in your images and add more mimetypes - you get the idea. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Hilton Gibson 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://scholar.sun.ac.za -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
Hi George, it's very simple, really. Copy this template over to your custom theme, replacing this one line: https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L407 with: xsl:choose xsl:when test=current()/@MIMETYPE = 'application/pdf' img alt=Icon src={concat($theme-path, '/images/your_pdf_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:when test=current()/@MIMETYPE = 'image/jpeg' img alt=Icon src={concat($theme-path, '/images/your_jpg_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:otherwise img alt=Icon src={concat($theme-path, '/images/mime.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:otherwise /xsl:choose Fill in your images and add more mimetypes - you get the idea. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question about altering item-view in XMLUI
Thank you, helix84: I was getting bogged down in a morass of my own making. This really helps!! George Kozak Digital Library Specialist Cornell University Library Information Technologies (CULIT) 501 Olin Library Cornell University Ithaca, NY 14853 607-255-8924 From: ivan.ma...@gmail.com [ivan.ma...@gmail.com] on behalf of helix84 [heli...@centrum.sk] Sent: Friday, November 09, 2012 4:37 PM To: George S Kozak Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Question about altering item-view in XMLUI Hi George, it's very simple, really. Copy this template over to your custom theme, replacing this one line: https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L407 with: xsl:choose xsl:when test=current()/@MIMETYPE = 'application/pdf' img alt=Icon src={concat($theme-path, '/images/your_pdf_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:when test=current()/@MIMETYPE = 'image/jpeg' img alt=Icon src={concat($theme-path, '/images/your_jpg_icon.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:when xsl:otherwise img alt=Icon src={concat($theme-path, '/images/mime.png')} style=height: {$thumbnail.maxheight}px;/ /xsl:otherwise /xsl:choose Fill in your images and add more mimetypes - you get the idea. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech