[Koha-bugs] [Bug 10052] Make intranetstylesheet and intranetcolorstylesheet behave exactly like their opac counterparts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 13 09:16:05 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10052

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17918|0                           |1
        is obsolete|                            |
  Attachment #17919|0                           |1
        is obsolete|                            |
  Attachment #17920|0                           |1
        is obsolete|                            |

--- Comment #14 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 18109
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18109&action=edit
Bug 10052: Db revision for intranetstylesheet

Report 10052 makes the intranetstylesheet prefs behave like the opac ones.
This patch contains an optional db revision: If the pref intranetstylesheet is
not blank, and does not start with http, https or /, then prefix it with a
slash to make it an absolute path.

Test plan:
Before applying this patch:
1) Put intranet-tmpl/prog/en/css/staff-global.css into intranetstylesheet.
This works in the current staff client, but will be interpreted as relative as
soon as both patches for this report have been applied.
Apply the patch. And run:
/cgi-bin/koha/installer/install.pl?step=3&op=updatestructure
Check the webinstaller warning and the pref value. There should be a slash
in front now. The css should still work.

Continue after applying this patch with:
2) Clear the intranetstylesheet pref. Run updatestructure again. No message: OK
3) Put /intranet-tmpl/prog/en/css/staff-global.css in intranetstylesheet.
Run updatestructure again. No message: OK
4) Prefix intranetstylesheet with http://[your-server-here]. Test again.

Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list