proof of concept for includes directory (for html template) as way to change librarian interface.

This commit is contained in:
tipaul 2006-08-11 09:54:30 +00:00
parent ae529d34ae
commit a4a6b581f5
31 changed files with 3135 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<p>
<a href="/cgi-bin/koha/serials/serials-home.pl">Search/Add Subscription</a>
<a href="/cgi-bin/koha/serials/serials-home.pl?routing=1">Create/Edit Routing List</a>
<a href="/cgi-bin/koha/serials/lateissues.pl">Outstanding Issues</a>
<a href="/cgi-bin/koha/serials/claims.pl">Claims</a>
</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

View File

@ -0,0 +1,127 @@
// ** I18N
// Calendar EN language
// Author: Mihai Bazon, <mishoo@infoiasi.ro>
// Encoding: any
// Distributed under the same terms as the calendar itself.
// For translators: please use UTF-8 if possible. We strongly believe that
// Unicode is the answer to a real internationalized world. Also please
// include your contact information in the header, as can be seen above.
// full day names
Calendar._DN = new Array
("Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday");
// Please note that the following array of short day names (and the same goes
// for short month names, _SMN) isn't absolutely necessary. We give it here
// for exemplification on how one can customize the short day names, but if
// they are simply the first N letters of the full name you can simply say:
//
// Calendar._SDN_len = N; // short day name length
// Calendar._SMN_len = N; // short month name length
//
// If N = 3 then this is not needed either since we assume a value of 3 if not
// present, to be compatible with translation files that were written before
// this feature.
// short day names
Calendar._SDN = new Array
("Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun");
// First day of the week. "0" means display Sunday first, "1" means display
// Monday first, etc.
Calendar._FD = 0;
// full month names
Calendar._MN = new Array
("January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
// short month names
Calendar._SMN = new Array
("Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec");
// tooltips
Calendar._TT = {};
Calendar._TT["INFO"] = "About the calendar";
Calendar._TT["ABOUT"] =
"DHTML Date/Time Selector\n" +
"(c) dynarch.com 2002-2003\n" + // don't translate this this ;-)
"For latest version visit: http://dynarch.com/mishoo/calendar.epl\n" +
"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." +
"\n\n" +
"Date selection:\n" +
"- Use the \xab, \xbb buttons to select year\n" +
"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" +
"- Hold mouse button on any of the above buttons for faster selection.";
Calendar._TT["ABOUT_TIME"] = "\n\n" +
"Time selection:\n" +
"- Click on any of the time parts to increase it\n" +
"- or Shift-click to decrease it\n" +
"- or click and drag for faster selection.";
Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)";
Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)";
Calendar._TT["GO_TODAY"] = "Go Today";
Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)";
Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)";
Calendar._TT["SEL_DATE"] = "Select date";
Calendar._TT["DRAG_TO_MOVE"] = "Drag to move";
Calendar._TT["PART_TODAY"] = " (today)";
// the following is to inform that "%s" is to be the first day of week
// %s will be replaced with the day name.
Calendar._TT["DAY_FIRST"] = "Display %s first";
// This may be locale-dependent. It specifies the week-end days, as an array
// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1
// means Monday, etc.
Calendar._TT["WEEKEND"] = "0,6";
Calendar._TT["CLOSE"] = "Close";
Calendar._TT["TODAY"] = "Today";
Calendar._TT["TIME_PART"] = "(Shift-)Click or drag to change value";
// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e";
Calendar._TT["WK"] = "wk";
Calendar._TT["TIME"] = "Time:";

View File

