Bugzilla – Attachment 16306 Details for
Bug 9618
Add support for intranetuserjs to labels/spinelabel-print.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9618 - Add support for intranetuserjs to labels/spinelabel-print.pl
Bug-9618---Add-support-for-intranetuserjs-to-label.patch (text/plain), 2.50 KB, created by
Owen Leonard
on 2013-03-18 19:25:50 UTC
(
hide
)
Description:
Bug 9618 - Add support for intranetuserjs to labels/spinelabel-print.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-03-18 19:25:50 UTC
Size:
2.50 KB
patch
obsolete
>From f36cbe210563a063df37d19d6bad9fb14c0a0f20 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 18 Mar 2013 15:13:09 -0400 >Subject: [PATCH] Bug 9618 - Add support for intranetuserjs to > labels/spinelabel-print.pl >Content-Type: text/plain; charset="utf-8" > >The template for printing a single spine label is a stripped-down >version of a standard Koha template, but it should include >intranetuserjs and IntranetUserCSS so that libraries can make local >customizations. > >This patch updates the page's DOCTYPE to HTML5 and adds the missing >markup for including those preferences. Also added is jQuery, since >there's a good chance local customizations are using jQuery. > >To test, make sure there is something in your intranetuserjs and >IntranetUserCSS system preferences. Visit >/cgi-bin/koha/labels/spinelabel-home.pl and submit a barcode. View >source on the spine label output page and confirm that your custom js >and css were included correctly. >--- > .../prog/en/modules/labels/spinelabel-print.tt | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >index ab51f9f..f028357 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt >@@ -1,10 +1,5 @@ >-<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" >- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >-[% IF ( bidi ) %] >-<html lang="[% lang %]" xml:lang="[% lang %]" dir="[% bidi %]" xmlns="http://www.w3.org/1999/xhtml"> >-[% ELSE %] >-<html lang="[% lang %]" xml:lang="[% lang %]" xmlns="http://www.w3.org/1999/xhtml"> >-[% END %] >+<!DOCTYPE html> >+[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %] > <head> > <title>Koha › Tools › Spine labels</title> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >@@ -15,6 +10,15 @@ > .noprint { display: none; } > } > </style> >+[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %] >+<script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script> >+[% IF ( intranetuserjs ) %] >+ <script type="text/javascript"> >+ //<![CDATA[ >+ [% intranetuserjs %] >+ //]]> >+ </script> >+[% END %] > </head> > [% IF ( BarcodeNotFound ) %] > <body id="labels_spinelabel-print" class="tools labels"> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9618
:
15364
|
15365
|
15379
|
15722
|
16306
|
18416
|
20685
|
20686
|
20930
|
20931