Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-4905

Display appropriate icon based on attachment type in Maintenance Documents

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.3.2, 2.0
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KNS
    • Application Requirement:
      KC
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      While maintaining the attachment associated with a Maintainable BO, we need appropriate file icons to be displayed based on the MIME type.

        Attachments

          Issue Links

            Activity

            Hide
            wbalderamos William Balderamos (Inactive) added a comment -

            See revision #16802.

            Show
            wbalderamos William Balderamos (Inactive) added a comment - See revision #16802.
            Hide
            cchandran Chitra Chandran added a comment - - edited

            The mimeTypeMapping for AttachmentService includes the directory structure (static/images).

            notes.tag's rendering of 'download attachment' link uses this value on top of the regular images path and this adds upto an incorrect filepath.

            <html:image property="methodToCall.downloadBOAttachment.attachment[$

            {status.index}

            ]" src="$

            {ConfigProperties.kr.externalizable.images.url}

            $

            {note.attachment.attachmentIconPathByMimeType}

            " title="download attachment" alt="download attachment" style="padding:5px" onclick="excludeSubmitRestriction=true"/>

            Show
            cchandran Chitra Chandran added a comment - - edited The mimeTypeMapping for AttachmentService includes the directory structure (static/images). notes.tag's rendering of 'download attachment' link uses this value on top of the regular images path and this adds upto an incorrect filepath. <html:image property="methodToCall.downloadBOAttachment.attachment[$ {status.index} ]" src="$ {ConfigProperties.kr.externalizable.images.url} $ {note.attachment.attachmentIconPathByMimeType} " title="download attachment" alt="download attachment" style="padding:5px" onclick="excludeSubmitRestriction=true"/>
            Hide
            cchandran Chitra Chandran added a comment -

            Have committed the fix for this. Attached are the images of filetype icon display on KC's Test Server showing the problem and same displayed with fix applied locally.

            Show
            cchandran Chitra Chandran added a comment - Have committed the fix for this. Attached are the images of filetype icon display on KC's Test Server showing the problem and same displayed with fix applied locally.
            Hide
            riceci Rice-CI User (Inactive) added a comment -

            Integrated in rice-1.0.3.2-nightly #51 (See http://ci.rice.kuali.org/job/rice-1.0.3.2-nightly/51/)
            KULRICE-4905: Have modified the mimeTypeMapping for Attachment Service

            Show
            riceci Rice-CI User (Inactive) added a comment - Integrated in rice-1.0.3.2-nightly #51 (See http://ci.rice.kuali.org/job/rice-1.0.3.2-nightly/51/ ) KULRICE-4905 : Have modified the mimeTypeMapping for Attachment Service
            Hide
            jcoltrin Jessica Coltrin (Inactive) added a comment -

            closing since 1.0.3.2 is released.

            Show
            jcoltrin Jessica Coltrin (Inactive) added a comment - closing since 1.0.3.2 is released.

              People

              • Assignee:
                wbalderamos William Balderamos (Inactive)
                Reporter:
                cchandran Chitra Chandran
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours
                  2d 4h