@ -0,0 +1,181 @@
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/
* ---------------------------------------------------------------------------
*
* The DHTML Calendar
*
* Details and latest version at:
* http://dynarch.com/mishoo/calendar.epl
*
* This script is distributed under the GNU Lesser General Public License.
* Read the entire license text here: http://www.gnu.org/licenses/lgpl.html
*
* This file defines helper functions for setting up the calendar. They are
* intended to help non-programmers get a working calendar on their site
* quickly. This script should not be seen as part of the calendar. It just
* shows you what one can do with the calendar, while in the same time
* providing a quick and simple method for setting it up. If you need
* exhaustive customization of the calendar creation process feel free to
* modify this code to suit your needs (this is recommended and much better
* than modifying calendar.js itself).
*/
// $Id$
/**
* This function "patches" an input field (or other element) to use a calendar
* widget for date selection.
*
* The "params" is a single object that can have the following properties:
*
* prop. name | description
* -------------------------------------------------------------------------------------------------
* inputField | the ID of an input field to store the date
* displayArea | the ID of a DIV or other element to show the date
* button | ID of a button or other element that will trigger the calendar
* eventName | event that will trigger the calendar, without the "on" prefix (default: "click")
* ifFormat | date format that will be stored in the input field
* daFormat | the date format that will be used to display the date in displayArea
* singleClick | (true/false) wether the calendar is in single click mode or not (default: true)
* firstDay | numeric: 0 to 6. "0" means display Sunday first, "1" means display Monday first, etc.
* align | alignment (default: "Br"); if you don't know what's this see the calendar documentation
* range | array with 2 elements. Default: [1900, 2999] -- the range of years available
* weekNumbers | (true/false) if it's true (default) the calendar will display week numbers
* flat | null or element ID; if not null the calendar will be a flat calendar having the parent with the given ID
* flatCallback | function that receives a JS Date object and returns an URL to point the browser to (for flat calendar)
* disableFunc | function that receives a JS Date object and should return true if that date has to be disabled in the calendar
* onSelect | function that gets called when a date is selected. You don't _have_ to supply this (the default is generally okay)
* onClose | function that gets called when the calendar is closed. [default]
* onUpdate | function that gets called after the date is updated in the input field. Receives a reference to the calendar.
* date | the date that the calendar will be initially displayed to
* showsTime | default: false; if true the calendar will include a time selector
* timeFormat | the time format; can be "12" or "24", default is "12"
* electric | if true (default) then given fields/date areas are updated for each move; otherwise they're updated only on close
* step | configures the step of the years in drop-down boxes; default: 2
* position | configures the calendar absolute position; default: null
* cache | if "true" (but default: "false") it will reuse the same calendar object, where possible
* showOthers | if "true" (but default: "false") it will show days from other months too
*
* None of them is required, they all have default values. However, if you
* pass none of "inputField", "displayArea" or "button" you'll get a warning
* saying "nothing to setup".
*/
Calendar.setup = function (params) {
function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } };
param_default("inputField", null);
param_default("displayArea", null);
param_default("button", null);
param_default("eventName", "click");
param_default("ifFormat", "%Y/%m/%d");
param_default("daFormat", "%Y/%m/%d");
param_default("singleClick", true);
param_default("disableFunc", 'dateStatusHandler');
param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined
param_default("firstDay", 0); // defaults to "Sunday" first
param_default("align", "Br");
param_default("range", [1900, 2999]);
param_default("weekNumbers", true);
param_default("flat", null);
param_default("flatCallback", null);
param_default("onSelect", null);
param_default("onClose", null);
param_default("onUpdate", null);
param_default("date", null);
param_default("showsTime", false);
param_default("timeFormat", "24");
param_default("electric", true);
param_default("step", 2);
param_default("position", null);
param_default("cache", false);
param_default("showOthers", false);
var tmp = ["inputField", "displayArea", "button"];
for (var i in tmp) {
if (typeof params[tmp[i]] == "string") {
params[tmp[i]] = document.getElementById(params[tmp[i]]);
}
}
if (!(params.flat || params.inputField || params.displayArea || params.button)) {
alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");
return false;
}
function onSelect(cal) {
var p = cal.params;
var update = (cal.dateClicked || p.electric);
if (update && p.flat) {
if (typeof p.flatCallback == "function")
p.flatCallback(cal);
else
alert("No flatCallback given -- doing nothing.");
return false;
}
if (update && p.inputField) {
p.inputField.value = cal.date.print(p.ifFormat);
if (typeof p.inputField.onchange == "function")
p.inputField.onchange();
}
if (update && p.displayArea)
p.displayArea.innerHTML = cal.date.print(p.daFormat);
if (update && p.singleClick && cal.dateClicked)
cal.callCloseHandler();
if (update && typeof p.onUpdate == "function")
p.onUpdate(cal);
};
if (params.flat != null) {
if (typeof params.flat == "string")
params.flat = document.getElementById(params.flat);
if (!params.flat) {
alert("Calendar.setup:\n Flat specified but can't find parent.");
return false;
}
var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
cal.showsTime = params.showsTime;
cal.time24 = (params.timeFormat == "24");
cal.params = params;
cal.weekNumbers = params.weekNumbers;
cal.setRange(params.range[0], params.range[1]);
cal.setDateStatusHandler(params.dateStatusFunc);
cal.create(params.flat);
cal.show();
return false;
}
var triggerEl = params.button || params.displayArea || params.inputField;
triggerEl["on" + params.eventName] = function() {
var dateEl = params.inputField || params.displayArea;
var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
var mustCreate = false;
var cal = window.calendar;
if (!(cal && params.cache)) {
window.calendar = cal = new Calendar(params.firstDay,
params.date,
params.onSelect || onSelect,
params.onClose || function(cal) { cal.hide(); });
cal.showsTime = params.showsTime;
cal.time24 = (params.timeFormat == "24");
cal.weekNumbers = params.weekNumbers;
mustCreate = true;
} else {
if (params.date)
cal.setDate(params.date);
cal.hide();
}
cal.showsOtherMonths = params.showOthers;
cal.yearStep = params.step;
cal.setRange(params.range[0], params.range[1]);
cal.params = params;
cal.setDateStatusHandler(params.dateStatusFunc);
cal.setDateFormat(dateFmt);
if (mustCreate)
cal.create();
cal.parseDate(dateEl.value || dateEl.innerHTML);
cal.refresh();
if (!params.position)
cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
else
cal.showAt(params.position[0], params.position[1]);
return false;
};
};

