Bug 15975 - Add Owning Library Column to Checkouts
To test: 1 - Checkout some items to a patron 2 - Note there is no 'Home library' column 3 - Apply patch 4 - Note there IS an 'Home library' column 5 - Use the columns configuration and ensure you can hide/display column at will Sponsored by: Coeur d'Alene Public Library (http://www.cdalibrary.org/) Works as expected (after clearing browser cache). Commit message amended (as of comment #7) Signed-off-by: Marc <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
d44d0acfec
commit
99bdb7edbd
|
|
@ -209,6 +209,8 @@ modules:
|
|||
columnname: item_type
|
||||
-
|
||||
columnname: location
|
||||
-
|
||||
columnname: homebranch
|
||||
-
|
||||
columnname: checkout_on
|
||||
-
|
||||
|
|
@ -292,6 +294,8 @@ modules:
|
|||
columnname: item_type
|
||||
-
|
||||
columnname: location
|
||||
-
|
||||
columnname: homebranch
|
||||
-
|
||||
columnname: checkout_on
|
||||
-
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
<th scope="col">Title</th>
|
||||
<th scope="col">Item type</th>
|
||||
<th scope="col">Location</th>
|
||||
<th scope="col">Home library</th>
|
||||
<th scope="col">Checked out on</th>
|
||||
<th scope="col">Checked out from</th>
|
||||
<th scope="col">Call no</th>
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ $(document).ready(function() {
|
|||
},
|
||||
{ "mDataProp": "itemtype_description" },
|
||||
{ "mDataProp": "location" },
|
||||
{ "mDataProp": "homebranch" },
|
||||
{ "mDataProp": "issuedate_formatted" },
|
||||
{ "mDataProp": "branchname" },
|
||||
{ "mDataProp": "itemcallnumber" },
|
||||
|
|
|
|||
|
|
@ -78,13 +78,14 @@ my $sql = '
|
|||
|
||||
itemnumber,
|
||||
barcode,
|
||||
branches2.branchname AS homebranch,
|
||||
itemnotes,
|
||||
itemnotes_nonpublic,
|
||||
itemcallnumber,
|
||||
replacementprice,
|
||||
|
||||
issues.branchcode,
|
||||
branchname,
|
||||
branches.branchname,
|
||||
|
||||
items.itype,
|
||||
biblioitems.itemtype,
|
||||
|
|
@ -106,6 +107,7 @@ my $sql = '
|
|||
LEFT JOIN biblioitems USING ( biblionumber )
|
||||
LEFT JOIN borrowers USING ( borrowernumber )
|
||||
LEFT JOIN branches ON ( issues.branchcode = branches.branchcode )
|
||||
LEFT JOIN branches branches2 ON ( items.homebranch = branches2.branchcode )
|
||||
WHERE borrowernumber
|
||||
';
|
||||
|
||||
|
|
@ -155,6 +157,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
|
|||
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype},
|
||||
itemtype_description => $itemtype->{translated_description},
|
||||
location => $c->{location} ? GetAuthorisedValueByCode( 'LOC', $c->{location} ) : q{},
|
||||
homebranch => $c->{homebranch},
|
||||
itemnotes => $c->{itemnotes},
|
||||
itemnotes_nonpublic => $c->{itemnotes_nonpublic},
|
||||
branchcode => $c->{branchcode},
|
||||
|
|
|
|||
Loading…
Reference in New Issue