Bugzilla – Attachment 148320 Details for
Bug 32752
Add new serial issue status: "Out for binding", "Bound", and "Circulating"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32752: Use an include for displaying the serial status in the OPAC
Bug-32752-Use-an-include-for-displaying-the-serial.patch (text/plain), 6.80 KB, created by
Katrin Fischer
on 2023-03-17 10:11:07 UTC
(
hide
)
Description:
Bug 32752: Use an include for displaying the serial status in the OPAC
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-03-17 10:11:07 UTC
Size:
6.80 KB
patch
obsolete
>From 7f6100e4618c36cdeb690a431e3603fdbf3201a0 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Fri, 17 Mar 2023 08:59:42 +0000 >Subject: [PATCH] Bug 32752: Use an include for displaying the serial status in > the OPAC > >This moves the existing status in the OPAC into an include. > >To test: >* Add a subscription with issues in different status >* View the OPAC detail page of the record >* Verify that in the subscription tab the status display nicely >* Veriy that More details > Full history displays the status nicely too >--- > .../bootstrap/en/includes/serial-status.inc | 12 ++++++++++++ > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 13 +------------ > .../bootstrap/en/modules/opac-full-serial-issues.tt | 13 +------------ > 3 files changed, 14 insertions(+), 24 deletions(-) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/serial-status.inc > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/serial-status.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/serial-status.inc >new file mode 100644 >index 0000000000..456171ecf2 >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/serial-status.inc >@@ -0,0 +1,12 @@ >+[% IF ( serial.status1 ) %]<span>Expected</span>[% END %] >+[% IF ( serial.status2 ) %]<span>Arrived</span>[% END %] >+[% IF ( serial.status3 ) %]<span>Late</span>[% END %] >+[% IF ( serial.status4 ) %]<span>Missing</span>[% END %] >+ [% IF ( serial.status41 ) %]<span>Missing (never received)</span>[% END %] >+ [% IF ( serial.status42 ) %]<span>Missing (sold out)</span>[% END %] >+ [% IF ( serial.status43 ) %]<span>Missing (damaged)</span>[% END %] >+ [% IF ( serial.status44 ) %]<span>Missing (lost)</span>[% END %] >+[% IF ( serial.status5 ) %]<span>Not available</span>[% END %] >+[% IF ( serial.status6 ) %]<span>Delete</span>[% END %] >+[% IF ( serial.status7 ) %]<span>Claimed</span>[% END %] >+[% IF ( serial.status8 ) %]<span>Stopped</span>[% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index ab2f28e615..27f0ae4bf1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -765,18 +765,7 @@ > <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td> > <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td> > <td class="serial_status"> >- [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %] >- [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %] >- [% IF (latestserial.status3 ) %]<span>Late</span>[% END %] >- [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %] >- [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %] >- [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %] >- [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %] >- [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %] >- [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %] >- [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %] >- [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %] >- [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %] >+ [% INCLUDE 'serial-status.inc' serial = latestserial %] > </td> > <td class="serial_notes">[% latestserial.notes | html %]</td> > </tr> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt >index 3b24ba9087..758dfcbeec 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt >@@ -165,18 +165,7 @@ > </td> > <td>[% serial.serialseq | html %]</td> > <td> >- [% IF ( serial.status1 ) %]<span>Expected</span>[% END %] >- [% IF ( serial.status2 ) %]<span>Arrived</span>[% END %] >- [% IF ( serial.status3 ) %]<span>Late</span>[% END %] >- [% IF ( serial.status4 ) %]<span>Missing</span>[% END %] >- [% IF ( serial.status41 ) %]<span>Missing (never received)</span>[% END %] >- [% IF ( serial.status42 ) %]<span>Missing (sold out)</span>[% END %] >- [% IF ( serial.status43 ) %]<span>Missing (damaged)</span>[% END %] >- [% IF ( serial.status44 ) %]<span>Missing (lost)</span>[% END %] >- [% IF ( serial.status5 ) %]<span>Not available</span>[% END %] >- [% IF ( serial.status6 ) %]<span>Delete</span>[% END %] >- [% IF ( serial.status7 ) %]<span>Claimed</span>[% END %] >- [% IF ( serial.status8 ) %]<span>Stopped</span>[% END %] >+ [% INCLUDE 'serial-status.inc' serial = serial %] > </td> > <td class="subscriptionidfilterclass">[% serial.subscriptionid | html %]</td> > </tr> >-- >2.30.2
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 32752
:
148320
|
148321
|
148322
|
148323
|
148353
|
148354
|
148355
|
148356
|
148357
|
148358
|
148359
|
148360
|
148362
|
148363
|
148364
|
148365
|
148366
|
148367
|
148368
|
148369
|
148370
|
148371
|
148372
|
148373
|
148490
|
150051
|
150052
|
150053
|
150054