View File

@ -0,0 +1,254 @@
/* The main calendar widget. DIV containing a table. */
.calendar {
position: relative;
display: none;
border: 1px solid;
border-color: #fff #000 #000 #fff;
font-size: 11px;
cursor: default;
background: Window;
color: WindowText;
font-family: tahoma,verdana,sans-serif;
width:250px;
}
.calendar table {
border: 1px solid;
border-color: #fff #000 #000 #fff;
font-size: 11px;
cursor: default;
background: Window;
color: WindowText;
font-family: tahoma,verdana,sans-serif;
border-collapse:separate;
}
/* Header part -- contains navigation buttons and day names. */
.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
text-align: center;
padding: 1px;
border: 1px solid;
display: table-cell;
-moz-border-radius: 0px;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
background: ButtonFace;
}
.calendar .nav {
background: ButtonFace url('menuarrow.gif') no-repeat 100% 100%;
}
.calendar thead .title { /* This holds the current "month, year" */
font-weight: bold;
padding: 1px;
border: 1px solid #000;
background: ActiveCaption;
color: CaptionText;
text-align: center;
}
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
}
.calendar thead .daynames { /* Row <TR> containing the day names */
}
.calendar thead .name { /* Cells <TD> containing the day names */
border-bottom: 1px solid ButtonShadow;
padding: 2px;
text-align: center;
background: ButtonFace;
color: ButtonText;
}
.calendar thead .weekend { /* How a weekend day name shows in header */
// color: #f00;
}
.calendar thead .hilite { /* How do the buttons in header appear when hover */
border: 2px solid;
padding: 0px;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
.calendar thead .active { /* Active (pressed) buttons in header */
border-width: 1px;
padding: 2px 0px 0px 2px;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
/* The body part -- contains all the days in month. */
.calendar tbody .day { /* Cells <TD> containing month days dates */
width: 2em;
text-align: right;
padding: 2px 4px 2px 2px;
}
.calendar tbody .day.othermonth {
font-size: 80%;
color: #aaa;
}
.calendar tbody .day.othermonth.oweekend {
color: #faa;
}
.calendar table .wn {
padding: 2px 3px 2px 2px;
border-right: 1px solid ButtonShadow;
background: ButtonFace;
color: ButtonText;
}
.calendar tbody .rowhilite td {
// background: Highlight;
// color: HighlightText;
}
.calendar tbody td.hilite { /* Hovered cells <TD> */
padding: 1px 3px 1px 1px;
border-top: 1px solid #fff;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
border-left: 1px solid #fff;
}
.calendar tbody td.active { /* Active (pressed) cells <TD> */
// padding: 2px 2px 0px 2px;
// border: 1px solid;
// border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
.calendar tbody td.selected { /* Cell showing selected date */
font-weight: bold;
border: 1px solid;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
padding: 2px 2px 0px 2px;
background: ButtonFace;
color: ButtonText;
}
.calendar tbody td.weekend { /* Cells showing weekend days */
// color: #f00;
}
.calendar tbody td.today { /* Cell showing today date */
font-weight: bold;
color: #00f;
}
.calendar tbody td.disabled { color: GrayText; }
.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
visibility: hidden;
}
.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
display: none;
}
/* The footer part -- status bar and "Close" button */
.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
}
.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
background: ButtonFace;
padding: 1px;
border: 1px solid;
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
color: ButtonText;
text-align: center;
}
.calendar tfoot .hilite { /* Hover style for buttons in footer */
border-top: 1px solid #fff;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
border-left: 1px solid #fff;
padding: 1px;
background: #e4e0d8;
}
.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
padding: 2px 0px 0px 2px;
border-top: 1px solid #000;
border-right: 1px solid #fff;
border-bottom: 1px solid #fff;
border-left: 1px solid #000;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
position: absolute;
display: none;
width: 4em;
top: 0px;
left: 0px;
cursor: default;
border: 1px solid;
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
background: Menu;
color: MenuText;
font-size: 90%;
padding: 1px;
}
.calendar .combo .label,
.calendar .combo .label-IEfix {
text-align: center;
padding: 1px;
}
.calendar .combo .label-IEfix {
width: 4em;
}
.calendar .combo .active {
padding: 0px;
border: 1px solid #000;
}
.calendar .combo .hilite {
background: Highlight;
color: HighlightText;
}
.calendar td.time {
border-top: 1px solid ButtonShadow;
padding: 1px 0px;
text-align: center;
background-color: ButtonFace;
}
.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
padding: 0px 3px 0px 4px;
border: 1px solid #889;
font-weight: bold;
background-color: Menu;
}
.calendar td.time .ampm {
text-align: center;
}
.calendar td.time .colon {
padding: 0px 2px 0px 3px;
font-weight: bold;
}
.calendar td.time span.hilite {
border-color: #000;
background-color: Highlight;
color: HighlightText;
}
.calendar td.time span.active {
border-color: #f00;
background-color: #000;
color: #0f0;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,14 @@
00 = USA I
93 = Australia
94 = New Zealand
779 = Argentina
773 = Uruguay
30 = France I
84 = Spain
45 = Japan
777 = Bolivia
80 = Italy I
73 = Sweden
40 = Germany
31 = France II
254 = Ucrania

View File

@ -0,0 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>

View File

@ -0,0 +1,13 @@
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<!-- TMPL_VAR NAME='themelang' -->/includes/favicon.ico" type="image/x-icon" />
<style type="text/css">
@import url(<!-- TMPL_VAR NAME='themelang' -->/includes/intranet.css);
</style>
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css" />
<script type="text/javascript" src="<!-- TMPL_VAR name='themelang' -->/includes/calendar/calendar.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang"-->/includes/calendar/calendar-en.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
</head>
<body>

View File

@ -0,0 +1,9 @@
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<!-- TMPL_VAR NAME='themelang' -->/includes/favicon.ico" type="image/x-icon" />
<style type="text/css">
@import url(<!-- TMPL_VAR NAME='themelang' -->/includes_npl/intranet.css);
</style>
</head>
<body>

View File

@ -0,0 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,4 @@
</body>
</html>

View File

@ -0,0 +1,164 @@
</title>
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
<!-- Estos scripts permiten manejar calendario de fechas. -->
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-en.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-setup.js"></script>
<!-- **************************************************** -->
<script language="JavaScript" type="text/javascript">
// Captura el evento onmousemove para cualquier navegador
if (document.layers) { // Netscape
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
document.onmousemove = captureMousePosition;
}
var mouseXMax = 0;
var mouseYMax = 0;
var mouseX = 0;
var mouseY = 0;
function captureMousePosition(e) {
if (document.layers) {
mouseX = e.pageX;
mouseY = e.pageY;
mouseXMax = window.innerWidth + window.pageXOffset;
mouseYMax = window.innerHeight + window.pageYOffset;
} else if (document.all) {
mouseX = window.event.x + document.body.scrollLeft;
mouseY = window.event.y + document.body.scrollTop;
mouseXMax = document.body.clientWidth + document.body.scrollLeft;
mouseYMax = document.body.clientHeight + document.body.scrollTop;
} else if (document.getElementById) {
mouseX = e.pageX;
mouseY = e.pageY;
mouseXMax = window.innerWidth + window.pageXOffset;
mouseYMax = window.innerHeight + window.pageYOffset;
}
}
function holidayOperation(formObject, opType) {
var op = document.getElementsByName('operation');
op[0].value = opType;
formObject.submit();
}
// This function shows the "Show Holiday" panel //
function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) {
var panel = document.getElementById('showHoliday');
panel.style.display = 'inline';
document.getElementById('newHoliday').style.display = 'none';
panel.style.top = mouseYMax/2;
panel.style.left = (mouseXMax/2) - 250;
document.getElementById('showDayname').value = dayName;
document.getElementById('showBranchName').value = document.getElementById('branch').value;
document.getElementById('showDay').value = day;
document.getElementById('showMonth').value = month;
document.getElementById('showYear').value = year;
document.getElementById('showTitle').value = title;
document.getElementById('showDescription').value = description;
document.getElementsByName('showWeekday')[0].value = weekDay;
if (exceptionPosibility == 1) {
document.getElementById('exceptionPosibility').style.display = 'inline';
} else {
document.getElementById('exceptionPosibility').style.display = 'none';
}
}
// This function shows the "Add Holiday" panel //
function newHoliday (dayName, day, month, year, weekDay) {
var panel = document.getElementById('newHoliday');
panel.style.display = 'inline';
document.getElementById('showHoliday').style.display = 'none';
panel.style.top = mouseYMax/2;
panel.style.left = (mouseXMax/2) - 250;
document.getElementById('newDayname').value = dayName;
document.getElementById('newBranchName').value = document.getElementById('branch').value;
document.getElementById('newDay').value = day;
document.getElementById('newMonth').value = month;
document.getElementById('newYear').value = year;
document.getElementsByName('newWeekday')[0].value = weekDay;
}
function hidePanel(aPanelName) {
document.getElementById(aPanelName).style.display = 'none';
}
function changeBranch () {
var branch = document.getElementById('branch').options[document.getElementById('branch').selectedIndex].value;
location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch;
}
function additionalInformation (anExplanation) {
var panel = document.getElementById('information');
var paragraph = document.getElementById('explanation');
panel.style.display = 'inline'
panel.style.top = mouseY;
panel.style.left = mouseX;
var info = document.createTextNode(anExplanation);
if (paragraph.hasChildNodes()) {
paragraph.removeChild(paragraph.lastChild);
}
paragraph.appendChild(info);
}
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
</script>
<style type="text/css">
.normalday {
background-color: #EDEDED;
color: Black;
border:1px solid #000000;
}
.exception {
background-color: #EDEDED;
color: Black;
border:1px solid #000000;
}
.holiday {
background-color: red;
color: Black;
border:1px solid #000000;
}
.repeatableday {
background-color: yellow;
color: Black;
border:1px solid #000000;
}
.information {
z-index:1;
background-color: #DCD2F1;
width:300px;
display:none;
border:1px solid #000000;
color: #000000;
font-size: 8pt;
font-weight: bold;
background-color: #FFD700;
cursor: pointer;
padding:2px;
}
.panel {
z-index:1;
width:500px;
display:none;
border:1px solid #000000;
padding:0px;
}
</style>

