Skip to content

Commit

Permalink
Default-Modus und -Formate
Browse files Browse the repository at this point in the history
  • Loading branch information
knepper committed Dec 1, 2022
1 parent 71b8d0f commit 8743310
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 116 deletions.
36 changes: 26 additions & 10 deletions signaturenDruck/defaultFiles/defaultMode.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,36 @@
{
"id": 0,
"format": "default_gross",
"useRegEx": true,
"exampleShelfmark": "PÄD:TG:1420:Dan::2017",
"regEx": "(.*):(.*):(.*):(.*):(.*):(.*)",
"delimiter": ":",
"result": ["Standort: $LOC", "$1 $2", "$3", "$4", "$5", "$6"]
"useRegEx": false,
"exampleShelfmark": "200 AP 14350 S377",
"regEx": "(.*)\\s(.*)\\s(.*)\\s(.*)\\s(.*)",
"delimiter": " ",
"result": [
"$1",
"",
"$2",
"$3",
"$4"
],
"exampleLoc": "UB",
"locRegEx": ""
},
{
"id": 1,
"format": "default_klein",
"useRegEx": true,
"exampleShelfmark": "2018 B 1024 :1",
"regEx": "^(\\w+\\s[\\w\\.\\,]+)([\\s\\/]?)([^\\/\\:]*)([\\/\\:]?)(.*)$",
"delimiter": ":",
"result": ["$1$2", "$3$4", "$5$6"]
"useRegEx": false,
"exampleShelfmark": "200 AP 14350 S377",
"regEx": "(.*)\\s(.*)\\s(.*)\\s(.*)\\s(.*)",
"delimiter": " ",
"result": [
"$1",
"",
"$2",
"$3",
"$4"
],
"exampleLoc": "UB",
"locRegEx": ""
}
]
}
52 changes: 21 additions & 31 deletions signaturenDruck/defaultFiles/default_gross.css
Original file line number Diff line number Diff line change
@@ -1,70 +1,60 @@
#previewBox.format_default_gross {
width: 80mm;
height: 43mm;
width: 25mm;
height: 50mm;
}
.format_default_gross {
text-align: initial;
text-align: center;
white-space: nowrap;
overflow: hidden;
}
.format_default_gross {
align-items: center;
align-items: initial;
}
#toPrint.format_default_gross> .innerBox {
height: 43mm;
width: 80mm;
display: flex;
justify-content: center;
flex-direction: column;
#toPrint.format_default_gross.innerBox {
height: 50mm;
width: 25mm;
}
.format_default_gross > .innerBox > p {
margin: 0px 0px 0px 0px;
}
.format_default_gross > .innerBox > .line_1 {
font-family: "Arial Narrow";
font-family: "Arial";
font-size: 16pt;
font-weight: bold;
font-weight: normal;
font-style: normal;
margin-left: 47%;
margin-left: 0%;
}
.format_default_gross > .innerBox > .line_2 {
font-family: "Arial Narrow";
font-family: "Arial";
font-size: 16pt;
font-weight: bold;
font-weight: normal;
font-style: normal;
margin-left: 47%;
margin-left: 0%;
}
.format_default_gross > .innerBox > .line_3 {
font-family: "Arial Narrow";
font-family: "Arial";
font-size: 16pt;
font-weight: bold;
font-style: normal;
margin-left: 47%;
margin-left: 0%;
}
.format_default_gross > .innerBox > .line_4 {
font-family: "Arial Narrow";
font-family: "Arial";
font-size: 16pt;
font-weight: normal;
font-weight: bold;
font-style: normal;
margin-left: 47%;
margin-left: 0%;
}
.format_default_gross > .innerBox > .line_5 {
font-family: "Arial Narrow";
font-family: "Arial";
font-size: 16pt;
font-weight: normal;
font-style: normal;
margin-left: 47%;
}
.format_default_gross > .innerBox > .line_6 {
font-family: "Arial Narrow";
font-size: 16pt;
font-weight: bold;
font-style: normal;
margin-left: 47%;
margin-left: 0%;
}
@media print {
#toPrint.format_default_gross > .innerBox {
margin: 2.96mm 0mm 0mm 8.985mm;
margin: 0mm 0mm 0mm -0.8mm;
}
body {
margin: 0px;
Expand Down
68 changes: 32 additions & 36 deletions signaturenDruck/defaultFiles/default_gross.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,74 @@
{
"name": "default_gross",
"printer": "\\\\printsrv\\ulbps101",
"printer": "NPI514C48 (HP LaserJet 100 colorMFP M175nw)",
"label": {
"width": "80mm",
"height": "43mm"
"width": "25mm",
"height": "50mm"
},
"pdfName": "default_gross.pdf",
"paper": {
"width": "99970",
"height": "48920"
"width": "25400",
"height": "50800"
},
"lines": "6",
"lines": "5",
"example": {
"shelfmark": "PÄD:TG:1420:Dan::2017",
"shelfmark": "200 AP 14350 S377",
"parts": [
"PÄD",
"TG",
"1420",
"Dan",
"<br/>",
"2017"
"200",
" ",
"AP",
"14350",
"S377",
"200",
" ",
"AP",
"14350",
"S377"
]
},
"centerHor": false,
"centerVer": true,
"centerHor": true,
"centerVer": false,
"lineSpace": "0",
"linesData": [
{
"id": 1,
"font": "Arial Narrow",
"font": "Arial",
"fontSize": "16",
"bold": true,
"bold": false,
"italic": false,
"indent": "47"
"indent": "0"
},
{
"id": 2,
"font": "Arial Narrow",
"font": "Arial",
"fontSize": "16",
"bold": true,
"bold": false,
"italic": false,
"indent": "47"
"indent": "0"
},
{
"id": 3,
"font": "Arial Narrow",
"font": "Arial",
"fontSize": "16",
"bold": true,
"italic": false,
"indent": "47"
"indent": "0"
},
{
"id": 4,
"font": "Arial Narrow",
"font": "Arial",
"fontSize": "16",
"bold": false,
"bold": true,
"italic": false,
"indent": "47"
"indent": "0"
},
{
"id": 5,
"font": "Arial Narrow",
"font": "Arial",
"fontSize": "16",
"bold": false,
"italic": false,
"indent": "47"
},
{
"id": 6,
"font": "Arial Narrow",
"fontSize": "16",
"bold": true,
"italic": false,
"indent": "47"
"indent": "0"
}
],
"marginTop": "-3"
Expand Down
49 changes: 30 additions & 19 deletions signaturenDruck/defaultFiles/default_klein.css
Original file line number Diff line number Diff line change
@@ -1,49 +1,60 @@
#previewBox.format_default_klein {
width: 74mm;
height: 23mm;
width: 25mm;
height: 50mm;
}
.format_default_klein {
text-align: initial;
text-align: center;
white-space: nowrap;
overflow: hidden;
}
.format_default_klein {
align-items: center;
align-items: initial;
}
#toPrint.format_default_klein> .innerBox {
height: 23mm;
width: 74mm;
display: flex;
justify-content: center;
flex-direction: column;
#toPrint.format_default_klein.innerBox {
height: 50mm;
width: 25mm;
}
.format_default_klein > .innerBox > p {
margin: 0px 0px 0px 0px;
}
.format_default_klein > .innerBox > .line_1 {
font-family: "Arial Narrow";
font-size: 15pt;
font-weight: bold;
font-size: 16pt;
font-weight: normal;
font-style: normal;
margin-left: 45%;
margin-left: 0%;
}
.format_default_klein > .innerBox > .line_2 {
font-family: "Arial Narrow";
font-size: 15pt;
font-weight: bold;
font-size: 16pt;
font-weight: normal;
font-style: normal;
margin-left: 45%;
margin-left: 0%;
}
.format_default_klein > .innerBox > .line_3 {
font-family: "Arial Narrow";
font-size: 15pt;
font-size: 16pt;
font-weight: bold;
font-style: normal;
margin-left: 45%;
margin-left: 0%;
}
.format_default_klein > .innerBox > .line_4 {
font-family: "Arial Narrow";
font-size: 16pt;
font-weight: bold;
font-style: normal;
margin-left: 0%;
}
.format_default_klein > .innerBox > .line_5 {
font-family: "Arial Narrow";
font-size: 16pt;
font-weight: normal;
font-style: normal;
margin-left: 0%;
}
@media print {
#toPrint.format_default_klein > .innerBox {
margin: 2.25mm 0mm 0mm 1.75mm;
margin: 0mm 0mm 0mm -0.8mm;
}
body {
margin: 0px;
Expand Down
Loading

0 comments on commit 8743310

Please sign in to comment.