@@ -, +, @@ --- .../bug_20772-add-price_paid_column_to_illrequests.perl | 2 +- .../bug_20772-add-readonly-flag-to-illrequestattributes.perl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 10 +++++----- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt | 10 +++++++--- 4 files changed, 14 insertions(+), 10 deletions(-) --- a/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl +++ a/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl @@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { if( !column_exists( 'illrequests', 'price_paid' ) ) { - $dbh->do( "ALTER TABLE illrequests ADD COLUMN price_paid varchar(20) DEFAULT NULL" ); + $dbh->do( "ALTER TABLE illrequests ADD COLUMN price_paid varchar(20) DEFAULT NULL AFTER 'cost'" ); } SetVersion( $DBversion ); --- a/installer/data/mysql/atomicupdate/bug_20772-add-readonly-flag-to-illrequestattributes.perl +++ a/installer/data/mysql/atomicupdate/bug_20772-add-readonly-flag-to-illrequestattributes.perl @@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { if( !column_exists( 'illrequestattributes', 'readonly' ) ) { - $dbh->do( "ALTER TABLE illrequestattributes ADD COLUMN readonly tinyint(1) NOT NULL DEFAULT 1" ); + $dbh->do( "ALTER TABLE illrequestattributes ADD COLUMN readonly tinyint(1) NOT NULL DEFAULT 1 AFTER 'value'" ); $dbh->do( "UPDATE illrequestattributes SET readonly = 1" ); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -441,7 +441,7 @@
  • - [% request.cost || 'N/A' | html %] + [% IF request.cost %][% request.cost | html %][% ELSE %]N/A[% END %]
  • @@ -514,7 +514,7 @@
    Order ID: - [% request.orderid || "N/A" | html %] + [% IF request.orderid %][% request.orderid | html %][% ELSE %]N/A[% END %]
    Patron: @@ -526,7 +526,7 @@
    Bibliographic record ID: - [% request.biblio_id || "N/A" | html %] + [% IF request.biblio_id %][% request.biblio_id | html %][% ELSE %]N/A[% END %]
    Library: @@ -546,11 +546,11 @@
    Cost: - [% request.cost || "N/A" | html %] + [% IF request.cost %][% request.cost | html %][% ELSE %]N/A[% END %]
    Price paid: - [% request.price_paid || "N/A" %] + [% IF request.price_paid %][% request.price_paid | html %][% ELSE %]N/A[% END %]
    Request number: --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -125,8 +125,12 @@ [% FOREACH request IN requests %] [% status = request.status | html %] - [% request.metadata.Author || 'N/A' | html %] - [% request.metadata.Title || 'N/A' | html %] + + [% IF request.metadata.Author %][% request.metadata.Author | html %][% ELSE %]N/A[% END %] + + + [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]N/A[% END %] + [% request.backend | html %] [% request.medium | html %] [% request.capabilities.$status.name | html %] @@ -192,7 +196,7 @@ [% FOREACH meta IN request.metadata %]
    [% meta.key | html %]: - [% meta.value || 'N/A' | html %] + [% IF meta.value %][% meta.value | html %][% ELSE %]N/A[% END %]
    [% END %]
    --