View File

@ -0,0 +1,3 @@
</div> <!-- the main bloc -->
</body>
</html>

View File

@ -0,0 +1,204 @@
body {
font-family : Verdana, Geneva, Arial, sans-serif;
font-size : .9em;
}
table {
border-collapse : collapse;
border-top : 1px solid #CCCCCC;
border-right : 1px solid #CCCCCC;
margin : 1em 0;
}
caption {
font-size : 140%;
text-align : left;
font-weight : bold;
}
td,th {
border-left : 1px solid #CCCCCC;
border-bottom : 1px solid #CCCCCC;
padding : 5px;
}
th {
background-color : #CCCCCC;
border-left : 1px solid #999999;
border-bottom : 1px solid #999999;
}
th[scope=row] {
background-color : #EEEEEE;
text-align : right;
}
input {
font-size:0.9em;
}
select {
font-size:0.9em;
}
input[type=submit], input[type=button], input[type=reset] {
background-color : #6699cc;
color : #FFFFFF;
font-size : 1em;
font-weight : bold;
}
tr.highlight td, tr.highlight th {
background-color : #EEEEEE;
}
#admin_stopwords_select UL {
width: 600px;
}
#admin_stopwords_select UL LI {
white-space: nowrap;
}
legend {
font-size:120%;
font-weight:bold;
}
.problem {
color: white;
background-color:red;
}
/* css styles for reserves color alerts */
.onloan {
background-color: #FFED3D;
}
.reserved {
background-color: #8EBAFF;
}
.transfered {
background-color: #F9FF9A;
}
.inwait {
background-color: #33CC99;
}
.other {
background-color: #FF0000;
}
/* end of css styles for reserves color alerts */
/* MAIN MENU STYLES */
#nav {
position: absolute;
left: 1px;
margin: 0% 0% 0% 5px;
padding: 0px;
width: 16%;
}
#nav a {
display:block;
text-decoration:none;
color:black;
}
#nav a:hover {
display:block;
background-color:red;
color:white;
}
#nav .submit {
font-size: 9px;
}
#nav a {
font-family: Tahoma, arial, geneva, sans-serif;
font-weight: bold;
text-decoration: none;
}
#nav h4 {
font-size: 12px;
font-weight: bold;
margin: 0px;
padding: 0px;
text-align: left;
}
#nav input {
font-size: .8em;
}
#nav label {
font-size: 10px;
}
#nav ul {
margin: 0px;
padding: 0px;
}
#nav ul li {
font-size: .8em;
list-style: none;
padding: 3px 3px 10px 3px;
text-align: right;
width: 100%;
}
#nav ul ul {
margin: 0px 0px 0px 5px;
}
#nav ul ul li {
font-size: .9em;
list-style: none;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
text-align: right;
width: 100%;
}
#nav ul ul li+li {
padding: 0px 0px 0px 0px;
}
#main {
margin-left: 18%;
margin-right: 2%;
margin-top: 2%;
padding: 10px;
}
/* submenus styles */
#submenu {
margin-left:18%;
}
#submenu a {
margin:5px;
text-decoration:none;
color:black;
}
#submenu a:hover {
margin:5px;
background-color:#6699cc;
color:white;
}
/* the USER information block */
#librarian_information {
/* position:absolute; */
float:right;
font-size:10pt;
}

