Bug 20081: Set inline headers for uploaded pdfs
authorNick Clemens <nick@bywatersolutions.com>
Tue, 23 Jan 2018 20:21:57 +0000 (20:21 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:17 +0000 (17:31 -0300)
commit6d150eaeca5ba9c9fb3ef2229ce2138526b4db64
tree2b52efc17a277f47c9737a7b4e57400133977bf4
parentef7805aa3657e47daaa266b5334e98a1c1667d5f
Bug 20081: Set inline headers for uploaded pdfs

To test:
1 - Edit a framework and add the 'upload/pl' plugin to the 856 field
2 - Attach a pdf to one record
3 - Attach a different type of file to another
(To attach, edit a record in the framework edited above and find the
 helper by the 856 field)
4 - Click the links on the record
5 - Verify the pdf opens inline
6 - Verify the other file does not
7 - prove t/db_dependent/Upload.t

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/UploadedFile.pm
t/db_dependent/Upload.t