From chrisc at catalyst.net.nz Mon Jan 3 22:35:04 2011 From: chrisc at catalyst.net.nz (Chris Cormack) Date: Tue, 4 Jan 2011 10:35:04 +1300 Subject: [Koha-docs] [PATCH] CSS file for us with generating PDF files Message-ID: <1294090504-22738-1-git-send-email-chrisc@catalyst.net.nz> --- css/manual-pdf.css | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 220 insertions(+), 0 deletions(-) create mode 100644 css/manual-pdf.css diff --git a/css/manual-pdf.css b/css/manual-pdf.css new file mode 100644 index 0000000..c9f20b0 --- /dev/null +++ b/css/manual-pdf.css @@ -0,0 +1,220 @@ + at page { + size: a4; + margin: 1cm; + margin-bottom: 2.5cm; + @frame footer { + -pdf-frame-content: footerContent; + bottom: 1cm; + margin-left: 10cm; + height: 1cm; + } +} +img { + zoom: 75%; +} +html { + font-family: Helvetica; + font-size: 10px; + font-weight: normal; + color: #000000; + background-color: transparent; + margin: 0; + padding: 0; + line-height: 150%; + border: 1px none; + display: inline; + width: auto; + height: auto; + white-space: normal; +} + +b, +strong { + font-weight: bold; +} + +i, +em { + font-style: italic; +} + +u { + text-decoration: underline; +} + +s, +strike { + text-decoration: line-through; +} + +a { + text-decoration: underline; + color: blue; +} + +ins { + color: green; + text-decoration: underline; +} +del { + color: red; + text-decoration: line-through; +} + +pre, +code, +kbd, +samp, +tt { + font-family: "Courier New"; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-weight:bold; + -pdf-outline: true; + -pdf-outline-open: false; +} + +h1 { + /*18px via YUI Fonts CSS foundation*/ + font-size:138.5%; + -pdf-outline-level: 0; +} + +h2 { + /*16px via YUI Fonts CSS foundation*/ + font-size:123.1%; + -pdf-outline-level: 1; +} + +h3 { + /*14px via YUI Fonts CSS foundation*/ + font-size:108%; + -pdf-outline-level: 2; +} + +h4 { + -pdf-outline-level: 3; +} + +h5 { + -pdf-outline-level: 4; +} + +h6 { + -pdf-outline-level: 5; +} + +h1, +h2, +h3, +h4, +h5, +h6, +p, +pre, +hr { + margin:1em 0; +} + +address, +blockquote, +body, +center, +dl, +dir, +div, +fieldset, +form, +h1, +h2, +h3, +h4, +h5, +h6, +hr, +isindex, +menu, +noframes, +noscript, +ol, +p, +pre, +table, +th, +tr, +td, +ul, +li, +dd, +dt, +pdftoc { + display: block; +} + +table { + -pdf-keep-in-frame-mode: shrink; +} + +tr, +th, +td { + + vertical-align: middle; + width: auto; +} + +th { + text-align: center; + font-weight: bold; +} + +center { + text-align: center; +} + +big { + font-size: 125%; +} + +small { + font-size: 75%; +} + + +ul { + margin-left: 1.5em; + list-style-type: disc; +} + +ul ul { + list-style-type: circle; +} + +ul ul ul { + list-style-type: square; +} + +ol { + list-style-type: decimal; + margin-left: 1.5em; +} + +pre { + white-space: pre; +} + +blockquote { + margin-left: 1.5em; + margin-right: 1.5em; +} + +noscript { + display: none; +} + -- 1.7.1 From nengard at gmail.com Mon Jan 3 23:45:05 2011 From: nengard at gmail.com (Nicole Engard) Date: Mon, 3 Jan 2011 17:45:05 -0500 Subject: [Koha-docs] [PATCH] CSS file for us with generating PDF files In-Reply-To: <1294090504-22738-1-git-send-email-chrisc@catalyst.net.nz> References: <1294090504-22738-1-git-send-email-chrisc@catalyst.net.nz> Message-ID: patch pushed to both 3.2 and 3.4 manuals. On Mon, Jan 3, 2011 at 4:35 PM, Chris Cormack wrote: > --- > ?css/manual-pdf.css | ?220 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > ?1 files changed, 220 insertions(+), 0 deletions(-) > ?create mode 100644 css/manual-pdf.css > > diff --git a/css/manual-pdf.css b/css/manual-pdf.css > new file mode 100644 > index 0000000..c9f20b0 > --- /dev/null > +++ b/css/manual-pdf.css > @@ -0,0 +1,220 @@ > + at page { > + size: a4; > + margin: 1cm; > + margin-bottom: 2.5cm; > + @frame footer { > + ? -pdf-frame-content: footerContent; > + ? bottom: 1cm; > + ? margin-left: 10cm; > + ? height: 1cm; > + } > +} > +img { > + zoom: 75%; > +} > +html { > + ? ?font-family: Helvetica; > + ? ?font-size: 10px; > + ? ?font-weight: normal; > + ? ?color: #000000; > + ? ?background-color: transparent; > + ? ?margin: 0; > + ? ?padding: 0; > + ? ?line-height: 150%; > + ? ?border: 1px none; > + ? ?display: inline; > + ? ?width: auto; > + ? ?height: auto; > + ? ?white-space: normal; > +} > + > +b, > +strong { > + ? ?font-weight: bold; > +} > + > +i, > +em { > + ? ?font-style: italic; > +} > + > +u { > + ? ?text-decoration: underline; > +} > + > +s, > +strike { > + ? ?text-decoration: line-through; > +} > + > +a { > + ? ?text-decoration: underline; > + ? ?color: blue; > +} > + > +ins { > + ? ?color: green; > + ? ?text-decoration: underline; > +} > +del { > + ? ?color: red; > + ? ?text-decoration: line-through; > +} > + > +pre, > +code, > +kbd, > +samp, > +tt { > + ? ?font-family: "Courier New"; > +} > + > +h1, > +h2, > +h3, > +h4, > +h5, > +h6 { > + ? ?font-weight:bold; > + ? ?-pdf-outline: true; > + ? ?-pdf-outline-open: false; > +} > + > +h1 { > + ? ?/*18px via YUI Fonts CSS foundation*/ > + ? ?font-size:138.5%; > + ? ?-pdf-outline-level: 0; > +} > + > +h2 { > + ? ?/*16px via YUI Fonts CSS foundation*/ > + ? ?font-size:123.1%; > + ? ?-pdf-outline-level: 1; > +} > + > +h3 { > + ? ?/*14px via YUI Fonts CSS foundation*/ > + ? ?font-size:108%; > + ? ?-pdf-outline-level: 2; > +} > + > +h4 { > + ? ?-pdf-outline-level: 3; > +} > + > +h5 { > + ? ?-pdf-outline-level: 4; > +} > + > +h6 { > + ? ?-pdf-outline-level: 5; > +} > + > +h1, > +h2, > +h3, > +h4, > +h5, > +h6, > +p, > +pre, > +hr { > + ? ?margin:1em 0; > +} > + > +address, > +blockquote, > +body, > +center, > +dl, > +dir, > +div, > +fieldset, > +form, > +h1, > +h2, > +h3, > +h4, > +h5, > +h6, > +hr, > +isindex, > +menu, > +noframes, > +noscript, > +ol, > +p, > +pre, > +table, > +th, > +tr, > +td, > +ul, > +li, > +dd, > +dt, > +pdftoc { > + ? ?display: block; > +} > + > +table { > + ? ? -pdf-keep-in-frame-mode: shrink; > +} > + > +tr, > +th, > +td { > + > + ? ?vertical-align: middle; > + ? ?width: auto; > +} > + > +th { > + ? ?text-align: center; > + ? ?font-weight: bold; > +} > + > +center { > + ? ?text-align: center; > +} > + > +big { > + ? ?font-size: 125%; > +} > + > +small { > + ? ?font-size: 75%; > +} > + > + > +ul { > + ? ?margin-left: 1.5em; > + ? ?list-style-type: disc; > +} > + > +ul ul { > + ? ?list-style-type: circle; > +} > + > +ul ul ul { > + ? ?list-style-type: square; > +} > + > +ol { > + ? ?list-style-type: decimal; > + ? ?margin-left: 1.5em; > +} > + > +pre { > + ? ?white-space: pre; > +} > + > +blockquote { > + ? ?margin-left: 1.5em; > + ? ?margin-right: 1.5em; > +} > + > +noscript { > + ? ?display: none; > +} > + > -- > 1.7.1 > > _______________________________________________ > Koha-docs mailing list > Koha-docs at lists.koha-community.org > https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-docs > From magnus at enger.priv.no Mon Jan 31 16:19:48 2011 From: magnus at enger.priv.no (Magnus Enger) Date: Mon, 31 Jan 2011 16:19:48 +0100 Subject: [Koha-docs] [PATCH] Add CONTROLNUMBER to list of placeholders for OPACSearchForTitleIn Message-ID: <1296487188-4211-1-git-send-email-magnus@enger.priv.no> The actual text associated with the syspref is "The placeholders {CONTROLNUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record." The manual says "The placeholders {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record." --- en/manual.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/en/manual.xml b/en/manual.xml index 49e41b9..a6c6635 100644 --- a/en/manual.xml +++ b/en/manual.xml @@ -5699,8 +5699,9 @@ Asks: Include a "More Searches" box on the detail pages of items on the OPAC, with the following HTML (leave blank to disable) - The placeholders {TITLE}, {ISBN} and {AUTHOR} will be - replaced with information from the displayed record. + The placeholders {CONTROLNUMBER}, {TITLE}, {ISBN} and + {AUTHOR} will be replaced with information from the displayed + record. -- 1.6.3.3