View File

@ -0,0 +1,177 @@
<script language="JavaScript" type="text/javascript">
function CheckDate(d) {
if (d!="")
{
// Cette fonction vérifie le format JJ/MM/AAAA saisi et la validité de la date.
// Le séparateur est défini dans la variable separateur
var amin=1900; // année mini
var amax=2100; // année maxi
var separateur="/"; // separateur entre jour/mois/annee
var j=(d.substring(0,2));
var m=(d.substring(3,5));
var a=(d.substring(6));
var ok=1;
var msg;
if ( ((isNaN(j))||(j<1)||(j>31)) && (ok==1) ) {
msg = _("day not correct.");
alert(msg); ok=0;
}
if ( ((isNaN(m))||(m<1)||(m>12)) && (ok==1) ) {
msg = _("month not correct.");
alert(msg); ok=0;
}
if ( ((isNaN(a))||(a<amin)||(a>amax)) && (ok==1) ) {
msg = _("years not correct.");
alert(msg); ok=0;
}
if ( ((d.substring(2,3)!=separateur)||(d.substring(5,6)!=separateur)) && (ok==1) ) {
alert("Separator must be "+separateur); ok=0;
}
return ok;
}
}
//function test if member is unique and if it's right the member is registred
function unique() {
var msg1;
var msg2;
if ( document.form.check_member.value==1){
if (document.form.categorycode.value != "I"){
msg1 += _("Warning !!!! Duplicate borrower!!!!");
alert(msg1);
check_form_borrowers(0);
document.form.submit();
}else{
msg2 += _("Warning !!!! Duplicate organisation!!!!");
alert(msg2);
check_form_borrowers(0);
}
}
else
{
document.form.submit();
}
}
//end function
//function test if date enrooled < date expiry
function check_manip_date(status) {
if (status=='verify'){
// this part of function('verify') is used to check if dateenrolled<date expiry
var myDate1=document.form.dateenrolled.value.split ('/');
var myDate2=document.form.dateexpiry.value.split ('/');
if ((myDate1[2]>myDate2[2])||(myDate1[2]==myDate2[2] && myDate1[1]>myDate2[1])||(myDate1[2]==myDate2[2] && myDate1[1]>=myDate2[1] && myDate1[0]>=myDate2[0]))
{
var msg = _("Warning !!! check date expiry > date enrolment");
alert(msg);
document.form.dateexpiry.value="";
document.form.dateexpiry.setfocus;
}
}
}
//end function
// function to test all fields in forms and nav in different forms(1 ,2 or 3)
function check_form_borrowers(nav){
var statut=0;
if (nav < document.form.step.value) {
document.form.step.value=nav;
if ((document.form.step.value==0) && document.form.check_member.value == 1 )
{
if (document.form_double.answernodouble) {
if( (!(document.form_double.answernodouble.checked))){
document.form.nodouble.value=0;
}
else {
document.form.nodouble.value=1;
}
}
}
document.form.submit();
} else {
if (document.form.BorrowerMandatoryfield.value==''||document.form.FormFieldList.value=='' )
{}
else
{
var champ_verif = document.form.BorrowerMandatoryfield.value.split ('|');
var champ_form= document.form.FormFieldList.value.split('|');
var message ="The following fields are mandatory :\n";
var message_champ="";
for (var j=0; j<champ_form.length; j++){
for (var i=0; i<champ_verif.length; i++) {
if (eval("document.form.elements['"+champ_verif[i]+"']") && eval("document.form.elements['"+champ_verif[j]+"']")) {
var val_champ=eval("document.form."+champ_verif[i]+".value");
var ref_champ=eval("document.form."+champ_verif[i]);
var val_form=eval("document.form."+champ_form[j]+".value");
if (champ_verif[i] == champ_form[j]){
//check if it's a select
if (ref_champ.type=='select-one'){
if (ref_champ.options[0].selected ){
// action if field is empty
message_champ+=champ_verif[i]+"\n";
//test to konw if u must show a message with error
statut=1;
}
}else {
if ( val_champ == '' ) {
// action if the field is not empty
message_champ+=champ_verif[i]+"\n";
statut=1;
}
}
}
}
}
}
}
//borrowers form 2 test if u chcked no to the quetsion of double
if (document.form.step.value==2 && statut!=1 && document.form.check_member.value > 0 )
{
if (!(document.form_double.answernodouble.checked)){
message ="";
message_champ+=_("Please confirm suspicious duplicate borrower !!! ");
statut=1;
document.form.nodouble.value=0;
}
else {
document.form.nodouble.value=1;
}
}
if (statut==1){
//alert if at least 1 error
alert(message+"\n"+message_champ);
}
else
{
document.form.step=nav;
document.form.submit();
}
}
}
function Dopop(link) {
// // var searchstring=document.form.value[i].value;
newin=window.open(link,'popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=no,top');
}
function Dopopguarantor(link) {
newin=window.open(link,'popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=no,top');
}
</script>

View File

@ -0,0 +1,8 @@
marginBottom = 25
pageType = A4
columns = 5
systemDpi = 96
labelHeigth = 21
rows = 13
marginLeft = 2
labelWidth = 41

View File

@ -0,0 +1,9 @@
<div id="submenu">
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Main page</a>
<a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=0">Add supplier</a>
<a href="/cgi-bin/koha/acqui/lateorders.pl">Late orders</a>
<a href="/cgi-bin/koha/acqui/histsearch.pl">History search</a>
<a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Manage suggestions</a>
<a href="/cgi-bin/koha/admin/aqbookfund.pl">Parameters</a>
</div>
<div id="main">

View File

@ -0,0 +1,19 @@
<div id="submenu">
<a href="/cgi-bin/koha/admin/systempreferences.pl">System pref</a>
<a href="/cgi-bin/koha/admin/branches.pl">Branches</a>
<a href="/cgi-bin/koha/admin/aqbookfund.pl">Funds</a>
<a href="/cgi-bin/koha/admin/currency.pl">Currencies</a>
<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a>
<a href="/cgi-bin/koha/admin/categorie.pl">Borrower categories</a>
<a href="/cgi-bin/koha/admin/issuingrules.pl">Issuing rules</a>
<a href="/cgi-bin/koha/admin/authorised_values.pl">Authorised values</a>
<a href="/cgi-bin/koha/admin/authtypes.pl">Thesaurus</a>
<a href="/cgi-bin/koha/admin/biblio_framework.pl">Biblio Framework</a>
<a href="/cgi-bin/koha/admin/koha2marclinks.pl">Links Koha-MARC DB</a>
<a href="/cgi-bin/koha/admin/checkmarc.pl">MARC Check</a>
<a href="/cgi-bin/koha/admin/printers.pl">Printers</a>
<a href="/cgi-bin/koha/admin/stopwords.pl">Stop words</a>
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 Servers</a>
<a href="/cgi-bin/koha/import/breeding.pl">Reservoir</a>
</div>
<div id="main">

View File

@ -0,0 +1,15 @@
<script language="JavaScript" type="text/javascript">
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
function addauthority() {
X = document.forms[0].authtype.value;
window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
}
function searchauthority() {
X = document.forms[0].authtype2.value;
Y = document.forms[0].value.value;
window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
}
</script>

View File

@ -0,0 +1,8 @@
<div id="submenu">
<a href="/cgi-bin/koha/loadmodules.pl?module=search&amp;marc=1&amp;type=intranet">Search</a>
<a href="/cgi-bin/koha/loadmodules.pl?module=addbiblio&amp;type=intranet">Add biblio</a>
<a class="submenu serial" href="/cgi-bin/koha/serials/serials-home.pl">Subscriptions</a>
<a href="/cgi-bin/koha/serials/lateissues.pl">Late issues</a>
<a href="/cgi-bin/koha/bookshelves/shelves.pl">Virtual shelves</a>
</div>
<div id="main">

View File

@ -0,0 +1,11 @@
<div id="submenu">
<a href="/cgi-bin/koha/circ/circulation.pl">Circulation</a>
<a href="/cgi-bin/koha/circ/circulation.pl">Issues</a>
<a href="/cgi-bin/koha/circ/returns.pl">Returns</a>
<a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfers</a>
<a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set branch</a>
<a href="/cgi-bin/koha/circ/branchreserves.pl">Waiting reserves</a>
<a href="/cgi-bin/koha/circ/waitingreservestransfers.pl">Transfers to do</a>
<a href="/cgi-bin/koha/circ/currenttransfers.pl">Transfers to recieve</a>
</div>
<div id="main">

View File

@ -0,0 +1,8 @@
<div id="submenu">
<a href="/cgi-bin/koha/members/members-home.pl">Search</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A"/>Add adult</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C"/>Add child</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=P"/>Add prof</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=I"/>Add org</a>
</div>
<div id="main">

View File

@ -0,0 +1,11 @@
<div id="submenu">
<a href="/cgi-bin/koha/serials/serials-home.pl">home</a>
<a href="/cgi-bin/koha/serials/serial-issues.pl">Serials issues</a>
<a href="/cgi-bin/koha/serials/acqui-search.pl">Supplier search</a>
<a href="/cgi-bin/koha/serials/subscription-bib-search.pl">Subscription search</a>
<a href="/cgi-bin/koha/serials/subscription-bib-search.pl">Search subscription</a>
<a href="/cgi-bin/koha/serials/lateissues.pl">Late issue</a>
<a href="/cgi-bin/koha/serials/subscription-add.pl">Add a subscription</a>
<a href="/cgi-bin/koha/serials/viewalerts.pl">View alerts</a>
</div>
<div id="main">

View File

@ -0,0 +1,8 @@
<div id="submenu">
<a href="/cgi-bin/koha/tools/cities.pl">Cities</a>
<a href="/cgi-bin/koha/tools/holidays.pl">Holidays</a>
<a href="/cgi-bin/koha/tools/marc.pl">Export</a>
<a href="/cgi-bin/koha/import/breeding.pl">Reservoir</a>
<a href="/cgi-bin/koha/tools/barcodes.pl">Barcodes</a>
<a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a>
</div>

View File

@ -0,0 +1,90 @@
<script language="JavaScript" type="text/javascript">
function _(s) { return s } // dummy function for gettext
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
</script>
<div id="nav">
<ul>
<li><h4>Koha</h4></li>
<li><a href="/cgi-bin/koha/mainpage.pl">Koha intranet home</a></li>
<li><a href="/cgi-bin/koha/circ/circulation.pl">Circulation</a>
<ul>
<li><a href="/cgi-bin/koha/circ/circulation.pl">Issues</a>
<form method="post" action="/cgi-bin/koha/circ/circulation.pl">
<label for="navfindborrower">Iss<span class="accesskey">u</span>e to:</label>
<input id="navfindborrower" name="findborrower" type="text" size="10" accesskey="u" />
<input type="hidden" name="branch" value="<!-- TMPL_VAR name="branch" -->" />
<input type="hidden" name="printer" value="<!-- TMPL_VAR name="printer" -->" />
<input type="submit" class="submit" value="Submit" />
</form>
</li>
<li>
<a accesskey="r" href="/cgi-bin/koha/circ/returns.pl"><span class="accesskey">R</span>eturns</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/reserve.pl">Reserve List</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfers</a>
</li>
</ul>
</li>
<li>
<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
<ul>
<li>
<form action="/cgi-bin/koha/members/member.pl" method="post">
<label for="navmember">Search:</label><input id="navmember" type="text" size="10" name="member" />
<input type="submit" value="Search" class="submit" />
</form>
</li>
</ul>
</li>
<li>
<a href="/cgi-bin/koha/loadmodules.pl?module=search&amp;marc=1&amp;type=intranet">Catalog</a>
<ul>
<li>
<form method="post" action="/cgi-bin/koha/search.marc/search.pl">
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="intranet" />
<input type="hidden" name="nbstatements" value="3" />
<label for="navkeyword"><span class="accesskey">Q</span>uick Search:</label>
<input type="hidden" name="marclist" value="" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
<input type="text" id="navkeyword" name="value" size="10" accesskey="q" />
<input type="submit" value="Start search" class="submit" />
</form>
</li>
</ul>
</li>
<li><a href="/cgi-bin/koha/acqui.simple/addbooks.pl">Cataloging</a>
<ul>
<li><a href="/cgi-bin/koha/acqui.simple/addbiblio.pl">Add MARC</a></li>
<li><a href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Acquisitions</a></li>
<li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
<li><a href="/cgi-bin/koha/bull-home.pl">Serials</a></li>
<li><a href="/cgi-bin/koha/bookshelves/shelves.pl">Virtual Shelves</a></li>
</ul>
</li>
<li><a href="/cgi-bin/koha/reports-home.pl">Accounts and Reports</a></li>
<li><a href="/cgi-bin/koha/admin-home.pl">Koha Administration</a>
<ul>
<li><a href="/cgi-bin/koha/admin-home.pl">System Administration</a></li>
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a></li>
</ul>
</li>
<li><a href="/cgi-bin/koha/about.pl">About Koha</a></li>
<!-- TMPL_IF NAME="loggedinusername" -->
<li>Logged in as: <!-- TMPL_VAR NAME="loggedinusername" -->, from <!-- TMPL_VAR name="branchname" -->
<ul>
<li><a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log Out</a></li>
</ul>
</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="IntranetNav" -->
<!-- TMPL_VAR NAME="IntranetNav" -->
<!-- /TMPL_IF -->
</ul>
</div>

View File

@ -0,0 +1,2 @@
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>popup</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/common-style.css">
</head>
<body>
<!-- NO MENUS for popup-top -->

View File

@ -0,0 +1,17 @@
<br clear="all">
<p> &nbsp; </p>
<div class="center">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ||
<a href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Catalogue</a> ||
<a href="/cgi-bin/koha/members/members-home.pl">Members</a> ||
<a href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Acquisitions</a> ||
<a href="/cgi-bin/koha/circ/circulation.pl">Circulation</a> ||
<a href="/cgi-bin/koha/reports-home.pl">Reports</a> ||
<a href="/cgi-bin/koha/admin-home.pl">Parameters</a> ||
<a href="/cgi-bin/koha/about.pl">About</a> ||
Help
</div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>KOHA: INTRANET: Serials management</title>
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/common-style.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<script language="JavaScript" type="text/javascript">
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
</script>
<style type="text/css">
.serial {
background-color: #803010;
color:#FFFFFF;
text-decoration: normal;
background-image:none;
}
a.serial:hover {
background-color: #803010;
color: #FFFFFF;
text-decoration: normal;
}
</style>
</head>
<body>
<!-- TMPL_INCLUDE name="menus.inc" -->
<!-- TMPL_IF NAME="loggedinusername" -->
<p class="user">Logged in as: <!-- TMPL_VAR NAME="loggedinusername" --> [<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log Out</a>]</p>
<!-- TMPL_ELSE -->
<p class="user"><a href="/cgi-bin/koha/opac-user.pl">Log In</a> to Koha</p>
<!-- /TMPL_IF -->